STM32CubeProgrammer issues with OCTOSPI on STM32U5G9NJH6Q
I discovered this issue while trying to program the Riverdi SM-RVT50HQSNWC01 using the STM32UG59. I spent days trying to figure out why the Riverdi demo in TouchGFX 4.26.1 was failing to program the external flash. It always failed when trying to erase external flash. This was with Programmer version 2.23.0. Even with the GUI version, I found that after connecting to the board, the first read of external flash would fail. Sometimes immediately, sometimes after a minute or so. I discovered that the second read performed immediately after the failure would work. Once I suffered through the first failure, I was able to read and program the external flash with no problem. I was ready to give up on the Riverdi board when I decided to try a different system. On this second system, I was able to create a demo from the Riverdi template, built it and program the board from TouchGFX 4.26.1. Same version as the failing system. I then noticed that the STM32CubeProgrammer on the second system was version 2.22.0.
It was then obvious that all of these problems were caused by the CubeProgrammer. This is a bug report, STM32CubeProgrammer v2.23.0 has introduced some problem with programming external flash. I don’t know if it is restricted to OCTOSPI or if other external flash may be affected. It’s always iffy when upgrading software, but one would expect fairly consistent behavior with features that once worked. I lost may hours trying to find a problem that wasn’t mine. It wasn’t an external loader issue either. The loader was the same ST loader as used for a DK using the same chip. The loader was installed by the Riverdi template.
