Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
1.9.0
-
None
Description
When I use arm-gnu cross compiler with bare metal, I need to set linker and compiler option "-u _printf_float"
When I set
cpp.driverFlags: [ "-specs=nano.specs", "-u _printf_float", "-u _scanf_float", "-specs=nosys.specs", "-specs=rdimon.specs", "-mthumb", "-mcpu=cortex-m4", "-mfpu=fpv4-sp-d16", "-mfloat-abi=hard", "-g3", "-mfpu=vfp", ]
I get compiler options
gcc.exe -g -O0 -Wall -Wextra "-specs=nano.specs" "-u _printf_float" "-u _scanf_float" "-specs=nosys.specs" "-specs=rdimon.specs" -mthumb "-mcpu=cortex-m4" "-mfpu=fpv4-sp-d16" "-mfloat-abi=hard" -g3 "-mfpu=vfp"
some options inside quotes. Here is very difficult to search errors. "-u" option have to be without quotes.
I have to split it into two parts.
cpp.driverFlags: [ "-specs=nano.specs", "-u", "_printf_float", "-u", "_scanf_float", "-specs=nosys.specs", "-specs=rdimon.specs", "-mthumb", "-mcpu=cortex-m4", "-mfpu=fpv4-sp-d16", "-mfloat-abi=hard", "-g3", "-mfpu=vfp", ]
and result is
gcc.exe -g -O0 -Wall -Wextra "-specs=nano.specs" -u _printf_float -u _scanf_float "-specs=nosys.specs" "-specs=rdimon.specs" -mthumb "-mcpu=cortex-m4" "-mfpu=fpv4-sp-d16" "-mfloat-abi=hard" -g3 "-mfpu=vfp"
It is right. I searched this error 2 days...