I am importing energia in ccs it working well with some example code like blinking led, but showing at build time for some other examples like Serial. begin and serial.print.
When I comment Serial function it works well
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am importing energia in ccs it working well with some example code like blinking led, but showing at build time for some other examples like Serial. begin and serial.print.
When I comment Serial function it works well
for Serial.begin it shows error at time of build
Description Resource Path Location Type
error: AnalogReadSerial.out uses VFP register arguments, c:/users/lenovo/appdata/local/energia15/packages/energia/tools/arm-none-eabi-gcc/8.3.1-20190703/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp\libc_nano.a(lib_a-lock.o) does not AnalogReadSerial C/C++ Problem
error in make file
Description Resource Path Location Type
error: AnalogReadSerial.out uses VFP register arguments, c:/users/lenovo/appdata/local/energia15/packages/energia/tools/arm-none-eabi-gcc/8.3.1-20190703/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp\libc_nano.a(lib_a-lock.o) does not AnalogReadSerial C/C++ Problem
With GCC multi-lib the options passed to the linker select which library is linked.
If the linker options used in selecting the library don't match those used by the compiler then can get such errors reported by the linker.
Using CCS 10.3 with GCC projects found that not all of the options specified on the project properties CCS Build -> GNU Compiler -> Runtime get passed to the linker by CCS.
When just used CCS 10.3 to create a project for a Cortex-R device I initially got the same error.
On the Build -> GNU Compiler -> Runtime properties specified values for the -mcpu, -mfloat-abi and -mfpu options. However, CCS was only automatically passing the value of the -mcpu and -mfpu options to the linker.
To resolve the linker errors about incompatible VFP register arguments under CCS Build -> GNU Linker -> Miscellaneous added -mfloat-abi=hard to the "Miscellaneous flags":
Can you try that at see if also resolves your linker errors?