I am trying to migrate a working project from version 2.3 to 3.5
I have managed to make it working although I don't understand some of the changes I had to do to make it work.
My main concern is that some of my C files had to changed the optimization settings from Optimize For Size to None to prevent HardFaultExceptions
Exactly the same file on previous version of 2.3 was optimized for Size and was working fine.
Some other changes I had to make that could affect my questions are:
Delete my included files of the tasking library.
Add the path of the tasking library -> linker_additional_files="$(PackagesDir)/libraries/libctl/lib/libctl$(LibExt).a"
Lines in core_cm3 to:
__ASM volatile ("strexh %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
__ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
Please sign in to leave a comment.