Other Parts Discussed in Thread: TM4C1294NCPDT, ENERGIA
I have a simple Energia sketch where I'm trying to read the USER registers on a TM4C1294NCPDT (on the Launchpad board) with the FlashUserGet function, but it's hanging without outputting anything.
I've included the code below.
#include "inttypes.h"
#include "driverlib/flash.h"
uint32_t* user1, *user2;
void setup()
{
Serial.begin(19200);
}
void loop()
{
int dammit = FlashUserGet(user1, user2);
if (dammit == 0)
{
Serial.print("User registers: ");
Serial.print(*user1, HEX);
Serial.print(" and ");
Serial.println(*user2, HEX);
}
else
Serial.println("Hardware failure");
delay(10000);
}