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

JLink resetting the chip continously

Hello,

I have nrf52832 development board with PCA10040 version 1.1.1. I can build my code correctly and I can erase my chip from Keil uvision but when I try to download the code to the chip, I receive the following instructions on my command prompt:

JLink info:

------------

DLL: V6.44 , compiled Mar  1 2019 17:32:34

Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15

Hardware: V1.00

S/N : 682958482

 

* 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 16:11:59

It can be observed that programming is done, but due to these errors shown in dark (JLink Info), the chip keeps on resetting automatically on a continuous basis. How can we resolve this issue? Is it something to do with the JLink? We have tried the latest version as well as an older version of JLink. 

Thanks!

Regards,

Piyush

  • Hello,

    It looks like your application is handling an application error. The default behavior for this is to reset the application, but it looks like you are running into the same error again and again.

    What SDK do you use? Can you try with one of the included examples? Can you try to flash it using an IDE? E.g. Segger embedded studio. We have a full licence for free. This way it will be easier to debug and find the application error. Try to add DEBUG in your preprocessor defines, and it should print in the log (Either RTT or UART, depending on what the log backend is set to in sdk_config.h in the example) where the error is coming from.

    Best regards,

    Edvin

Related