2025-02-06 04:46 AM - edited 2025-02-06 05:50 AM
Hi
I am using NUCLEO-N657X0-Q board, for the STM32N657 part, with the release STEdgeAI 2.0.
We are using STM32Cube ecosystem (IDE, CubeMX, Programmer) for the development. I have been using NPU Validation example without any issues.
The example there for the DK board, "\Projects\STM32N6570-DK\Applications\SNS\", which does not run for NUCLEO after a bit of changes for Nucleo. Gets stuck after the SystemIsolation_Config() in AppliNonSecure, with a Hard Fault.
SECURE_RegisterCallback(IAC_ERROR_CB_ID, (void *)SecureError_Callback);
(which is IACCVIOL = 1) ==> Though I have MPU is already enabled in the FSBL.
Same time, after a bit of struggle with the CubeMX, Generated the code for Nucleo with X-Cube-AI 10.0 package. But this ended up with 1000's of errors in the build.
Another way, by trying from working SNS Application sample (of course with FSBL) from Nucleo Templates and then adding the AI related Middleware, Apps to NS App side, it goes as far as
/* End epoch block and advance to next one */
if (__LL_ATON_RT_GetWaitMask(nn_instance->exec_state.current_epoch_block) == 0x0)
inside LL_ATON_RT_RunEpochBlock() from
/* Execute first/next step */
ll_aton_rt_ret = LL_ATON_RT_RunEpochBlock(&NN_Instance_Default);
Where it gets a "<signal handler called>() at 0xfffffff9"
HFSR.FORCED = 1
HFSR_NS = 0
CFSR.MMFSR = 1 (which is IACCVIOL = 1) ==> Though I have MPU is already enabled in the FSBL.
CFSR_NS = 0
Address region ranging in 0x340.... / 0x341.... previous instructions were accessible, like say for instructions
ldr r3, [r3, #4]
Also I see the \STEdgeAI_2.0\Projects\STM32N6570-DK\Applications\SNS has code differences from the one generated from the CubeMX for DK board.
Is there a working sample for Nucleo, that has AI, .. something similar to the example DK - Projects\STM32N6570-DK\Applications\SNS as is in the STEdgeAI 2.0 release?
If not, Would you please give me working sample "SNS" sourcecode for DK bord in the CubeIDE?
Thank you.