cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 N657X0-Q Code generation is not working

santhu141986
Associate II

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. 

10 REPLIES 10
Mahmoud Ben Romdhane
ST Employee

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.

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

santhu141986_0-1749029443303.png

It was asking these option i kept it as it is 

santhu141986_1-1749029553628.png

Then selected PA5 as output

santhu141986_2-1749029740527.png

Then i clicked generate code 

santhu141986_3-1749029796000.png

 

It created only inc and src folders , there is no related folders and files

santhu141986_4-1749029870128.png

 

 

 

 

 

Hello @santhu141986 ,

I was not able to reproduce your behavior. I suggest that you click to short keys [Alt+k] to generate the code.

 

MahmoudBenRomdhane_0-1749551739857.png

 

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.

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.

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.

@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.

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.

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

 

Hi @santhu141986 

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-add-the-stm32n6-s-header-signature-as-post-build/ta-p/778436

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.