Primary and Secondary Bootloaders for Cortex-M Processors

Make it to the Right and Larger Audience

Blog

Primary and Secondary Bootloaders for Cortex-M Processors

Here it is, another introduction article about primary and secondary bootloaders using Cortex-M as the target processors. There are many articles online about this topic. But it is still difficult for a starter to understand the concept. Taking below app note

AN10866 LPC1700 secondary USB bootloader

as an example. Many discussions referenced it. It talks about primary bootloader calling the secondar bootloader and shows below memory mapping. But where is primary bootloader? Why 2nd bootloader resides in address 0x0? In this case, 2nd bootloader runs when system is out of power cycle and starts to boot.

 

Some more questions if you think you understand how bootloader and boot works. You heard about interrupt vector table remap using VTOR of Cortex-M. But what about memory mapping remap which is much less mentioned but could play an important role in boot process?

 

The following is site premium content.
Use points to gain access. You can either purchase points or contribute content and use contribution points to gain access.
Highlights: 7313 words, 2 images
 
Firmware engineer
Author brief is empty
2 Comments
  1. aaronchi 2 years ago
    0
    -0

    Good introduction.

    I heard instead of using gpio, bootloader can read external eeprom or flash to figure out if need to download from them?

    5
    • Author
      Imran 2 years ago
      0
      -0

      Yes some bootloaders use this approach. But here is a caveat. Embedded SOC is normally pad limited. Pad may be connected in a different way on different platforms. Pads connected to eeprom or flash mem could be used for other purposes. Blindly read external mem may cause issue. A safe way is to use a GPIO to know whether external mem is available.

      0

Contact Us

Thanks for helping us better serve the community. You can make a suggestion, report a bug, a misconduct, or any other issue. We'll get back to you using your private message ASAP.

Sending

©2021  ValPont.com

Forgot your details?