A function fails when called from an interrupt
Hi,
I have defined a function, that when called, from the main.c while loop works fine. When the same function is called from an interrupt it fails to work.
In debug mode I can see that the interrupt function (void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) is called. My function is then called, but it no longer works as it did when called from the main while loop.
The context is the function, defined above, asks a LCD TFT display to do something. The LCD is controlled via SPI. DMA is enabled.
Is it the case that the interrupt would only "fire" once the SPI has finished its work? If it interrupts the current SPI communication would this be the problem?
I note also that I can alter global variables fine in the said function.
Any suggestions welcome.
Thanks in advance
