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.4.0.0091 PC counter only advance 2 bytes

Hi,

I was using ccs 5.4.0.90 and connected to the keystone-2 ARM core to run a bare metal application. I noticed that when I step over the 4-byte assembly instruction, "mrs r0, cpsr", the PC only advances 2 bytes. PC was at 0x80000000, and after executing the above instruction, PC=0x80000002. Does anyone has any idea why and how to fix it? By the way, the code isn't compiled with thumb mode. The issue stays after I upgrade ccs to 5.4.0.91. It seems ok if I step the u-boot, but only the bare-metal application I built. It was working yesterday, but started this morning. I lost the image from yesterday, but the CFLAGS hasn't change.

Thanks!

Rex

  • Rex Chang said:
    It was working yesterday, but started this morning

    Rex,

    Do you mean the stepping was working correctly yesterday but suddenly stopped working? If so, do you know what, if anything, specifically changed between those times? Did the problem start when you updated to 5.4.0.91 or did you change any of the build options for the project?

    I currently don't have a Keystone-2 board to give this a try, but if you can share your project or even just the .out file, I may be able to see if there is anyone else that has access to the board that could take a look.