cancel
Showing results for 
Search instead for 
Did you mean: 

ISP Mode Programming in STM32

ACM
Visitor

Respected Team, Following queries from my end,

1. How to configure ISP mode programming in STM32L4? Which pins we can use to enable ISP mode programming in STM32 MCU?

2. Is there possible to use UART based or any other interface based ISP mode programming?

3. Whether we can use SWD pins to use for ISP mode of programming?

4. Which programmer preferably we can use for ISP based programming for STM32L4 in Flash memory or other memories through boatloader modes and its registers available?

1 REPLY 1

@ACM wrote:

1. How to configure ISP mode programming in STM32L4? Which pins we can use to enable ISP mode programming in STM32 MCU?

3. Whether we can use SWD pins to use for ISP mode of programming?


Yes, Programming and debug is via SWD.

 


@ACM wrote:

2. Is there possible to use UART based or any other interface based ISP mode programming?


Yes.

See the datasheet for the specific chip, and Application Note AN2606STM32 microcontroller system memory boot mode.

You could also write a custom bootloader; eg,

https://community.st.com/t5/stm32-mcus-embedded-software/official-stm32-bootloader/td-p/591959

https://www.st.com/en/embedded-software/x-cube-iap-usart.html

 


@ACM wrote:

4. Which programmer preferably we can use for ISP based programming for STM32L4 in Flash memory


  • For SWD, Anything which supports ARM Cortex-M  - ST-Link, J-Link, etc;
  • For a bootloader, anything which supports your chosen bootloader

eg, see STM32CubeProgrammer:

https://www.st.com/en/development-tools/stm32cubeprog.html

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.