cancel
Showing results for 
Search instead for 
Did you mean: 

Programming stm32 using another mcu

sudhan j
Associate II
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.

1 ACCEPTED SOLUTION

Accepted Solutions
Max
ST Employee
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

View solution in original post

5 REPLIES 5
Oliver Beirne
Senior
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

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 Up vote any posts that you find helpful, it shows what's working..
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
ST Employee
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

Please update the links of the documents mentioned above.