STM32U5 with MX25R6435F is madness ?
- June 7, 2023
- 13 replies
- 5736 views
Hi,
This is driving me crazy, let me explain.
Setup : NucleoU575 with MX25R6435F in QSPI with wire jumper cables.
Here's a code adapted from an ST example for the stm32l496g_discovery.
The modifications were minor, and we simplified it to the maximum, just:
- Set a row of strings.
- Erase the sector.
- Write the row to this sector.
- Read back the memory.
If I keep the initial row:
uint8_t aTxBuffer[] = "QSPI communication based on DMA QSPI communication based on DMA QSPI communication based on DMA QSPI communication based on DMA QSPI communication based on DMA QSPI communication based on DMA";
This works as expected, even when I play with it by changing random letters, and the test is consistent and can be repeated several times with no errors.
The madness starts here: if I replace it (and that's the only modification) with another row string like this one:
uint8_t aTxBuffer[] = "This is a test let's try it";
Now, the readbacks are incomplete and inconsistent (stop randomly before), even though the second row is smaller.
By the way, I checked the status, config, and secured registers, and everything is fine there.
Any suggestions or ideas?
Thanks
