Hello,

I was just revisiting an old project and looking to update my toolchain to
a more recent gcc-arm-embedded, but I can't seem to get semihosting (with
the black magic probe) working anymore. In particular, I get these errors
when I build:

~/gcc-arm-embedded/gcc-arm-none-eabi-4_8-2014q1-20140314/install-native/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/librdimon.a(rdimon-syscalls.o):
In function `_read':
syscalls.c:(.text._read+0x0): multiple definition of `_read'
~/gcc-arm-embedded/gcc-arm-none-eabi-4_8-2014q1-20140314/install-native/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libnosys.a(read.o):read.c:(.text._read+0x0):
first defined here
...
For _read, _lseek, _write, _close, _sbrk, and _isatty.

If I remove -lnosys from the line:
LDLIBS += -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group

(as in Makefile.rules in libopencm3-examples:
https://github.com/libopencm3/libopencm3-examples/blob/master/examples/Makefile.rules#L116
)

then my code compiles, and appears to run correctly. I am not really sure
what I am doing here - is this correct? Previously, with the 2012q4 version
of gcc-arm-embedded I did not need to do this...

Any feedback would be greatly appreciated!

Thanks,
-Stephen Dwyer
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to