Open chrisdew opened 10 years ago
http://stackoverflow.com/questions/9632595/compiling-basic-c-file-for-the-arm-processor
I tried both methods and they both worked.
For the assembly version I deleted the comments and placed it right after .global Default_Handler
.globl _exit
_exit:
b .
If you do the C implementation with void _exit(void) it will throw a warning of:
warning :conflicting types for build-in function "_exit' [enabled by default]
It apparently has to do with newlib.
@chrisdew , confirmed: i have the same issue here.
@nabilt , Adding --specs=nosys.specs to the MCFLAGS in Makefile seems to fix, perhaps concider?
I'm running
make
in https://github.com/nabilt/STM32F4-Discovery-Firmware/tree/master/Project/Demonstration and just getting:I've installed the arm-none-eabi toolchain from:
deb http://ppa.launchpad.net/terry.guo/gcc-arm-embedded/ubuntu precise main
.Is there something else I need to do?
(Using Ubuntu 12.04LTS on x86_64.)
As the undefined reference is to
_exit
it could be that I'm missing the C runtime (called crt0, iirc?).