Skip to main content
sudhan j
Associate
February 7, 2017
Solved

Programming stm32 using another mcu

  • February 7, 2017
  • 5 replies
  • 2248 views
Posted on February 07, 2017 at 10:06

Hi,

My project include two MCU with nrf51822 and STM32. I'm upgrading STM32 application firmware by nrf51822 using UART. I'm very new for stm32 world so i don't know what and all modifications need to be perform at stm32 side. Kindly give me some suggestions for solving this problem.

    This topic has been closed for replies.
    Best answer by Max
    Posted on February 09, 2017 at 12:09

    Hello,

    What

    Turvey.Clive.002

    was suggesting is that you may not need to write your own bootloader to program the STM

    You may want to use the one already built-in. Look at

    http://www.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD001675pdf/files/CD001675pdf/jcr:content/translations/en.CD001675pdf

    and

    http://www.st.com/content/ccc/resource/technical/document/application_note/51/5f/03/1e/bd/9b/45/be/CD00264pdf/files/CD00264pdf/jcr:content/translations/en.CD00264pdf

    for details.

    If you still need to make your own, here is an example using the HAL:

    http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-software/x-cube-iap-usart.html

    .

    there are many older examples on ST web site using the STDLIB if needed.

    best regards,

    Max

    5 replies

    Oliver Beirne
    Associate II
    February 7, 2017
    Posted on February 07, 2017 at 13:47

    Hello

    I have moved your thread to the

    https://community.st.com/community/stm32-community/stm32-forum?sr=search&searchId=08430c38-4a42-4d27-830f-574440b914b8&searchIndex=0

    ‌ where someone should be able to assist you.

    Thanks

    Tesla DeLorean
    Guru
    February 7, 2017
    Posted on February 07, 2017 at 18:20

    ST provides documentation for the protocol used by the System Loader ROM in the STM32 parts, you should review that.

    ST also has many examples of IAP (In-Application Programming), those might give you some ideas and a starting point.

    Most of the complexity is not STM32 centric, what experience do you have writing loaders and doing firmware updates?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    sudhan j
    sudhan jAuthor
    Associate
    February 9, 2017
    Posted on February 09, 2017 at 05:03

    Hi,

    Thanks for the quick replay.I have basic knowledge on  writing loaders.

    Dose any one have a custom booloader example which suits my requirement so i can modify that according to my requirement.

    Max
    MaxBest answer
    ST Employee
    February 9, 2017
    Posted on February 09, 2017 at 12:09

    Hello,

    What

    Turvey.Clive.002

    was suggesting is that you may not need to write your own bootloader to program the STM

    You may want to use the one already built-in. Look at

    http://www.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD001675pdf/files/CD001675pdf/jcr:content/translations/en.CD001675pdf

    and

    http://www.st.com/content/ccc/resource/technical/document/application_note/51/5f/03/1e/bd/9b/45/be/CD00264pdf/files/CD00264pdf/jcr:content/translations/en.CD00264pdf

    for details.

    If you still need to make your own, here is an example using the HAL:

    http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-software/x-cube-iap-usart.html

    .

    there are many older examples on ST web site using the STDLIB if needed.

    best regards,

    Max

    SayanSeth
    Associate II
    January 21, 2020

    Please update the links of the documents mentioned above.