cancel
Showing results for 
Search instead for 
Did you mean: 

Boot other than main

arunl4g
Associate II
Posted on June 23, 2015 at 10:08

hi ,

i would like to  change the settings in coocox to run from a seperate file not from the main.

can anyone tell me how to do that ?

thanks 
6 REPLIES 6
tm3341
Associate II
Posted on June 23, 2015 at 13:52

If you told us why is this useful.

arunl4g
Associate II
Posted on June 23, 2015 at 14:13

because i want to use bootloader and after that start the application main. dont know how to start the bootloader and switch to the main program. 

do u post the procedure and code to do that ?

tm3341
Associate II
Posted on June 23, 2015 at 21:03

Make 2 different projects for that.

Upload buffer at the start of flash address, 0x08000000, and bootloader to your desired offset location in flash. Don't forgot to set vector table offset to your main project.

That's all. Search for IAP example from ST

stm32forum
Associate II
Posted on June 23, 2015 at 22:01

Read this to understand the concept http://www.st.com/web/en/resource/technical/document/application_note/DM00047998.pdf

arunl4g
Associate II
Posted on June 24, 2015 at 10:35

hej 0690X0000060MnBQAU.gif,

can you write a sample code for that .. it can be useful for many if u do it once ...

thank you

Posted on June 24, 2015 at 18:10

Others just use the IAP examples as a starting point, and if necessary learn how GNU/GCC allows code placement using Linker Scripts (.LD), or how an IDE presents that in a menu/option format.

http://www.st.com/web/en/catalog/tools/PF257903

This is a topic that's been covered here, a lot, it would help if you review the available material.

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Erase%20Bootloader%20automatically&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=87]Your other thread

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..