This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cannot able to communicate with external target

Hi,

I am trying to flash one external module which is actually a BLE having (NRF52832) and I am using NRF52832 Development board. By doing all the necessary connections and using the DC power supply and setting the current and voltage to 11mA and 3.7V respectively. While running I am getting this error 

Connecting ‘J-Link’ using ‘USB’

Loaded /Applications/SEGGER Embedded Studio for ARM 7.22/bin/libjlinkarm.dylib

Firmware Version: J-Link OB-nRF5340-NordicSemi compiled Nov 7 2022 16:22:01

DLL Version: 7.88c

Hardware Version: V1.00

Target Voltage: 3.300

Device "NRF52832_XXAA" selected.

Current Speed: 2000 kHz

InitTarget() start

InitTarget() end - Took 102ms

Failed to attach to CPU. Trying connect under reset.

InitTarget() start

InitTarget() end - Took 106ms

Failed to connect to target.

Please help me. What steps do I need to follow now. I am getting stucked  

Parents
  • Hi,

     

    Q1: How is the connection between the nRF52-DK and your custom board?

    Q2: Has your current setup worked at some point? Or newer at all?

    Q3: Could you try to recover the board using nrfjprog --recover?

     

    Kind regards,

    Håkon

  • hello Sir,

    Thanks for your response.

    A1: so I am following this connection, just used an external DC power source so the full connection is (image 2)

     full connection looks like this where bare die is custom board 

    connections are good. I used probe station to connect the necessary pins of the custom board. From the probe station crocodile pins are connected to the respective pins of the NRF board

    A2: No it never worked. This is the first time I am using this type of setup, though trying to connect it since past one month but was not able to connect.

    A3: Sir, can you please tell me how to recover the board using nrfjprog --recover? I am not aware of this.

    Please let me know if you need any further information.

    Thanks and Regards,

    Kushagra

  • Hi,

     

    Thanks for clarifying.

    Those should if you power it, and connect a debugger to the SWD pins.

     

    Can you attach the log file generated after executing "nrfjprog --recover -f nrf53 --log"?

    Kind regards,

    Håkon

  • yes, it is a pre made module.

  • hi, sorry for the delay when I am running the nrf--jprog  in terminal.. I am getting this

  • Hi, now after re-verifying the connections. I am getting this. Please have a look and what it can be done. Please help (last lines of codes)?

    Connecting ‘J-Link’ using ‘USB’
    Loaded C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.22/bin/JLink_x64.dll
    Firmware Version: J-Link OB-nRF5340-NordicSemi compiled Nov 7 2022 16:22:01
    DLL Version: 7.88m
    Hardware Version: V1.00
    Target Voltage: 3.300
    Device "NRF52832_XXAA" selected.
    Current Speed: 2000 kHz
    InitTarget() start
    InitTarget() end - Took 2.41ms
    Found SW-DP with ID 0x2BA01477
    DPIDR: 0x2BA01477
    CoreSight SoC-400 or earlier
    Scanning AP map to find all available APs
    AP[2]: Stopped AP scan as end of AP map has been reached
    AP[0]: AHB-AP (IDR: 0x24770011)
    AP[1]: JTAG-AP (IDR: 0x02880000)
    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
    [0][0]: E000E000 CID 00000000 PID 00000000 ???
    [0][1]: E0001000 CID B105E00D PID 003BB002 DWT
    [0][2]: E0002000 CID B105E00D PID 002BB003 FPB
    [0][3]: E0000000 CID B105E00D PID 003BB001 ITM
    [0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
    [0][5]: E0041000 CID B105900D PID 000BB925 ETM
    Preparing target for download
    Executing Reset script TargetInterface.resetAndStop()
    Reset: Halt core after reset via DEMCR.VC_CORERESET.
    Reset: Reset device via AIRCR.SYSRESETREQ.
    Failed to preserve target RAM @ 0x20000000-0x2000FFFF.
    Failed to prepare for programming.

Reply
  • Hi, now after re-verifying the connections. I am getting this. Please have a look and what it can be done. Please help (last lines of codes)?

    Connecting ‘J-Link’ using ‘USB’
    Loaded C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.22/bin/JLink_x64.dll
    Firmware Version: J-Link OB-nRF5340-NordicSemi compiled Nov 7 2022 16:22:01
    DLL Version: 7.88m
    Hardware Version: V1.00
    Target Voltage: 3.300
    Device "NRF52832_XXAA" selected.
    Current Speed: 2000 kHz
    InitTarget() start
    InitTarget() end - Took 2.41ms
    Found SW-DP with ID 0x2BA01477
    DPIDR: 0x2BA01477
    CoreSight SoC-400 or earlier
    Scanning AP map to find all available APs
    AP[2]: Stopped AP scan as end of AP map has been reached
    AP[0]: AHB-AP (IDR: 0x24770011)
    AP[1]: JTAG-AP (IDR: 0x02880000)
    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
    [0][0]: E000E000 CID 00000000 PID 00000000 ???
    [0][1]: E0001000 CID B105E00D PID 003BB002 DWT
    [0][2]: E0002000 CID B105E00D PID 002BB003 FPB
    [0][3]: E0000000 CID B105E00D PID 003BB001 ITM
    [0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
    [0][5]: E0041000 CID B105900D PID 000BB925 ETM
    Preparing target for download
    Executing Reset script TargetInterface.resetAndStop()
    Reset: Halt core after reset via DEMCR.VC_CORERESET.
    Reset: Reset device via AIRCR.SYSRESETREQ.
    Failed to preserve target RAM @ 0x20000000-0x2000FFFF.
    Failed to prepare for programming.

Children
No Data
Related