[SOLVED] Loadbin with no reset

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

  • [SOLVED] Loadbin with no reset

    Is it possible to perform a loadbin without resetting a device?
    I have a ram dump that I need to inject in the memory, but the device sets some output state before arriving at that point so I can not manually set PC and LR (and other registers).
    Any hint about that?
    my .Jlink file looks like this at the moment (writing to registers commented out becouse I am testing the reset part of loadfile):

    Source Code

    1. connect
    2. h
    3. loadfile RAM_dump_1.bin, 0x20000000
    4. // Wreg R0 0x00000000
    5. // Wreg R1 0x20000920
    6. // Wreg R2 0xEF000000
    7. // Wreg R3 0x00000000
    8. // Wreg R4 0x0803ADC0
    9. // Wreg R5 0x0803ADC0
    10. // Wreg R6 0x00000000
    11. // Wreg R7 0x00000000
    12. // Wreg R8 0x00000000
    13. // Wreg R9 0x00000000
    14. // Wreg R10 0x00000000
    15. // Wreg R11 0x00000000
    16. // Wreg R12 0x00000000
    17. //SetPC 0x08033A96
    18. //Wreg CycleCnt 0x001855B0
    19. //Wreg "R13 (SP)" 0x2000CE90
    20. //RReg "R13 (SP)"
    21. //Wreg MSP 0x200116F0
    22. //Wreg PSP 0x2000CE90
    23. //Wreg R14 0x00000000
    24. //Wreg XPSR 0x01000000
    25. //Wreg EPSR 0x01000000
    26. //Wreg CFBP 0x02000000
    27. h
    28. g
    29. q
    Display All
  • Hello,

    You can override the reset functionality by passing a JLink script file to the JLink Commander that implements the ResetTarget() function.
    This will ensure JLink calls your custom reset function instead of the default target reset.

    Here is an example of how to override JLink functions:
    Overriding device specific connect

    To pass the script file to the JLink Commander, you can use the following command line option:
    J-Link Commander Command Line Options

    Best regards,
    Simon
    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.