Hey,
I'm trying to flash an external nor flash via MCU. The NOR flash is the MT28EW128ABA1LPC and the MCU the STM32H753XI. The board I am using is the STM32H753I-EVAL board, so if I'm wrong providing any information, you can definitely get the correct info there
The NOR flash should be CFI compatible.
I was trying to follow the https://wiki.segger.com/CFI_Flash. But have trouble following the details. In the end, I thought I went into the right direction, but JFlash (or Ozone) are immediately crashing when trying to write to the Flash Region where the NOR Flash is mapped within the MCU memory space.
Update: This is no longer true, see post below.
I'm on linux (virtual box VM) and I am using V7.86h
JFlash is invoked with the following parameters: JFlashExe -openprj example2.jflash -open {{binary}} -auto -jflashlog jflash.log -jlinklog jlink.log -startapp
What I think, is that JFlash crashes before the JLinkScript is executed. I can't find the appropriate CPU_WriteMem invocations in the jlink.log, which I have written in the jlink script file.
I'm not sure, however, if I'm doing everything correctly here. No guarantees, that the JLinkScript configuration for the FMC (STM flexible memory controller) is completly correct. It might be the cause of the issue, but I think this is unlikely.