This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Writing any thing to UART register cause hard fault

Hello, I am using tm4c123g microcontroller(cortex m4) and successfully programmed led blink, created 16x2 and 128x64 library files using CMSIS standard.
But when I try to write any value in UART register, it causes the cpu to jump into hard fault.
Example
UART0->CTL&=~1;

triggers the hard fault handler.
I am facing this problem with all other UART registers like baud registers.

BTW I am able to do it with direct memory addressing. But I want to use UART funcions in CMSIS.
I don't know what's going wrong please help.

Parents
  • "BTW I am going to ask TI too."

    What are you going to ask TI about? How to debug? If you use a header file from them, and you find that they have a constant wrong, then it's meaningful to contact them. If you, on the other hand, is using the header file for the wrong processor then it's way better to figure this out and fix it instead of wasting the time of the TI engineers.

Reply
  • "BTW I am going to ask TI too."

    What are you going to ask TI about? How to debug? If you use a header file from them, and you find that they have a constant wrong, then it's meaningful to contact them. If you, on the other hand, is using the header file for the wrong processor then it's way better to figure this out and fix it instead of wasting the time of the TI engineers.

Children