Skip to main content
Associate II
June 11, 2026
Question

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

  • June 11, 2026
  • 8 replies
  • 158 views

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
June 11, 2026
  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
June 11, 2026

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 II
June 13, 2026

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
June 15, 2026

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

 

BR

 

kadamAuthor
Associate II
June 17, 2026

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
June 17, 2026

Hello,

 

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

 

kadamAuthor
Associate II
June 19, 2026

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
June 19, 2026