cancel
Showing results for 
Search instead for 
Did you mean: 

Bootload condition

MehranMsba
Associate II
Posted on July 31, 2015 at 10:43

what is the meaning of this line in bootloaders?

if
(((*(__IO uint32_t*)StartAppLocation) & 0x2FFE0000 ) == 0x20000000)

Thank you.
1 REPLY 1
Posted on July 31, 2015 at 16:59

Checking the Initial SP (Stack Pointer) is in RAM, rather than some random value or 0xFFFFFFFF

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Need%20EXplanation%20for%20a%20single%20line&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=27]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fNeed%20EXplanation%20for%20a%20single%20line&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FAllItems%2Easpx¤tviews=27

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