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
  • 3 replies
  • 18 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

3 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