Audio Classification fails on Arduino Nano 33 BLE Sense when building as a library

Hi,

In this audio classification project, I can build a firmware specifically for the Arduino Nano 33 BLE Sense and run it without any problems. However, when I export as an Arduino library and run the continuous microphone sketch, I get the following errors:

  • When EI_CLASSIFIER_SLICES_PER_MODEL_WINDOW == 3 (Default):

  • When EI_CLASSIFIER_SLICES_PER_MODEL_WINDOW == 2:
    Mbed OS seems to fail almost instantly, orange LED blinks in SOS pattern and IDE freezes when I try to open the serial monitor

  • When EI_CLASSIFIER_SLICES_PER_MODEL_WINDOW == 1:
    1slice

I tried making the DSP process in my impulse less memory- and processor-intensive and then retrained but the errors did not change.

Arduino core version: 1.3.2

EDIT: The non-continuous sketch works well, even without the two second delay.

Thanks.

@Arjan Could you take a look here? Sounds like we actually have enough time to run here… This is project ID 24802 with an MFE block and a 2D CNN.

Hi @s-agar,

Looks like the same issue I’m currently working on. Already found a fix for this, and will test your project as well.
The fix will be merged in tomorrow or the day after. I’ll keep you posted.

2 Likes

Hi @s-agar,

The changes that fix the MFE frame calculations are live! I’ve been able to run your model successfully.

2 Likes