Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    SMP example?

    Spresense
    3
    3
    419
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Stanton last edited by

      I'm trying to use SMP to take advantage of multiple processors, but i get consistent PANICs. I'm wondering if i need to mask signals or use the pthread_setaffinity_np(). Any example would be really helpful. Thanks!

      ----------------- callstack -----------------
      [0d009755] up_assert + 0xc5
      [0d062916] g_scui2c0 + 0x43
      [0d0076eb] _assert + 0x7
      [0d04dbd1] syslogstream_putc + 0x1
      [0d001f1b] arm_hardfault + 0x23
      [0d001ef9] arm_hardfault + 0x1
      [0d003e7f] irq_dispatch + 0x17
      [0d001edf] arm_doirq + 0x27
      [0d0628bc] g_cpu_intstack_top + 0x0
      [0d000311] exception_common + 0x39
      [0d07e244] _ZL14trained_tflite + 0x1a904
      [0d028998] _ZN6tflite3ops5micro4conv23EvalQuantizedPerChannelEP13TfLiteContextP10TfLiteNodeP16TfLiteConvParamsRKNS2_6OpDataEPK12TfLiteTensorSE_SE_PSC_SF_ + 0x23c
      [0d028829] _ZN6tflite3ops5micro4conv23EvalQuantizedPerChannelEP13TfLiteContextP10TfLiteNodeP16TfLiteConvParamsRKNS2_6OpDataEPK12TfLiteTensorSE_SE_PSC_SF_ + 0xcd
      [0d004a21] spin_setbit + 0x1b
      [0d004a5b] spin_clrbit + 0x1b
      [0d028fdd] _ZN6tflite3ops5micro4conv4EvalEP13TfLiteContextP10TfLiteNode + 0xb9
      [0d07e234] _ZL14trained_tflite + 0x1a8f4
      [0d07e208] _ZL14trained_tflite + 0x1a8c8
      [0d0128df] _ZN6tflite16MicroInterpreter6InvokeEv + 0x53
      [0d00cae7] _Z10_tf_threadPv + 0xf7
      [0d004a5b] spin_clrbit + 0x1b
      [0d054d9b] pthread_startup + 0x9
      [0d054d93] pthread_startup + 0x1
      
      C 1 Reply Last reply Reply Quote
      • J
        jens6151 0 1 1 last edited by

        Me too. Any hints would be appreciated.

        1 Reply Last reply Reply Quote
        • C
          CamilaSouza DeveloperWorld @Stanton last edited by

          Hey, @Stanton

          We do have one example.
          https://github.com/sonydevworld/spresense-nuttx-apps/tree/fb3f4e3e48fb915ddcb9224d374f666d2de85aff/testing/smp

          Configuration for that would be from smp_asmp example.

          1 Reply Last reply Reply Quote
          • First post
            Last post
          Developer World
          Copyright © 2021 Sony Group Corporation. All rights reserved.
          • Contact us
          • Legal