Errormessages with LCD on AVR

2012-10-23
2013-05-30
  • Frank Steinberg

    Frank Steinberg - 2012-10-23

    Hi!

    Had some irritations while playing with 4-bit LCD on AVR-microcontroller:

    #chip mega8,1
    'LCD connection settings
    #define LCD_IO 4
    #define LCD_DB4 PORTB.0
    #define LCD_DB5 PORTB.1
    #define LCD_DB6 PORTB.2
    #define LCD_DB7 PORTB.3
    #define LCD_Enable PORTB.4
    #define LCD_RS PORTB.5
    #define LCD_NO_RW
    CLS
    

    Errormessage after compiling:
    Error: GCASM: Symbol SYSCALCTEMPA has not been defined

    #chip mega8,1
    'LCD connection settings
    #define LCD_IO 4
    #define LCD_DB4 PORTB.0
    #define LCD_DB5 PORTB.1
    #define LCD_DB6 PORTB.2
    #define LCD_DB7 PORTB.3
    #define LCD_Enable PORTB.4
    #define LCD_RS PORTB.5
    #define LCD_NO_RW
    Print "Hello"
    

    Errormessage after compiling:
    Error: GCASM: Symbol SYSCALCTEMPB has not been defined
    Error: GCASM: Symbol SYSCALCTEMPX has not been defined

    At the end everything works without errormessages after adding LOCATE … , but was not easy to investigate.

    _________________________
    Steini

     
  • Hugh Considine

    Hugh Considine - 2012-11-04

    That is an embarassing bug that should not have escaped! The compiler was using some variables without declaring them properly. Please try the update from http://gcbasic.sourceforge.net/update.html and let me know if that has fixed the bug or not.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks