__bss_end and __brkval on Teensy 3.0?

Status
Not open for further replies.

dlchambers

Well-known member
I picked up this LCD from adafruit:
https://www.adafruit.com/products/438

and downloaded their Arduino lib, and opened their st7565lcd example.
It compiles & works perfectly on a Teensy 2.0.

But when I compile for Teensy 3.0 I get these errors:
Code:
sps_lcd.cpp.o: In function `freeRam()':
C:\Program Files\Arduino\arduino-1.0.3/sps_lcd.ino:120: undefined reference to `__brkval'
C:\Program Files\Arduino\arduino-1.0.3/sps_lcd.ino:120: undefined reference to `__bss_end'

Any ideas as to the equivalents for these symbols (extern int) on Teensy 3.0?

Update: When I comment out the offending lines, the sketch compiles & loads, but doesn't run. I need to do some debugging!
 
Last edited:
Please try using Arduino 1.0.4 and Teensyduino 1.13.

I recently added these, specifically to support that library on Teensy 3.0. Only 1.13 has them. If you're running an older version of Teensyduino, you'll get that error.
 
Status
Not open for further replies.
Back
Top