Forum : ARM
Original Post
Post Information | Post |
---|---|
June 27, 2016 - 11:03am
|
Hello, The compilation of the same sourcecode for the processor "STM32F103CBT6" (e.g.) succeeds without an error. But thats not helpful for me. |
Hello,
Could you, please, send us an example project showing the problem.
Thanks
Hello,
i've solved the problem. With the gcc compileroptions "-mcpu=cortex-m3 -mthumb -mno-thumb-interwork -mfpu=vfp -msoft-float -mfix-cortex-m3-ldrd" THIS specific error disappears.
The next error was "registers may not be the same - strexb/h". To solve this i had to modify the codefile "core_cm3.c":
"__ASM volatile ("strexb %0, %2, [%1]" : "=r" (result)...." must be replaced with "__ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result)"
Up to now, i couldn't compile the project completely, but this because of differences in the library (old STM32F103 -> new STM32091)
Best regards,
Michael Bohle
please have a look of the FAQ http://support.raisonance.com/content/what-are-major-changes-rkit-arm-154-migrating-gcc-arm-46x-483
regards