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

Unable to write into UCIR before uploading the application.

Hey everyone,

I'm working with nRF52810 . I want to write into UCIRs before program execution starts.

I tried to configure NVMC(Non Volatile Memory Controller) and then writing into UCIR. But every time I try to write into NRF_NVMC->READY or NRF_NVMC->CONFIG or NRF_UCIR->CUSTOMER[ i ] via gdb

(gdb) set {uint32_t}0x[hex_addr] = value_required

it gives error:

"No symbol table is loaded. Use the "file" command."

I'm using:

Linux terminal environment with gcc toolchain and, 

BlackMagic Probe as a debugger

Can someone give me any suggestion?

  • Hi,

     

    The same thing happens in JlinkGDBServer.

    Had to do something like this instead (NRF_GPIO->PIN_CNF[0] register used):

    (gdb) print *0x50000700
    $12 = 2
    (gdb) set *0x50000700 = 4
    (gdb) print *0x50000700
    $15 = 4

    As soon as I try to cast the value, it throws error code "No symbol table is loaded.  Use the "file" command."

     

    Note, when writing to UICR, you need to first enable writing in NRF_NVMC->CONFIG field WEN, then set the UICR address (poll NRF_NVMC->READY if writing multiple words).

     

    Cheers,

    Håkon

Related