i got the solution,
i have to use ESP_ERROR_CHECK(uart_isr_free(EX_UART_NUM)); before uart_isr_register, as install driver also initialise interrupt subroutine.
Thank for help
[Solved]UART rx ISR not working
-
- Posts: 51
- Joined: Sat Mar 17, 2018 4:49 am
Re: [Solved]UART rx ISR not working
hi,
am also looking for the same, am trying separate uart interrupt there am little confuse about the interrupt API's ,can u share that code.
thanks
am also looking for the same, am trying separate uart interrupt there am little confuse about the interrupt API's ,can u share that code.
thanks
-
- Posts: 12
- Joined: Wed Feb 21, 2018 4:28 pm
Re: [Solved]UART rx ISR not working
sorry for late replyningappa BS wrote:hi,
am also looking for the same, am trying separate uart interrupt there am little confuse about the interrupt API's ,can u share that code.
thanks
here is the code on github
https://github.com/theElementZero/ESP32 ... nterrupt.c
Re: [Solved]UART rx ISR not working
Hi,
I am new to esp32 uart uage.
Is your custom interrupt handler is transmit / write to uart?
on esp32 I received message through CAN bus and i need to transmit to uart.
so far only UART2 is working for me.
only printf write to uart as far i can see. it is same uart as my debug console.
Any idea about to how to receive data via uart as well.
I am new to esp32 uart uage.
Is your custom interrupt handler is transmit / write to uart?
on esp32 I received message through CAN bus and i need to transmit to uart.
so far only UART2 is working for me.
only printf write to uart as far i can see. it is same uart as my debug console.
Any idea about to how to receive data via uart as well.
Re: [Solved]UART rx ISR not working
here is the code on github
https://github.com/theElementZero/ESP32 ... nterrupt.c[/quote]
The above example program is not working for me. I tried with both UART 0 and UART 2 on esp32 board. interrupt does not gets trigger.
How can I interrupt it.
https://github.com/theElementZero/ESP32 ... nterrupt.c[/quote]
The above example program is not working for me. I tried with both UART 0 and UART 2 on esp32 board. interrupt does not gets trigger.
How can I interrupt it.
Re: [Solved]UART rx ISR not working
Dont forget to call usr_isr_free before uart_isr_register
Code: Select all
// release the pre registered UART handler/subroutine
ESP_ERROR_CHECK(uart_isr_free(EX_UART_NUM));
Re: [Solved]UART rx ISR not working
I solved by placing uart_isr_free(UART_PORT) before registering the new isr
Who is online
Users browsing this forum: kaxx1975 and 176 guests