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

QSPI read fail.

Hi Sir 

I try to write/read/earse any address with length 32. 

but some bytes shows zero "0x0" when I use , it should be 0xff after erasing...

Do you know what's the problem ? Thanks.

[00:00:30.151,791] <info> app: 0xFF
[00:00:30.151,798] <info> app: 0x0  //??
[00:00:30.151,804] <info> app: 0x0  //??
[00:00:30.151,810] <info> app: 0xFF
[00:00:30.151,816] <info> app: 0xFF
[00:00:30.151,822] <info> app: 0xFF
[00:00:30.151,829] <info> app: 0xFF
[00:00:30.151,835] <info> app: 0xFF
[00:00:30.151,841] <info> app: 0xFF
[00:00:30.151,847] <info> app: 0xFF
[00:00:30.151,856] <info> app: 0xFF
[00:00:30.151,862] <info> app: 0xFF
[00:00:30.151,868] <info> app: 0xFF
[00:00:30.151,874] <info> app: 0xFF
[00:00:30.151,881] <info> app: 0xFF
[00:00:30.151,887] <info> app: 0xFF
[00:00:30.151,893] <info> app: 0xFF
[00:00:30.151,899] <info> app:

[00:00:30.151,905] <info> app: 0xFF
[00:00:30.151,911] <info> app: 0xFF
[00:00:30.151,918] <info> app: 0xFF
[00:00:30.151,924] <info> app: 0xFF
[00:00:30.151,930] <info> app: 0xFF
[00:00:30.151,936] <info> app: 0xFF
[00:00:30.151,943] <info> app: 0xFF
[00:00:30.151,949] <info> app: 0xFF
[00:00:30.151,955] <info> app: 0xFF
[00:00:30.151,961] <info> app: 0xFF
[00:00:30.151,967] <info> app: 0xFF
[00:00:30.151,974] <info> app: 0xFF
[00:00:30.151,980] <info> app: 0x0  //?
[00:00:30.151,986] <info> app: 0x0  //? 
[00:00:30.151,992] <info> app: 0x0  //?

Parents Reply Children
  • By verifying I mean comparing what you read out with nrfjprog with what the uart log prints. 

  • like this ?

    nrfjprog.exe --memrd 0 --w 32

    0x00000000: 20000400                              |... |

  • I don't sure how to check external flash content by nrfjprog, the read back data look are nrf52840 internal flash content. ??

    C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin>nrfjprog.exe --memrd 0 --n
    128
    0x00000000: 20000400 00000999 0000062D 00000979 |... ....-...y...|
    0x00000010: 00000637 00000641 0000064B 00000000 |7...A...K.......|
    0x00000020: 00000000 00000000 00000000 000009BD |................|
    0x00000030: 00000655 00000000 0000065F 00000669 |U......._...i...|
    0x00000040: 00000673 0000067D 00000687 00000691 |s...}...........|
    0x00000050: 0000069B 000006A5 000006AF 000006B9 |................|
    0x00000060: 000006C3 000006CD 000006D7 000006E1 |................|
    0x00000070: 000006EB 000006F5 000006FF 00000709 |................|

  • See nrfjprog commands.

    You can use --memrd to read out the content of the XiP memory region of the external flash, but you will have to use --readqspi if you want to read data stored outside of the XiP memory region. 

  • Hi 

    C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin>nrfjprog.exe --readqspi ./
    log
    WARNING: An operation that can take up to several minutes is being executed.
    WARNING: Please remain patient.
    Initializing the QSPI peripheral.
    Reading from the QSPI-connected memory.
    Uninitializing the QSPI peripheral.
    Storing data in './log'.

    :020000041200E8
    :10000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00
    :10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0
    :10002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
    :10003000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD0
    :10004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0
    :10005000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB0
    :10006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0
    :10007000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF90
    :10008000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80
    :10009000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF70
    :1000A000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF60
    :1000B000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF50
    :1000C000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF40
    :1000D000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF30
    :1000E000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF20
    :1000F000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF10
    :10010000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
    :10011000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEF
    :10012000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDF
    :10013000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCF
    :10014000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBF
    :10015000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAF
    :10016000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F
    :10017000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8F
    :10018000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F
    :10019000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6F

    ....

Related