Decided to go looking and found the beta stuff. :)
Assuming GCC_CS is the CodeSourcery chain. GCC_CR is probably CodeRed, LOTS of errors with Sourcery. GCC_ARM has a missing library failure. I didn't bother with ARM or uARM.
Using GCC_CS supplied .ld script, I'm getting this error:
C:\ARMbeta\projects\oled>make
arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -O2 -Wl,-Map=OLED.map,--cref,--gc-sections,--no-wchar-size-warning -T../../build/mbed/mbed/LPC1768 /LPC1768.ld ./SSD1305.o ./main.o ../../build/mbed/mbed/LPC1768/libmbed.a ../../build/mbed/mbed/LPC1768/libcapi.a -o OLED.elf
../../build/mbed/mbed/LPC1768/LPC1768.ld:213: undefined symbol `__cs3_interrupt_vector_cortex_m' referenced in expression
collect2: ld returned 1 exit status
cs-make: *** [OLED.elf] Error 1
So... ripped the external and usage out to see what would happen and got this...
C:\ARMbeta\projects\oled>make
arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -O2 -Wl,-Map=OLED.map,--cref,--gc-sections,--no-wchar-size-warning -T../../build/mbed/mbed/LPC1768/LPC1768.ld ./SSD1305.o ./main.o ../../build/mbed/mbed/LPC1768/libmbed.a ../../build/mbed/mbed/LPC1768/libcapi.a -o OLED.elf
../../build/mbed/mbed/LPC1768/LPC1768.ld:213: undefined symbol `__cs3_reset_cortex_m' referenced in expression
collect2: ld returned 1 exit status
cs-make: *** [OLED.elf] Error 1
So, reran with both sets removed from ld, just to see what would happen, and here's the list...
C:\ARMbeta\projects\oled>make
arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -O2 -Wl,-Map=OLED.map,--cref,--gc-sections,--no-wchar-size-warning -T../../build/mbed/mbed/LPC1768/LPC1768.ld ./SSD1305.o ./main.o ../../build/mbed/mbed/LPC1768/libmbed.a ../../build/mbed/mbed/LPC1768/libcapi.a -o OLED.elf
c:/armbeta/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol __cs3_reset_cortex_m; defaulting to 00000000
../../build/mbed/mbed/LPC1768/libmbed.a(Serial.o): In function `mbed::Serial::setup_interrupt(mbed::Serial::IrqType)':
Serial.cpp:(.text+0x20a): undefined reference to `NVIC_SetVector'
Serial.cpp:(.text+0x216): undefined reference to `NVIC_SetVector'
Serial.cpp:(.text+0x222): undefined reference to `NVIC_SetVector'
Serial.cpp:(.text+0x22e): undefined reference to `NVIC_SetVector'
../../build/mbed/mbed/LPC1768/libcapi.a(i2c_api.o): In function `i2c_frequency':
i2c_api.c:(.text+0xf8): undefined reference to `SystemCoreClock'
../../build/mbed/mbed/LPC1768/libcapi.a(serial_api.o): In function `serial_baud':
serial_api.c:(.text+0x1fc): undefined reference to `SystemCoreClock'
../../build/mbed/mbed/LPC1768/libcapi.a(timer_api.o): In function `timer_frequency':
timer_api.c:(.text+0x14): undefined reference to `SystemCoreClock'
c:/armbeta/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-abort.o): In function `abort':
abort.c:(.text+0xa): undefined reference to `_exit'
c:/armbeta/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0x12): undefined reference to `_sbrk'
c:/armbeta/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text+0x14): undefined reference to `_kill'
c:/armbeta/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text+0x2c): undefined reference to `_getpid'
c:/armbeta/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-isattyr.o): In function `_isatty_r':
isattyr.c:(.text+0x12): undefined reference to `_isatty'
collect2: ld returned 1 exit status
cs-make: *** [OLED.elf] Error 1
Using arm-2011.03 from CodeSourcery, stole the makefile from gcc4mbed and just removed all references to gcc4mbed and put in the beta stuff. Compiles fine on both online compiler and gcc4mbed offline compiler. Anyone get around these yet?
Hi,
We have an alpha of a multi-toolchain version of the mbed C/C++ libraries SDK, enabling it to be used and be compatible across a number of toolchains.
I'd be interested to hear from anyone who is or would like to be using the mbed libraries with Keil uVision MDK, Code Red or GCC (code sourcery) who'd also be willing to dedicate some time for some testing of this alpha. Please just reply here or message me if you'd be willing to help out.
Simon