Content originally posted in LPCWare by mspahr on Wed Jan 29 18:20:13 MST 2014
I started my project with an example from "LPCWare/LPC11xx/Downloads/Software/Sample code bundle for LPC11xx peripherals using NXP LPCXpresso". The project is USB ROM MSC. I have built on this base.
I am usinf LPCXpresso V5.2.6 with LPC11U35.
I am trying to use stdlib function strtof.
In the source c file I have #include stdlib.h
The file compiles OK.
The linker gives the error "undefine reference to strtok.
I have checked that the MCU compiler and MCU linker target are set to redlib.
I changed the MCU linker target setting from redlib(none) to redlib(semihost), also tried (nohost).
It still fails.
I noticed under the linker general tab that the box "no startup or default libs" is checked.
I unchecked this and it compiles and links OK, but it has added 24k of code and when run, it gets a hard fault.
Please help. I need to use several functions from redlib.
Mike