Hi Everyone,
we are using the brand new STM32L5 and at the moment we try to flash a external NOR flash via QSPI.
We have created our own open flash loader (OFL) an now we try to connect via J-Link.
Our OFL is based of our last project where it worked very well.
We add the device at the begin of the JLinkDevices.xml
XML
<Device>
<!-- This entry will overwrite the existing device entry in the J-Link software, so that a custom flash algorithm is used for the internal flash -->
<ChipInfo Vendor="ST" Name="STM32L562QE" Core="JLINK_CORE_CORTEX_M33" />
<FlashBankInfo Name="QSPI Flash" BaseAddr="0x090000000" MaxSize="0x00400000 " Loader="ofl.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" AlwaysPresent="0"/>
</Device>
Display More
But if we try to connect the following error is occur:
Bash
Connecting to J-Link via USB...O.K.
Firmware: J-Link V10 compiled Mar 21 2019 15:43:57
Hardware version: V10.10
S/N: xxxxxxxxx
License(s): GDB
VTref=1.806V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: STM32L562QE
Type '?' for selection dialog
Device>
Please specify target interface:
J) JTAG (Default)
S) SWD
T) cJTAG
TIF>J
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
JTAGConf>
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
****** Error: Algo error: Cannot find struct "FlashDevice"
No valid device has been selected.
Display More
We have created a release version of the OFL without optimization. We can find the struct "FlashDevice" in our map-File.
Any ideas?
J-Link version is 6.44h.
Best regards and thx
\Simon