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.
Hi guys, I am using TM4c123gh6pm arm processor. I am using both uart0 and uart1 (uart1 along with interupts) in my project. I face a problem when I include the following line in my code;
GPIO_PORTC_PCTL_R = GPIO_PCTL_PC5_U1TX | GPIO_PCTL_PC4_U1RX;
The following error occurs whenever I type the above mentioned line in my code ( I am pasting the error msgs here for ur reference);
"CORTEX_M4_0: Can't Run Target CPU
CORTEX_M4_0: Error
CORTEX_M4_0: Unable to determine target status after 20 attempts
CORTEX_M4_0: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging."
I had to use lmflashprogrammer whenever this error pops up. I know that the UART1 functionality would completely fail if I remove this line. The reason why I say that this particular line causes this error is because, no errors occured when I removed this line (all though the UART1 didn't work when I removed this line). Guys pls help.
Poster Petrei's first identified - then solved - your "murder of JTAG."
Yet - use of Direct Register instead of far simpler & tested & example-laden Driver Library is not, "best/brightest" means of development.
Driver Lib. will speed, ease & enhance your development efforts - Direct Register (as you've found) - not so much.