Re: [SOLVED]Issues in Non-Blocking/Interrupt Based UART

Dakshk
Posts: 5
Joined: Tue May 21, 2024 11:02 am

Re: [SOLVED]Issues in Non-Blocking/Interrupt Based UART

Postby Dakshk » Fri Jun 07, 2024 4:46 am

Error can be solved by following method though I do not recommend that, but it can implement interrupt based UART and you can have functioning code.

So, our approach was to use the function

Code: Select all

isr_register
and

Code: Select all

isr_free
which were removed in newer version of IDF, for that you have to make few changes in UART.c and UART.h:

1. copy both of above-mentioned codes from older version of SDK found from github and paste them into your files (UART.c and UART.h).
2. in

Code: Select all

uart_driver_install
function find

Code: Select all

 uart_int_alloc 
function and replace it with

Code: Select all

uart_isr_register
(for this you can directly compare from both SDKs

Code: Select all

uart_driver_install
function).

Feel free to ask question.

Who is online

Users browsing this forum: No registered users and 119 guests