AnsweredAssumed Answered

rtos example: bin/sh: syntax error: unterminated quoted string

Question asked by Lars Heinrichs on Jan 29, 2018
Latest reply on Feb 2, 2018 by Lars Heinrichs

Hello community,


I have set up Eclipse (GNU MCU Eclipse) to do some bare metal programming on an MX7 device, specifically on the M4.



The project does not build properly. Here is the projects file tree (some folders are collapsed for readability). The application is the Hello World example from the RTOS SDK.

On trying to build, i get the following console output:

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0
-fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g3 -DCPU_MCIMX7D_M4


-std=gnu11 -MMD -MP -MF"rtos/portable/MemMang/heap_1.d"
-c -o "rtos/portable/MemMang/heap_1.o" "path/FreeRTOS_BSP_1.0.1_iMX7D/rtos/FreeRTOS/Source/portable/MemMang/heap_1.c"

path_to_MCU_eclipse/build tools/2.10-20180103-1919/bin/sh: syntax error: unterminated quoted string

make: *** [rtos/portable/MemMang/ rtos/portable/MemMang/heap_1.o] Error 2



I switched the heap_X.c files (between 1 and 2) to make sure it is not the .c file that has an error, but nothing changed.


Maybe somewhere in the source files there is a " missing. But that will be quite hard to hunt down, especially as the code is an example. Maybe my whole setup is all wrong? Or compiler options? I am not familiar with setting up toolchains etc, so I dont know what additional info you might need.


Compiler is arm-none-eabi-gcc as you can see in the console output above. Host OS is win 10. IDE Eclipse with ARM GNU plugins as found here: GNU ARM → GNU MCU Eclipse!