2025-10-25 6:11 AM
Hello,
I'm currently trying to set up a simple project for the STM32N6750-DK. I want to toggle the red User-LED. I already worked a bit with ST-boards, so I did already started a new project in the CubeIDE and selected the LED as a GPIO-Output in the *.ioc file. Here comes my problem:
Where do I put my code and how do I flash the programm on my board? Unfortunately I couldn't find a tutorial that described it step by step and I'm very confused how to handle the different projects (FSBL and Appli) in the same folder.
Where do I put the toggle-function for my GPIO-Pin? It seems that both main-function (in the FSBL and Appli-poject) do not know the confugurated pin.
Furthermore if I want to flash one of these projects with just the default initiliazed peripherals, I get the following output on the terminal and the old program that I flashed before ist still working:
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Shutting down...
Exit.
On the internet I found that you have to add a command to post-build steps, but they were inconsistent and I couldn't figure out why they were needed.
Is there a default project to use with all the right settings and confgurations?
Thank you for your help!
2025-10-25 8:09 AM - edited 2025-10-25 8:12 AM
Hi @lho
Regarding the STM32N6, there are several security concepts and execution context to understand because it's a device that is much more complex compared to other STM32 families, and also because it does not include internal flash memory.
You should start by studying the device documentation as RM0486, DS14791, UM3234 and ES0860 in the link below:
https://www.st.com/en/microcontrollers-microprocessors/stm32n6-series/documentation.html
The User manual of STM32N657-DK:
https://www.st.com/content/ccc/resource/technical/document/user_manual/group3/ef/ac/b6/66/71/60/4b/e0/DM01047884/files/DM01047884.pdf/jcr:content/translations/en.DM01047884.pdf
Then read all this application articles, which will help you:
Understand the FSBL:
https://community.st.com/t5/stm32-mcus/stm32n6-fsbl-explained/ta-p/764307?search-action-id=75868939877&search-result-uid=764307
Understand the BootROM:
https://community.st.com/t5/stm32-mcus/stm32n6-boot-rom-explained/ta-p/763648?search-action-id=75869674857&search-result-uid=763648
How to sign binaries:
https://community.st.com/t5/stm32-mcus/how-to-add-the-stm32n6-s-header-signature-as-post-build/ta-p/778436?search-action-id=75869987368&search-result-uid=778436
How to create an FSBL Load and Run project and then program it into the external memory:
https://community.st.com/t5/stm32-mcus/how-to-create-an-stm32n6-fsbl-load-and-run/ta-p/768206?search-action-id=75869674857&search-result-uid=768206
How to execute code from the external memory:
https://community.st.com/t5/stm32-mcus/how-to-execute-code-from-the-external-serial-nor-using-the/ta-p/771048?search-action-id=75869987368&search-result-uid=771048
I can also advise you to start first with one of the examples already provided, like this one (from our github repository ore directly from STM32CubeMX):
https://github.com/STMicroelectronics/STM32CubeN6/tree/main/Projects/STM32N6570-DK/Examples/GPIO/GPIO_IOToggle
And to refer to the included Readme.html file, which explains how to debug and program the example.
Let me know if it helps you?
Best regards,
Romain
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.