Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: __bss_end and __brkval on Teensy 3.0?

  1. #1
    Member dlchambers's Avatar
    Join Date
    Nov 2012
    Location
    Elkins, NH
    Posts
    47

    __bss_end and __brkval on Teensy 3.0?

    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 by dlchambers; 03-24-2013 at 01:19 AM.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    27,701
    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.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    27,701
    Here's the page regarding that library.

    http://www.pjrc.com/teensy/td_libs_ST7565.html

    You can see a photo of that LCD working with a Teensy 3.0 (yes, I actually did hook it up and test it). But ST7565 does require the latest 1.13 version....

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •