Can semihosting be used with an empty C project?
I seem to get make errors when building ussing a project that started out as an empty c-project instead of the standard "STM32F4xx C/C++ Project" provided by launchpad, and I am realizing the only difference between the two is that, though I specify building a c project from the menu system in eclipse, the launchpad project is actually using a c++ linker instead of a c linker. Because of dependencies I cannot port my code over to a launchpad project. So I was wondering if the errors I am receiving is because semihosting cannot be used with a C Linker? I followed this guide to add semihosting to my project:
(with openOCD)
and this is the make line that I am using:
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mthumb-interwork -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wunused -Wuninitialized -Wall -Wextra -Wmissing-
the only error I am getting is:
librdimon_
syscalls.
collect2: error: ld returned 1 exit status
Thank you for your time
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Preud'homme
- Solved:
- Last query:
- Last reply: