2024-01-22 03:56 AM
Hello everyone,
I'm facing an issue with STM32H750 and an SPI memory connected to SPI2 peripheral, and I hope someone here can lend a hand or share similar experiences. Currently, I'm dealing with the following problem:
Configuration:
The Problem: We are developing a complex application based on STM32H750 that utilizes nearly all available GPIOs. Our application needs to load data from a flash memory connected to the SPI2 peripheral. In our initial tests on an empty project, the BSP we developed could read and write data without any issues, with a polling read/write time for a 4KB segment being less than a millisecond, just as expected.
However, once we added FreeRTOS and TouchGFX, we encountered the following problems:
We have tried to address these issues by shifting read and write operations to use interrupts and DMA. While things improved, we still face the following challenges:
We even excluded the task related to TouchGFX to see if there was any improvement, but the problem persists. We have considered the possibility of concurrency conditions on the SPI2 peripheral but haven't found evidence of it.
Has anyone faced a similar issue or have ideas on how we can resolve these problems? Any help or suggestions would be greatly appreciated. Thanks in advance!