cancel
Showing results for 
Search instead for 
Did you mean: 

Board not booting with code flashed in external memory in STM32N6 - Discovery Kit

Tirth
Visitor

Hello,

I am currently using STM32N6657XOHXQ(Discovery Kit), I am running the (XSPI_NOR_MemoryMapped_DTR) example from STM32CubeMX. I have added UART print to debug the issue. Below are steps to reproduce the issue I am seeing.

1. Put the board in development board (BOOT1 Switch position 1-3, BOOT0 Switch Position 1-2)

 

For flashing external memory.

2. Ran the exe.

Tirth_0-1738820458854.png

3. Open STM32CubeProgrammer and open erasing and programming tab.

4. Select the project-trusted.bin then select "Verify Programming"

5. Select "Download file" and write "-cb" in "Option Bytes Command"

6. Select Erase External Memory and then click on "start programming".

6. Put the board in boot mode (BOOT1 Switch position 1-2, BOOT0 Switch Position 1-2)

7. Press Reset Button.

When the code is flashing first time it works, Green LED Blinks and UART Output is attached below.

Tirth_1-1738821850620.png

8. But when reset button is pressed again it doesn't generate output as above..

I have attached my code in which UART is added to verify board boot status.

UART Configuration:

1. Baudrate :- 115200

2. Parity: None

3. Stopbits: 1

4. Hardware control: None

 

 

0 REPLIES 0