Trying to run an impulse on the M4 core of the Portenta H7

Hello everyone!
I’m trying to run an impulse on the M4 core of the Portenta H7, the aim is to run an impulse on the M4 core and another one on the M7 core. I tried uploading my impulse (audio classifier) on the M7 and it is working, but when i try uploading the same code on the M4 and logging results on the M7 i get the following errors:

ERR: MFE failed (-1002)
ERR: Failed to run DSP process (-1002)
ERR: Failed to run classifier (-5)

Is what i’m trying to do possible? how can i fix this?

Hi @RayGun182,

I haven’t tried that but the -1002 error means out of memory.
The M4 has less RAM available than M7, you can read more about it here. There may be a way to change the RAM allocation between M4 and M7, I’d ask on the Arduino forum.


1 Like

Hello @aurel, thanks for your reply! I was able to run the impulse on th M4 core by cutting the macro suggested on the Arduino Library:

// If your target is limited in memory remove this macro to save 10K RAM

Saving this 10K memory made it!
I leave it here for everyone else that might incur in this issue, i will now try to load the other impulse on the M7 and see if they can work together.