Hi Ben
I have a small pogram to show the problem.
The uart is just working correct if I add an IRQ.
The IRQ can call an empty macro and 10 Second long
here the result without IRQ and with IRQ
without IRQ:
with IRQ:
ESP32 UART and an IRQ
-
- Valued Contributor
- Posts: 1025
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 194 times
- Been thanked: 218 times
-
- Valued Contributor
- Posts: 1542
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 138 times
- Been thanked: 735 times
Re: ESP32 UART and an IRQ
Can't replicate this problem: Seems to work AOK using channel 1 or 3 with or without the interrupt.
This was on a 'clean' build - I use a new directory for every file - I wonder if you've changed any settings in menuconfig that are 'upsetting' the output (attempting to output something at a different baud rate??)
Do you have BT enabled?
Even so - having an empty timer interrupt seems an unlikely fix?
Try using the batch file from the last post of viewtopic.php?t=2966&hilit=batch+file+e ... uild+speed - this gives a 'fresh' configuration for each project - just note you need to use compile to hex and set the com port in the batch file - however I use it for all eps32 projects - it it works well...
Matin
This was on a 'clean' build - I use a new directory for every file - I wonder if you've changed any settings in menuconfig that are 'upsetting' the output (attempting to output something at a different baud rate??)
Do you have BT enabled?
Even so - having an empty timer interrupt seems an unlikely fix?
Try using the batch file from the last post of viewtopic.php?t=2966&hilit=batch+file+e ... uild+speed - this gives a 'fresh' configuration for each project - just note you need to use compile to hex and set the com port in the batch file - however I use it for all eps32 projects - it it works well...
Matin