EVK-MIMXRT685 SDK_Malloc returns NULL for 307200 bytes

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EVK-MIMXRT685 SDK_Malloc returns NULL for 307200 bytes

533 Views
tugrulyatagan
Contributor I

Hi,

I am referring to dsp_lenet_demo example to port my CNN inference application using HiFi4 NN library functions. I am trying to run xa_nn_conv2d_std_8x8 function with dimensions [3, 160, 120] -> [16, 160, 120]. xa_nn_conv2d_std_getsize tells 307200 bytes of buffer is needed. So when I request 307200 bytes from SDK_Malloc, it returns NULL. It is working fine with smaller dimensions. How can I run convolution function with big dimensions?

Thanks,

Tugrul

Labels (1)
0 Kudos
1 Reply

512 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Tugrul,

You can check inside SDK_Malloc to see exactly what is the parameter you are violating and why SDK_Malloc returns null.

Best regards,

Felipe

0 Kudos