Skip to main content
Associate III
Jun 11, 2026 4:49 AM UTC
Question

STM32N657 Boot Configuration and External Flash Programming via SWD and USB1 interface

Hello Team,

We are developing a custom board based on the STM32N657 MCU. Kindly suggest a method to program the external flash using both SWD and USB1 interfaces. Additionally, please provide the required configuration for the BOOT0 and BOOT1 pins.

Thanks

8 replies

EXUE.2
ST Employee
Jun 11, 2026 7:26 AM UTC
  1. BOOT0 and BOOT1 configuration: the boot mode is determined by BOOT0 and BOOT1 pins, and one OTP word.

    If a flash boot is selected, the firmware is loaded from an external flash memory. If serial boot is selected, the image is loaded from a serial interface. This development boot mode is available only when the device is in development.

  2. which tool do you want to use to program the external flash? actually, STM32 CubeProgrammer is the official tool that can program external flash by both SWD, USB, UART...
Chloe Meunier
ST Employee
Jun 11, 2026 8:07 AM UTC

Hello ,

You can find programming examples in these wiki pages : serial boot or development boot.

Security:How to install a trusted application on STM32N6 MCUs - stm32mcu

Security:How to start with OEMuRoT on STM32N6 MCUs - stm32mcu (see part 7)

 

BR

 

kadamAuthor
Associate III
Jun 13, 2026 8:55 AM UTC

Hello,

We have tried to program STM32N657 through STM32Cube programmer using USB1 interface. But we are not able flash code into external flash.

 

Thanks

Chloe Meunier
ST Employee
Jun 15, 2026 12:32 PM UTC

Can you describe what is the error and how you proceed please?

 

BR

 

kadamAuthor
Associate III
Jun 17, 2026 8:34 AM UTC

Hello Team,

We are making BOOT0 pin as high and BOOT1 pin as low during flashing through USB1 port. In STM32CubeProgrammer, programming process show continuous and at the end flashing does not completed. 

I have attached image for reference.

Thanks.

 

 

Chloe Meunier
ST Employee
Jun 17, 2026 8:38 AM UTC

Hello,

 

did you move the jumper JP2 to position 3-4, and connect the laptop to CN18?

 

kadamAuthor
Associate III
Jun 19, 2026 1:11 PM UTC

Hello Chloe,

Yes, we are placing jumper JP2 to position 3-4 and connecting USB cable on connector CN18.

Is there method is there for flashing through USB1 port?

Thanks

Chloe Meunier
ST Employee
Jun 19, 2026 1:20 PM UTC