STM32 N657X0-Q Code generation is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-04 12:25 AM - last edited on ‎2025-06-04 12:27 AM by Andrew Neil
I am using Stm32 N657X0-Q board with a stm32cubeide version 1.18, started with creating new project-> gave name-> selected appli in project structure-> selected gpio pin PA5 as output -> and generated code but in code generation under core-> there is no related files inside src and inc folders. can you help me in how to use this board.
- Labels:
-
STM32N6 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-04 1:32 AM
Hello @santhu141986
First let me thank you for posting and welcome to the ST Community.
Before generating the code, you should set the network connection and log to your ST Account in order to download the firmware package.
I suggest that you take a look at STM32CubeIDE user guide - User manual section 2.1.2.1 Creating a new STM32 executable project.
Thanks.
Mahmoud
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-04 2:38 AM
Hello @Mahmoud Ben Romdhane thank you for your quick response... I am using STMproducts from past three years. there is no problem with older version of cube ide . issue with new cube ide software. below is the proper procedure what i am trying to do.
i gave filename and selected appli option and then finish
It was asking these option i kept it as it is
Then selected PA5 as output
Then i clicked generate code
It created only inc and src folders , there is no related folders and files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-10 3:36 AM - edited ‎2025-06-10 3:36 AM
Hello @santhu141986 ,
I was not able to reproduce your behavior. I suggest that you click to short keys [Alt+k] to generate the code.
Thanks.
Mahmoud
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-11 11:17 PM
There was a problem with stm32cube IDE version1.18, i have downgraded to 1.17 now code generation are working... but once the code is uploaded and after pressing reset code stops working. that is i am writing code to blink green led, everything works as soon as i upload a code but stops working after pressing reset button. can you help me what changes i have to make.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-12 1:27 AM
Hello @santhu141986
I suggest that you refer to the example provided on the STM32N6 firmware under this path:
C:\Users\_\STM32Cube\Repository\STM32Cube_FW_N6_V1.1.1\Projects\NUCLEO-N657X0-Q\Examples\GPIO\GPIO_IOToggle
It explains how to configure and use GPIOs through the HAL API.
Thanks.
Mahmoud
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-12 2:01 AM
@Mahmoud Ben Romdhane i have tried with example code as you mentioned same issue with that also, i am attaching video of what i am facing, starting with my boot pin jumper settings to blue led blink.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-12 4:32 AM
Hello @santhu141986 ,
I suggest that you try to erase the memory with STM32CubeProgrammer and relaunch the debug session.
Thanks
Mahmoud
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-13 3:38 AM
I have connected to cube programmer but erase option goes after connecting N6 board . I have included video for the same. showing there is erase option before connection and erase option goes off after connecting the board. cube programmer works fine with other stm32 boards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-13 4:24 AM
There is no internal Flash in STM32N6 device. So, what you see is normal.
When you are developing (using existing example projects or creating it with STM32CubeMx) the device is in DEV_BOOT mode (BOOT1=1), the DEV_BOOT mode is indicated by le Red LED on PG10 is On.
Still in DEV_BOOT, when you load the firmware using STM32CubeIDE (Run or Debug) the binary is loaded and executed into internal SRAM2. If you press RESET button, the cpu restart the internal BootROM but the internal SRAM2 is erased. This is what you see when the blue LED is off and the device goes back in DEV_BOOT.
The DEV_BOOT is only used to write and debug the code in SRAM2.
When the firmware is working, you must program it into the external NOR Flash present on the Nucleo-N657X0-Q using the STM32CubeProgrammer. Then change the BOOT pin as follow to change the device in Flash_BOOT.
BOOT0=0 and BOOT1=0
Before flashing the binary into the external flash memory, it must be signed.
Here are some usefull article you should read in order to develop application with STM32N6:
https://community.st.com/t5/stm32-mcus/stm32n6-boot-rom-explained/ta-p/763648
https://community.st.com/t5/stm32-mcus/stm32n6-fsbl-explained/ta-p/764307
https://community.st.com/t5/stm32-mcus/how-to-debug-stm32n6-using-stm32cubeide/ta-p/800547
https://community.st.com/t5/stm32-mcus/how-to-create-an-stm32n6-fsbl-load-and-run/ta-p/768206
https://community.st.com/t5/stm32-mcus/how-to-program-the-otp-fuse-bits-in-the-stm32n6/ta-p/782353
Refer also to Reference manual and product datasheet (in the link below)
https://www.st.com/en/microcontrollers-microprocessors/stm32n657x0.html#documentation
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.
