Page 1 of 1

my IRQ calls when a driver sends data via SPI

Posted: Sun Jan 05, 2020 5:20 am
by progman.rus
Hello. I have a too strange problem.
I have ILI9341 LCD. It works via SPI. ( library name is TFT_eSPI by Bodmer )
I use that pins TFT_MISO ( 5 ), TFT_MOSI( 19 ), TFT_SCLK ( 18 ), TFT_CS ( 23 ), TFT_DC ( 21 ), TFT_RST ( 22 )
it works perfectly and draws without problems.

Also, I have five IRQ functions. They using pins: GPIO32, GPIO33, GPIO25, GPIO26, GPIO27, GPIO14, GPIO13, GPIO15.

The problem is: If SPI driver sends data to display for drawing then my interrupts calls.
If I disable IRQ during drawing then all is ok.
usually calls IQR of GPIO15 and GPIO26 ( GPIO15 most often ), but other calls too, but more rarely.

Re: my IRQ calls when a driver sends data via SPI

Posted: Mon Jan 06, 2020 1:25 am
by ESP_Sprite
I honestly don't quite get what you want us to do about it... seems you already found somewhat of a working solution (disable interrupts) and you're not saying what your additional problems are with that, nor do you post any code so we can look if it makes sense.