Hello Experts,
I am using TM4C129X micro-controller and I am writing custom boot-loader to read the binary stored in on-chip SPI Flash but before that I am trying to debug the UART based code which is embedded with it and can be enabled by removing comment of #define UART_ENABLE_UPDATE.
But the issue I am facing is while debugging using Stellaris In-Circuit Debug Interface the code stops at some instruction and I cannot proceed further such as currently the code stops and freezes in ConfigureDevice(void) function at instruction HWREG(GPIO_PORTA_BASE + GPIO_O_AFSEL) |= UART_PINS; its assembly instruction is HWREG(GPIO_PORTA_BASE + GPIO_O_AFSEL) |= UART_PINS;
20000090: 490F LDR R1, $C$CON4
20000092: 6808 LDR R0, [R1]
20000094: F0400003 ORR.W R0, R0, #3
20000098: 6008 STR R0, [R1]
My code freezes at line 20000092: 6808 LDR R0, [R1] and I cannot step further.
Also some times the IDE gives error in dis-assembly window as Memory Map Prevented reading of Memory XXXX code=[yyyy].