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.

     

     

    error in running tflite program

    Spresense
    2
    4
    1585
    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.
    • K
      karthi last edited by

      Screenshot from 2022-04-13 01-48-13.png

      i get this stack error when i run my tflite program where the image size is set as 96*96.

      K K 2 Replies Last reply Reply Quote
      • K
        KamilTomaszewski DeveloperWorld @karthi last edited by

        Hi @karthi,

        Please try increasing the TFLM_TENSOR_ARENA_SIZE in your example.

        Best Regards,
        Kamil Tomaszewski

        1 Reply Last reply Reply Quote
        • K
          karthi @karthi last edited by

          @karthi

          i have increased the TFLM_TENSOR_ARENA_SIZE and the model is read into memory. But the image is not read into memory. how to find the stack size for the program

          K 1 Reply Last reply Reply Quote
          • K
            KamilTomaszewski DeveloperWorld @karthi last edited by

            Hi @karthi,

            You will find this in the Makefile of your example.

            If you are using IDE:

            # Application stack memory size (Default: 2048)
            STACKSIZE =
            

            To increase the stack size of your application in IDE, you just need to set a value here.

            If you are using CLI:

            STACKSIZE = $(CONFIG_EXAMPLES_TFLMRT_LENET_STACKSIZE)
            

            To increase the stack size of your application in CLI:

            1. Run make menuconfig
            2. Go to Application Configuration -> Spresense SDK -> Examples
            3. Find your application and change the stack size
            4. Select <Save> and <Exit>
            5. Build your app again

            Best Regards,
            Kamil Tomaszewski

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