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

J-Link: "The firmware of the connected J-Link does not support the following memory access: Read @ 0x02000004

I am starting afresh, and have only just downloaded & installed Keil v5.25, nRF SDK v15.0.0, and nRFgo Studio v1.21.2.10

So everything should be "latest" and "up-to-date"

I have successfully built the PCA10040  'blinky' example (0 errors; 0 warnings), but the download fails:

I have not modified the project - it's straight from the SDK download.

As advised in "Compiling and running a first example", I erased the board first.

This seems to be a recurring problem:

https://devzone.nordicsemi.com/f/nordic-q-a/25063/the-firmware-does-not-support-the-memory-access

https://devzone.nordicsemi.com/f/nordic-q-a/33412/error-when-loading-program

The "solutions" stated there all seem to be to "update to the latest" - but I should already be at "latest".

Nobody seems to have got to the root of why the J-Link is trying to do that, and/or why it is failing.

The PCA10040 board sticker says v0.9.0

I am running on Win7-Pro 64-bit

This is what appears in the uVision 'Output' windows when trying to do the download:

Load "C:\\Users\\ ... \examples\peripheral\blinky\pca10040\blank\arm5_no_packs\JLinkSettings.ini"
* JLink Info: Device "NRF52832_XXAA" selected.

JLink info:
------------
DLL: V5.12f, compiled May 17 2016 16:03:35
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 2 2017 12:22:13
Hardware: V1.00
S/N : 682645609

* JLink Info: Found SWD-DP with ID 0x2BA01477
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl 0 @ E00FF000
* JLink Info: ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS
* JLink Info: ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT
* JLink Info: ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
* JLink Info: ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM
* JLink Info: ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU
* JLink Info: ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM
ROMTableAddr = 0xE00FF000
Error: Flash Download failed - Target DLL has been cancelled
Flash Load finished at 20:37:07

Parents
  • So everything should be "latest" and "up-to-date"

    Ha!

    How Naive!

    The nRF Command-line Tools installer has installed a really old Segger JLink software!

    Rage

    In fact, we can see that it's waaaay older than anything I have before:

    If I restore the the version which Keil had before - v6.30h - it works fine (after doing a JLink FW update):

    Load "C:\\Users ... examples\\peripheral\\blinky\\pca10040\\blank\\arm5_no_packs\\_build\\nrf52832_xxaa.axf"
    * JLink Info: Updating firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20
    * JLink Info: Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 2 2017 12:22:13
    * JLink Info: Waiting for new firmware to boot
    * JLink Info: New firmware booted successfully
    Set JLink Project File to "C:\Users\awn\Antronics\Client_Work\Fractal\nRF-SDK\15-0-0\examples\peripheral\blinky\pca10040\blank\arm5_no_packs\JLinkSettings.ini"
    * JLink Info: Device "NRF52832_XXAA" selected.

    JLink info:
    ------------
    DLL: V6.30h, compiled Mar 16 2018 18:02:51
    Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20
    Hardware: V1.00
    S/N : 682645609

    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Scanning AP map to find all available APs
    * JLink Info: AP[2]: Stopped AP scan as end of AP map has been reached
    * JLink Info: AP[0]: AHB-AP (IDR: 0x24770011)
    * JLink Info: AP[1]: JTAG-AP (IDR: 0x02880000)
    * JLink Info: Iterating through AP map to find AHB-AP to use
    * JLink Info: AP[0]: Core found
    * JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
    * JLink Info: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
    * JLink Info: Found Cortex-M4 r0p1, Little endian.
    * JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
    * JLink Info: CoreSight components:
    * JLink Info: ROMTbl[0] @ E00FF000
    * JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
    * JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
    * JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
    * JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
    * JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
    * JLink Info: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
    ROMTableAddr = 0xE00FF000
    * JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
    * JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.

    Target info:
    ------------
    Device: nRF52832_xxAA
    VTarget = 3.300V
    State of Pins:
    TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1
    Hardware-Breakpoints: 6
    Software-Breakpoints: 8192
    Watchpoints: 4
    JTAG speed: 1000 kHz

    Erase Done.
    Programming Done.
    Verify OK.
    * JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
    * JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
    Application running ...
    Flash Load finished at 22:26:08

Reply
  • So everything should be "latest" and "up-to-date"

    Ha!

    How Naive!

    The nRF Command-line Tools installer has installed a really old Segger JLink software!

    Rage

    In fact, we can see that it's waaaay older than anything I have before:

    If I restore the the version which Keil had before - v6.30h - it works fine (after doing a JLink FW update):

    Load "C:\\Users ... examples\\peripheral\\blinky\\pca10040\\blank\\arm5_no_packs\\_build\\nrf52832_xxaa.axf"
    * JLink Info: Updating firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20
    * JLink Info: Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 2 2017 12:22:13
    * JLink Info: Waiting for new firmware to boot
    * JLink Info: New firmware booted successfully
    Set JLink Project File to "C:\Users\awn\Antronics\Client_Work\Fractal\nRF-SDK\15-0-0\examples\peripheral\blinky\pca10040\blank\arm5_no_packs\JLinkSettings.ini"
    * JLink Info: Device "NRF52832_XXAA" selected.

    JLink info:
    ------------
    DLL: V6.30h, compiled Mar 16 2018 18:02:51
    Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20
    Hardware: V1.00
    S/N : 682645609

    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Scanning AP map to find all available APs
    * JLink Info: AP[2]: Stopped AP scan as end of AP map has been reached
    * JLink Info: AP[0]: AHB-AP (IDR: 0x24770011)
    * JLink Info: AP[1]: JTAG-AP (IDR: 0x02880000)
    * JLink Info: Iterating through AP map to find AHB-AP to use
    * JLink Info: AP[0]: Core found
    * JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
    * JLink Info: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
    * JLink Info: Found Cortex-M4 r0p1, Little endian.
    * JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
    * JLink Info: CoreSight components:
    * JLink Info: ROMTbl[0] @ E00FF000
    * JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
    * JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
    * JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
    * JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
    * JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
    * JLink Info: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
    ROMTableAddr = 0xE00FF000
    * JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
    * JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.

    Target info:
    ------------
    Device: nRF52832_xxAA
    VTarget = 3.300V
    State of Pins:
    TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1
    Hardware-Breakpoints: 6
    Software-Breakpoints: 8192
    Watchpoints: 4
    JTAG speed: 1000 kHz

    Erase Done.
    Programming Done.
    Verify OK.
    * JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
    * JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
    Application running ...
    Flash Load finished at 22:26:08

Children
No Data
Related