[SOLVED] Exitonerror and verifybin

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Exitonerror and verifybin

    I have enabled exitonerror option, but with verifybin it doesn't work. Why ?

    Here is my script:


    exitonerror 1
    device STM32F405RG
    if SWD
    speed 400k
    connect
    r
    h
    loadfile ch.bin,0x8000000
    w1 0x8000005,0x55
    verifybin ch.bin,0x8000000
    r
    go
    exit


    and logs:

    Downloading file [ch.bin]...
    Comparing flash [100%] Done.
    Erasing flash [100%] Done.
    Programming flash [100%] Done.
    Verifying flash [100%] Done.
    J-Link: Flash download: Bank 0 @ 0x08000000: 1 range affected (16384 bytes)
    J-Link: Flash download: Total time needed: 1.030s (Prepare: 0.114s, Compare: 0.074s, Erase: 0.341s, Program: 0.473s, Verify: 0.001s, Restore: 0.024s)
    O.K.

    Writing 55 -> 08000005

    Loading binary file ch.bin
    Reading 81272 bytes data from target memory @ 0x08000000.
    Verify failed @ address 0x08000005.
    Expected 02 read 55
    Reset delay: 0 ms
    Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
    Comparing flash [100%] Done.
    Erasing flash [100%] Done.
    Programming flash [100%] Done.
    Verifying flash [100%] Done.
    J-Link: Flash download: Bank 0 @ 0x08000000: 1 range affected (16384 bytes)
    J-Link: Flash download: Total time needed: 1.272s (Prepare: 0.196s, Compare: 0.009s, Erase: 0.341s, Program: 0.610s, Verify: 0.001s, Restore: 0.112s)
    Reset: Halt core after reset via DEMCR.VC_CORERESET.
    Reset: Reset device via AIRCR.SYSRESETREQ.
  • Hello,

    Thank you for your inquiry.
    We were able to reproduce the issue. The fixed version will be part of the next J-Link software release.
    Sorry for any inconveniences caused.

    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: segger.com/ticket/

    Or you can contact us via e-mail.