We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all,
I have been using v6 compiler and CMSIS 5.9.0 for quite some time with no problems. I have just migrated to CMSIS 6.2.0 and made the necessary changes (including change to c11) but I now get the following linker errors:
Error: L6242E: Cannot link object rtx_delay.o as its attributes are incompatible with the image attributes. ... wchart-16 clashes with wchart-32. ... packed-enum clashes with enum_is_int.
These errors occur for rtx_evflags.o, rtx_kernel.o, rtx_msgqueue.o, rtx_mutex.or, rtx_semaphore.o and other rtx files, but only since upgrading to CMSIS 6.2.0 from 5.9.0..
My compiler settings are unchanged (except for changing to c11). The control string is "-xc -std=c11 --target=arm-arm-none-eabi -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -c-fno-rtti -funsigned-char -fshort-enums -fshort-wchar" for all files.
Any ideas on how to solve this?
Thanks
Please see the below learning path, specifically:
https://learn.arm.com/learning-paths/embedded-and-microcontrollers/project-migration-cmsis-v6/troubleshooting/#linker-errors-using-the-rtx5-library