2015-06-23 01:08 AM
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 ?thanks2015-06-23 04:52 AM
If you told us why is this useful.
2015-06-23 05:13 AM
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 ?2015-06-23 12:03 PM
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 ST2015-06-23 01:01 PM
Read this to understand the concept http://www.st.com/web/en/resource/technical/document/application_note/DM00047998.pdf
2015-06-24 01:35 AM
hej ,
can you write a sample code for that .. it can be useful for many if u do it once ... thank you2015-06-24 09:10 AM
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¤tviews=87]Your other thread