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

Cannot program custom board although connection is established

--------------------------------------------------------------------------------
nrfjprog -f nrf52 --reset --log
nrfjprog verion 9.6.0
--------------------------------------------------------------------------------
FUNCTION: open_dll.
FUNCTION: open_dll.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_without_snr.
FUNCTION: enum_emu_snr.
Device "NRF52832_XXAA" selected.
FUNCTION: read_device_version.
FUNCTION: read_device_version.
Found SW-DP with ID 0x2BA01477
Found SW-DP with ID 0x2BA01477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
JLinkARM.dll ReadMemU32 returned error -1.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_without_snr.
FUNCTION: enum_emu_snr.
Device "NRF52832_XXAA" selected.
FUNCTION: close_dll.
FUNCTION: close_dll.

Second Log

--------------------------------------------------------------------------------
nrfjprog -f NRF52 --recover --log
nrfjprog verion 9.6.0
--------------------------------------------------------------------------------
FUNCTION: open_dll.
FUNCTION: open_dll.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_without_snr.
FUNCTION: enum_emu_snr.
Device "NRF52832_XXAA" selected.
FUNCTION: recover.
FUNCTION: recover.
Found SW-DP with ID 0x2BA01477
Found SW-DP with ID 0x2BA01477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
JLinkARM.dll ReadMemU32 returned error -1.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_without_snr.
FUNCTION: enum_emu_snr.
Device "NRF52832_XXAA" selected.
FUNCTION: close_dll.
FUNCTION: close_dll.

image description image description image description image description cmdErr1.PNG image description image description image description image description image description

I am not able to Flash my custom board although i am able to establish Connection with my custom board using JLink commander. It always Shows an error as shown in JinkErr Image. Also Keil and Nrfgostudio dont work. NrfjProg is intalled but functions like "nrfjprog -f NRF52 --recover " Show error as unknown. Please guide what else can i Diagnose to find the failure. I have attached all screenshots whch i used while flashing the ble_app_uart Software into my Custom Board. I am using the Nrf52DK as my Programmer module and connecting Custom Board as shown in Design.jpg. Please guide as i am not able to Flash any Code into the nrf52 chip.

  • According to the user guide you may be able to short shield detect on P5 to ground to activate the port you are already wired up to. See page 18 of the user guide.

  • can you please attach the link to USer Guide you are looking at ??

  • I've been using P20 to program the other boards (BC832 module and some other cheap breakout boards) fine.

  • Hi Matt. Can you please guide me because using P20 i am not able to Flash or erase the custom board. this is Keil result. JLink info:

    DLL: V6.16a, compiled Jun 6 2017 12:42:51 Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jun 9 2017 14:57:23 Hardware: V1.00 S/N : 682655565

    • JLink Info: Found SW-DP with ID 0x2BA01477
    • JLink Info: Found SW-DP with ID 0x2BA01477
    • JLink Info: Scanning APs, stopping at first AHB-AP found.
    • JLink Info: AP[0] IDR: 0x24770011 (AHB-AP)
    • JLink Info: AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
    • JLink Info: CPUID reg: 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
    • 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: Setting AIRCR.SYSRESETREQ **JLink Warning: DHCSR.S_RESET_ST does not indicate reset occurrence. CPU may have not been reset...

    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 Failed! Error: Flash Download failed - "Cortex-M4" Flash Load finished at 17:39:56

  • Your wiring diagram above more or less summarizes whatever I know about loading the N52 in a custom board :( Are you sure your custom board powers up fine? Can you ask your h/w buddies to check the custom board for you?

Related