Skip to main content
Visitor II
May 21, 2024
Question

Jum to Bootloader from application without PIN.

  • May 21, 2024
  • 3 replies
  • 1034 views

Hi,

I am developing a bootloader, I would like to flash the STM32 using another MCU using USART.

My question is, If it possible to enter into bootloader mode without using external pins? I would like to enter just by software, is that possible?

I see that all the bootloader activation patterns include PIN state. is there any other way to do it without pin?

 

Regards

Manuel

    This topic has been closed for replies.

    3 replies

    Graduate II
    May 21, 2024

    I mean yes. On some MCUs with detect fw required erase 0 sector before jump.

    But when you develop own bootloader , this is based on your code... no problem.

    For system bootloader read AN2606

    Graduate II
    May 21, 2024

    As start, e,g, check for warm reboot or some magic in RAM and go to the system bootloader or the application else.

    Graduate II
    May 21, 2024

    It's probably desirable to provide for a NRST, BOOT0 connection, along with the UART, to allow you significant control over the process.

    You can write your OWN loader code to interact with another MCU, and update, completely independently of the ROM based System Loader. In many cases that will be simpler and more secure.

    Ultimately the MCU can call and execute whatever code you direct it at.