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.

CCS 5 code for recommended errata 2.6 fix for TM120H5QR (was LF120H5QR)

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

  • Donald Rich said:

    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.

     Hi Donald, I suppose OUT file cannot be opened due to compile error, so at rebuild out and object files get erased by clean, linking never start due to error on compile so no object to link then file no more OUTfile can exist.