cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "Cannot access memory at address" error when trying to follow NUCLEO-N657X0-Q tutorial

willisk
Associate III

I tried to follow this tutorial: How to build an AI application from scratch on the... - STMicroelectronics Community , could not figure out how to enable NPU RIF, so i skipped it. I tried to debug using the FSBL main.c, the blue led did turn on, but i got the error in the screenshot when trying to launch application in FSBL main.c. Project: willisk0612/nucleo-getting-started

Skjermbilde 2025-11-01 195522.png

12 REPLIES 12

@erna23 Thanks for the answer. Do you have any idea why Appli debugger got stuck in inference?

@williskI’m not sure if this will fix the issue, but please check the following:

 

In .ioc → Middleware → X-Cube-AI → Configuration → Network,
make sure that Analyze is enabled.

silpiode_0-1762735590620.png

silpiode_2-1762735644266.png

If it’s not enabled, please re-import the AI model and enable it.

silpiode_3-1762735681915.png

After re-importing the AI model, the clock settings may change.
Go to RCC → Power Regulator and set it to 0.

 

silpiode_4-1762735724767.png

Once all these settings are complete, delete the NPU file that was imported into the Appli project, and then re-import it.

 

If all the above steps have been completed, please try uploading Network.hex to the board again.

 

@silpiode  I still didnt get it to work. I have kinda given up on STM32CubeIDE, i am constantly getting stuck generating code for 30 minutes, and run into out of memory errors all the time, and endless amount of bugs. Good news is that i got this working: willisk0612/edgeimpuse-nucleo-stm32n6 . Edge Impulse supports importing tflite files, and exporting them as ST Neural ART. Edge Impulse devs also recently added NUCLEO-N657X0-Q support. I got it working effortless, without fighting against the eclipse IDE. It requires some manual coding instead of ioc files, but it was worth it for my case.

Announcement

We’re moving the ST Community to a new platform to give you a better and more reliable community experience.