2015-06-14 02:51 AM
All of the ST tools seem to generate a misaligned stack pointer.
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/14269.htmlStates a multiple of 8 bytes. yet it's always:<mem base> + <mem size> -1this seems to be from the early days of 8bit, but even then it was wrong as a push isSP--;*SP = <reg>;and pop<reg> = *SP;SP++;So why is it misaligned? #stack-pointer #alignment #st-linker2015-06-14 06:41 AM
[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/STM32F405RGTx_FLASH.ld%20uses%20unaligned%20SP&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx¤tviews=53]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Java%2fSTM32F405RGTx_FLASH%2eld%20uses%20unaligned%20SP&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Java%2FAllItems%2Easpx¤tviews=53