Search found 3 matches

by Noedel-Man
Tue Mar 19, 2019 7:05 pm
Forum: General Discussion
Topic: Can't write to UART when ISR is freed.
Replies: 4
Views: 5542

Re: Can't write to UART when ISR is freed.

https://github.com/espressif/esp-idf/blob/f19ecbbbfa45563772019623d8b68cc52d5b0544/components/driver/uart.c#L731 Thanks for the info WiFive, I have looked into it some more. But executing a static function from my ISR is not really ideal, because then I have to adjust the ESP-IDF to make it executa...
by Noedel-Man
Tue Mar 19, 2019 8:17 am
Forum: General Discussion
Topic: Can't write to UART when ISR is freed.
Replies: 4
Views: 5542

Re: Can't write to UART when ISR is freed.

If you are using a custom isr you should either call the default isr from yours and make sure they do not conflict or duplicate the functions you need from the built in isr in yours or use your own complete driver. You can't just get rid of the default isr that is part of the idf driver. Yea, i tho...
by Noedel-Man
Mon Mar 18, 2019 7:53 pm
Forum: General Discussion
Topic: Can't write to UART when ISR is freed.
Replies: 4
Views: 5542

Can't write to UART when ISR is freed.

Hi, I'm trying to write data to the UART while my custom ISR is active. The ISR gets triggered on incoming UART data. And is able to send the bytes back (echo). This however only works when the tx_buffer in `uart_driver_install()` is 0. But when It's 0 then any `uart_write_bytes()` outside of the IS...