MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups

    Error "Arena size is too small for all buffers" while inferencing audio project on XIAO ESP32-S3.

    ESP32
    2
    3
    89
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • salmanfaris
      salmanfaris last edited by

      Hi, I was trying to inference an audio KWS project on XIAO ESP-S3 with Sense HAT. The device was working fine on the previous audio project, only facing issues with this particular project. Thanks in Advance.

      ERR: Failed to run classifier (-3)
      Arena size is too small for all buffers. Needed 15280 but only 12160 was available.
      AllocateTensors() failed
      ERR: Failed to run classifier (-3)
      Edge Impulse Inferencing Demo
      Inferencing settings:
      Interval: 0.062500 ms.
      Frame size: 16000
      Sample length: 1000 ms.
      No. of classes: 2
      
      kowshik1729 1 Reply Last reply Reply Quote 0
      • kowshik1729
        kowshik1729 @salmanfaris last edited by

        @salmanfaris

        This seems to be a typical Dynamic memory allocation done through your software stack. I've seen similar error while implementing OpenCV on MCU's.

        Try freeing unused objects from your application.

        salmanfaris 1 Reply Last reply Reply Quote 0
        • salmanfaris
          salmanfaris @kowshik1729 last edited by

          Thanks for the insights @kowshik1729 .

          When I was checking the edgeImpulse memory profiler, it only mentioned 19.1K RAM and I don't have any additional application running along with the inference program. It looks like something is wrong in the compilation.

          I will try to check the memory status as you mentioned and get back, Thanks

          f3cfbd23-d187-4aba-b67c-9e8c25142c99-image.png

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Recent Posts

          • J

            I been trying to interface Xiao esp32c3 with LoRa via SPI. After uploading the code doesn't get executed by the board but give the message log: "waiting for download". After few attempts by even resigning to other pins as spi instead of default spi pins, found this is occurring specifically when the CS pin is connected to the board. Any help to resolve this?

            • read more
          • @jacob_jipson Glad to hear that. 🙌

            • read more
          • J

            @salmanfaris The problem was resolved. Thankyou so much.

            • read more
          • @jacob_jipson said in Need Help: Error compiling for board AI Thinker ESP32-CAM.:

            ESP-NN

            Did you replace the NN folder in the lib as we do for XIAO esp32? and for the AI Thinker ESP32-CAM, you don't need to do that.

            now, try to delete the library and re-add a new one and compile.

            • read more
          • J

            @salmanfaris
            Error log

            C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S: Assembler messages: C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:35: Error: unknown opcode or format name 'ee.vldbc.8' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:39: Error: unknown opcode or format name 'ee.zero.q' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:42: Error: unknown opcode or format name 'ee.vld.128.ip' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:43: Error: unknown opcode or format name 'ee.vmax.s8' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:44: Error: unknown opcode or format name 'ee.vmin.s8' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:45: Error: unknown opcode or format name 'ee.vst.128.ip' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:58: Error: unknown opcode or format name 'ee.vld.l.64.ip' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:59: Error: unknown opcode or format name 'ee.vmax.s8' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:60: Error: unknown opcode or format name 'ee.vmin.s8' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:61: Error: unknown opcode or format name 'ee.vst.l.64.ip' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:98: Error: unknown opcode or format name 'ee.zero.q' C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:40: Error: invalid empty loop C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:56: Error: invalid empty loop C:\Users\jacob\Documents\Arduino\libraries\jacobjipson-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\activation_functions\esp_nn_relu_s8_esp32s3.S:40: Internal error in istack_push_space at /builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/src/binutils/gas/config/tc-xtensa.c:12515. Please report this bug. exit status 1 Error compiling for board AI Thinker ESP32-CAM.

            Tool section
            Screenshot 2023-09-11 122407.png

            • read more
          By MakerGram | A XiStart Initiative | Built with ♥ NodeBB
          Copyright © 2023 MakerGram, All rights reserved.
          Privacy Policy | Terms & Conditions | Disclaimer | Code of Conduct