Programming external flash on an STM32H757 Eval board

    • Programming external flash on an STM32H757 Eval board

      I recently started to mess around with an H757 eval board and I am attempting to write some data to the external flash attached to the QSPI. There appears to be an issue when attempting to program it via the the J-Link though, it does not write the data correctly. I have verified that things work correctly if I program my .hex file using the CubeProgrammer, and have verified that I can properly read the memory using my own program, so I know it is set up correctly in the firmware.

      When I program my .hex image using CubeProgrammer and then go look at the memory, it looks like this:
      0x00000000 0x230057ff 0x5d035aff 0xea045aff
      0xd60559ff 0xa70559ff 0x490357ff 0x170059ff

      If I program it using the J-Link via either Visual Studios (using VisualGDB) or the J-Link Flash Lite utility and then read it back in CubeProgrammer, I get this:
      0xff00ff00 0xff00ff00 0xff57ffff 0xff5affff
      0xff5dff03 0xff5bffff 0xffa9ff05 0xff5affff

      If I have previous erased the external flash, then J-Link Flash Lite says that it programmed it correctly (even though it doesn't). If I have not previously erased the external flash, then Flash Lite throws an error.

      The Eval board I have is marked mb1246E and is relatively new (purchased 2 months ago I think). When I downloaded the schematic and bom files for the eval board there were prior revisions listed. Is it possible the RAMcode for the J-Link was designed for an older eval board and the timings are not correct for the newest version?

      I am running the most recent version of J-Link, V8.12f.
      I have confirmed that my QSPI pins match the ones listed in the Utility (they're the default pins).

      The post was edited 4 times, last by Ancaritha ().