The code recommended in the LMF120H5QR Errata does not compile on CCS 5 and the expected equivalent (below) prevents the writing of the OUT file resulting in an error message that the OUT file could not be opened.
I am using CCS 5.3.0.00090.
The code I am using is:
void
CPUwfi_safe(void) {
asm("wfi");
asm("mov r0,#0"); // force bx lr to not start until after clocks back on
asm("bx lr");
}
The equivalent code listed in the Stellaris® LM4F120H5QR Rev A1/A3/B0 Errata document is:
__asm int
CPUwfi_safe(void) {
//
// Wait for the next interrupt.
//
wfi;
mov r0,#0 // force bx lr to not start until after clocks back on
bx lr
}
Without this code the program compiles and runs. With the code (even if not called) the out file is not readable.
Donald Rich