[SOLVED] Sfr Dump

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

  • [SOLVED] Sfr Dump

    Hello,
    I would like to perform a dump of the sfrs on my ARM cortexM4 device, anyway my IDE (Atollic) only allows the view of the sfrs - not the saving or the export.
    Is there a way I could do it using my jlink device?
    I tried with Jlink.exe (savebin) but I got errors (Could not read memory) even if I am able to read flash addresses.
    Any hint would be very appreciated.
    Best regards,

    L.
  • Hi,

    SFR dumps should be done with great care...
    Pleas note that a savebin is designed for readbacks from RAM and flash where a bulk read can be performed.
    For SFRs this might be problematic, if there are gaps between the SFR blocks which cannot be read.

    If you just want a visualized dump, you can do it like this (Windows):
    JLink.exe -CommanderScript C:\MyCommanderScript.jlink > MyLog.txt

    C:\MyCommanderScript.jlink:
    // SFR 1
    mem32 0,1
    // SFR 2
    mem32 4,1
    // SFR 3
    mem32 8,1
    // SFR 4
    mem32 C,1
    // SFRs 5-8
    mem32 20,4


    - Alex
    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.
  • O.K., so we consider this as closed for now.


    - Alex
    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.