Closed rei-vilo closed 11 years ago
This is because _sbrk() hasn't been implemented yet. It is used by newlib to allocate memory on the heap. I'm looking at the best way to implement both the stack and the heap. If you use malloc or new those calls will not work until this code is implemented. It might be premature to be filing bugs on something that hasn't even been tested or released from development.
Ok. Thanks.
please check commits, this might fix your problem:
https://github.com/energia/Energia/commit/32236716e4493b9154041d9ceaed4997c8417d27
Please give it a try.
-rick
Thanks. _sbrk()
seems to be fixed but I'm still having the __dso_handle
error.
Energia_Serial_LCD.cpp.o: In function
__static_initialization_and_destruction_0': /Applications/Energia_Serial_LCD.ino:92: undefined reference to
__dso_handle' /Applications/Energia.app/Contents/Resources/Java/hardware/tools/lm4f/bin/../lib/gcc/arm-none-eabi/4.7.1/../../../../arm-none-eabi/bin/ld: Energia_Serial_LCD.cpp.elf: hidden symbol `__dso_handle' isn't defined /Applications/Energia.app/Contents/Resources/Java/hardware/tools/lm4f/bin/../lib/gcc/arm-none-eabi/4.7.1/../../../../arm-none-eabi/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status
On line 92 is declared an object tObject myObject;
Where can I find the program source you are testing?
The program is GUI_main.pde using the Serial_LCD library.
This program is used as a test protocol for Arduino-like IDEs. Presently, it works with Arduino 23 and 1.0, chipKIT MPIDE and Wiring.
When building and linking a medium sized project, I have this error message from Energia at the linking stage: