STM32F469 - DISCO. SPI2 not working when launching FreeRTOS touch gfx task
Hi there,
I am using and STM32F469-disco board and want it to communicate via SPI2 with a Battery Management System. When launching only the BMS task it runs perfectly, the communication is stable and I can read cell voltages and temperatures through SPI2 line.
The thing is that when adding touch gfx task (uncommenting the initialize of the kernel) it runs the BMS task as well as Touch GFX task but the BMS task does not work correctly, it does not communicate with BMS. The same code, same task, but adding Touch GFX task creates a conflict that does not lend the SPI2 communicate with other devices.
In theory, the pins for SPI2 (PB14 and PB15) are free of use. I also tried to disable interruptions when reading BMS in BMS task (__disable_irq()) but does not work neither.
Could someone think of a solution, or testing to know where is the problem?
Thank you very much!
PD: I would say that both Cube and Touch are updated to last version.
