Skip to main content
VDesa
Associate II
July 29, 2018
Question

Booting process of STM32 MCU

  • July 29, 2018
  • 3 replies
  • 1396 views

Dear All,

I am new to ARM microcontrollers and about to start working on some application. Please explain me the complete boot process of STM32L476RG controller.

  1. Who has to write the boot code? If the answer is the programmer, what he has to write exactly and where he has to write? Why cant we simply put his code in ROM?
  2. Explain me the functionality of BOOT0 and BOOT1 pin. What do they do?
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    July 29, 2018

    Could you just read some manuals rather than have others read them to you? ARM makes a number of Technical Reference Manuals (TRM) that are arguably pretty complete.

    https://www.st.com/content/ccc/resource/technical/document/programming_manual/6c/3a/cb/e7/e4/ea/44/9b/DM00046982.pdf/files/DM00046982.pdf/jcr:content/translations/en.DM00046982.pdf

    The STM32 parts contain ROM, RAM and FLASH, the BOOTx pins control where execution is directed. You'd write your own code, with the usual Cortex-M4 vector table, such that is is placed at 0x08000000 in the memory map.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    VDesa
    VDesaAuthor
    Associate II
    July 30, 2018

    Thank you for responding me. I will go through the link. Please clarify my below doubts

    1. If the user code is placed at 0x08000000, then whether the booting sequence operations like initialising the MCU, clock and other stuffs will not happen?
    2. BOOTx pins are given for writing secondary boot loader?
    VDesa
    VDesaAuthor
    Associate II
    July 31, 2018

    Hello,

    I am not getting anything in the link that you have provided. Please help.