[SOLVED] Open Flash Loader - error during connect - Error: Algo error: Cannot find struct "FlashDevice"

  • 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


    But if we try to connect the following error is occur:



    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

  • Hello Simon,

    Thank you for your inquiry.
    The error message indicates that the selected target device name could not be found.
    Could you provide the JLinkDevices.xml for reference? Where is is located? In the same folder as the J-Link commander version you are using for verification?
    If not make sure that they are in the same folder otherwise a JLinkDevices.xml from another version could be referenced.

    When the commend prompts "Device>" make sure you type exactly STM32L562QE. Or write ? to get a selection dialogue should you be using windows.

    Best regards,
    Nino

    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

  • Hi Nino,

    thanks for your answer.
    I have added the file. But I think this is not the problem.
    Without my device entry in the xml file, jlink is connecting to the internal flash from the MCU very well, so I think the xml file will be found.
    I think the problem is in my created Open Flash Loader application but I can't find the mistake.

    If I tried to change the Open Flash Loader to any application, the error was be changed to

    ****** Error: Algo error: Cannot find "PrgData" section.

    So I think that my Open Flash Loader was loaded.

    With my Open Flash Loader the error will be changed to
    ****** Error: Algo error: Cannot find struct "FlashDevice"

    Or is it necessary to adjust my Linker script?

    Thanks a lot

    Best regards,

    Simon

  • Hello Simon,

    Thank you for providing additional items.
    Could you create a support ticket for this inquiry?
    In my signature you can find out how.
    Please also attach the xml and elf file when creating a ticket so we can try to reproduce the reported behaviour.
    To make sure no information gets lost between mutliple channels this thread will be closed now.

    Best regards,
    Nino

    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!