I use ST-LINK utility V4.2 to program a code to external flash, always fail.
Attachment is my code. it include embedded code(start at 0x08000000) & external flash code (start at 0x90000000).
Platform : STM32L496G-DISCO
External Flash : MX25R6435F
Use the Cube Programmer, the ST-LINK Utility v4.2.0 is very flaky with external memory, and not the active development path.
STM32CubeProg - STM32CubeProgrammer software for programming STM32 products - STMicroelectronics
Then why the marketing status is Active?
It works for the most part. I'm saying from observation that development effort has forked, the branch that has development resources behind it is the Cube Programmer, moving forward migrate to that.
Cube Programmer got same problem.
Unfortunately don't have an STM32L496G-DISCO here. Would recommend checking if you can program/manipulate the QSPI via the HAL examples, and if there are any solder bridge or component related changes.
HAL example access external Flash O.K.
Retrieving data ...