This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Writing variable in RAM after programming

Hello,

i want to write a global unsigned long variable in RAM after programming the device. The Use-Case is to set the clock value to the actual time. So the new unsigned long value will be generated from the host PC from the actual time. This new value should be set via the SWD interface. Is that possible by using the --ramwr option from nrfjprog.exe? We will use the Segger Flasher ARM.

Thanks and regards, BTprogrammer

Parents
  • Good moorning, now I tried the JLink Commander. First I did

    h
    

    then I did

    w4 0x20002990, 0x55E7EAF0
    

    But when I read back the memory, I get:

    mem32 0x20002990, 1: 20002992 = 00000000
    

    I expected to get 55E7EAF0, when I read back the memory!? Also in my application, it seems that the memory doesn`t have the right value... Any ideas? Do I have to unlock the memory in any way?

Reply
  • Good moorning, now I tried the JLink Commander. First I did

    h
    

    then I did

    w4 0x20002990, 0x55E7EAF0
    

    But when I read back the memory, I get:

    mem32 0x20002990, 1: 20002992 = 00000000
    

    I expected to get 55E7EAF0, when I read back the memory!? Also in my application, it seems that the memory doesn`t have the right value... Any ideas? Do I have to unlock the memory in any way?

Children
Related