Skip to content

The repo contains two folders - Application and Bootloader. The bootloader folder contains the bootloader firmware flash which runs from 0x08000000( or 0x000000000 - memory aliasing) and the application code runs from the location ox08040000 in the memory. The final binary files can be of both binaries can be flashed using ST link flash utility.

Notifications You must be signed in to change notification settings

sandeshbjain/STM32F401RE_Nucleo_Bootloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

STM32F401RE_Nucleo_Bootloader

The repo contains two folders - Application and Bootloader. The bootloader folder contains the bootloader firmware flash which runs from 0x08000000( or 0x000000000 - memory aliasing) and the application code runs from the location ox08040000 in the memory. The final binary files can be of both binaries can be flashed using ST link flash utility.

In the application code the reset handler is set to start from address by modifying the linker script:STM32F401RETX_FLASH.ld

FLASH (rx) : ORIGIN = 0x8040000, LENGTH = 150K image

The microcontroller has 512 kB of flash, by starting the application code from 0x8040000, the bootloader get 256kB of memory space (out of which 150kB is usable as per the above image)

Similarly, the bootloader code which begins at 0x8000000 has 64kB of flash: image

Seperate binaries for both Application and Bootloader code is then generated and flashed using STM32 ST-LINK Flash utility.

  • When the microcontroller exceuted bootloader code - LED in the nucleo board turns ON and remains in ON state.
  • Once the the microcontroller starts exceuting the Applicaiton code - the LED starts blinking every 100ms.

Improvements:

  1. Add over-the-air firmware update functionality - In progress

About

The repo contains two folders - Application and Bootloader. The bootloader folder contains the bootloader firmware flash which runs from 0x08000000( or 0x000000000 - memory aliasing) and the application code runs from the location ox08040000 in the memory. The final binary files can be of both binaries can be flashed using ST link flash utility.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages