Skip to main content
ssah.1
Associate
July 13, 2023
Question

stm32f407 bootloader using usart

  • July 13, 2023
  • 5 replies
  • 4284 views

Hi, I am currently working on Stm32F407 Microcontroller and I have need a bootloader code for USART. So kindly I am requesting you to share the code as soon as possible. I have completed my project, but because of bootloader I am not able to finalized my project. I have tried and saw your bootloader tutorial, but I did not get it. 

In my customised hardware BOOT 0 pin is kept low(i.e. ground).

Thank you.

This topic has been closed for replies.

5 replies

ST Technical Moderator
July 13, 2023

Hello @ssah.1,

I recommend you the following resources to configure the bootloader:

 Hope this helped you!

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
ssah.1
ssah.1Author
Associate
July 24, 2023
I have tried to implement, but somehow i am not getting success.
So, I am requesting to you kindly share basic code of bootloader using usart, also share the configuration.
Tesla DeLorean
Guru
July 13, 2023

What is the perceived role of this bootloader in this project?

Strapping BOOT0 low is unhelpful if you expect the ROM based System Loader to function.

If you have code running on the MCU it is possible to transfer control to the ROM code. Is that what you're looking for? Or to implement your own loader for easier updating?

Explain your situation better.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
RhSilicon
Lead
July 24, 2023

Benefits you will take away:

• Understand the basics of the linker script

• Understand how to place variables in RAM and FLASH

• Understand how to create functions in RAM and FLASH

• Learn how to create a super simple bootloader

• Learn how to offset the interrupt vector and create an application to run in a different memory region

• Learn how to debug bootloader and application

• Learn how to share an API between bootloader and application

See here:

How to Create a Super Simple Bootloader, Part 1: Getting Started

Note: I couldn't get the USB Host part to work in the application. But bootloader via USB Host worked.

RhSilicon
Lead
July 24, 2023