This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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); }