energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
795 stars 671 forks source link

FIXED — StellarPad • eeprom.c: undefined reference to `SysCtlDelay' #137

Closed rei-vilo closed 11 years ago

rei-vilo commented 11 years ago

Energia from the restored StellarPad branch raises an error when compiling the blink example for the StellarPad target.

Linked to #135

Error Message

core.a(eeprom.c.o): In function EEPROMClearSectorMask': /Users/reivilo/github/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/lm4f/cores/lm4f/driverlib/eeprom.c:121: undefined reference toSysCtlDelay' /Users/reivilo/github/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/lm4f/cores/lm4f/driverlib/eeprom.c:123: undefined reference to SysCtlDelay' /Users/reivilo/github/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/lm4f/cores/lm4f/driverlib/eeprom.c:125: undefined reference toSysCtlDelay' /Users/reivilo/github/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/lm4f/cores/lm4f/driverlib/eeprom.c:127: undefined reference to SysCtlDelay' core.a(eeprom.c.o): In functionEEPROMInit': /Users/reivilo/github/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/lm4f/cores/lm4f/driverlib/eeprom.c:190: undefined reference to SysCtlDelay' core.a(eeprom.c.o):/Users/reivilo/github/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/lm4f/cores/lm4f/driverlib/eeprom.c:217: more undefined references toSysCtlDelay' follow collect2: error: ld returned 1 exit status

Temporary Solution

Comment line 218 of hardware/lm4f/cores/lm4f/Energia.h

//#include "EEPROM.h"

Comment lines 20 to 25 of hardware/lm4f/cores/lm4f/main.cpp

//  //Initialize EEPROM 
//  ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_EEPROM0);
//    if(EEPROMInit() == EEPROM_INIT_ERROR) {
//      if(EEPROMInit() != EEPROM_INIT_ERROR)
//          EEPROMMassErase();
//    }
rei-vilo commented 11 years ago

No more error message.