Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

TM4C1294 UART interrupt handler registration

MihayK

New Member
I'm trying to make an interrupt handler by UART. Here is a link to the code I use:
Site about UART
However, when initializing the UART, the controller freezes on registering the interrupt handler function:
Code:
UARTIntRegister(UART0_BASE, vUART0_IntHandler);
(under the debugger, I checked the input to this function, the filling of the interrupt vector, but when exiting this function, the debugger does not go further. I even made a semaphore of LEDs to make sure that after this function, the controller stops further code execution) Moreover, the function vUART0_IntHandler - can be either filled or completely empty.

I feel like I missed some detail.
What is missing in the code?
Who knows - please help!
 
Make sure the interrupt vector for UART0 is properly defined and set up in your microcontroller's startup code or interrupt vector table. This ensures that the correct interrupt handler function is called when an interrupt occurs. Verify that the interrupt vector for UART0 is correctly mapped to the address of vUART0_IntHandler.

I cannot help you much because I do not have the TM4C123GLaunchPad. I think it will be more helpful if you post this question to the texas instruments forum:

You're more likely to get a better direction from the TI stuffs there.
 
I'm trying to make an interrupt handler by UART. Here is a link to the code I use:
Site about UART
However, when initializing the UART, the controller freezes on registering the interrupt handler function:
Code:
UARTIntRegister(UART0_BASE, vUART0_IntHandler);
(under the debugger, I checked the input to this function, the filling of the interrupt vector, but when exiting this function, the debugger does not go further. I even made a semaphore of LEDs to make sure that after this function, the controller stops further code execution) Moreover, the function vUART0_IntHandler - can be either filled or completely empty.

I feel like I missed some detail.
What is missing in the code?
Who knows - please help!
https://105fm.pt/portuguese-casino/bidluck

Hi.

The code you linked to looks correct, but there is one detail that you may have missed. In order for the interrupt handler to be called, you need to enable interrupts. You can do this by calling the UARTIntEnable function.
 
Last edited:

Latest threads

New Articles From Microcontroller Tips

Back
Top