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

Debug mqtt_simple in SES

It builds OK and I can flash the hex file using nRF connect Programmer. But I need to debug the code but I have not found a way to upload the code and break at main() entry.

Once I happen to do a build and debug (by accident) got the following shown below.

Are there any howtos you could point me to?

Preparing target for download
Executing Reset script TargetInterface.resetAndStop()
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Reset: CPU may have not been reset (DHCSR.S_RESET_ST never gets set).
Reset: Using fallback: Reset pin.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via reset pin
Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).
Reset: Reconnecting and manually halting CPU.
Found SW-DP with ID 0x6BA02477
AP map detection skipped. Manually configured AP map found.
AP[0]: AHB-AP (IDR: Not set)
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FD212. Implementer code: 0x41 (ARM)
Found Cortex-M33 r0p2, Little endian.
Downloading ‘merged.hex’ to J-Link
Programming 32.0 KB of addresses 00000000 — 00007fff
Programming 101.7 KB of addresses 0000c000 — 000256ef
Timeout while erasing sectors, RAMCode did not respond in time. (PC = 0xFFFFFFFF, CPSR = 0x00000000, LR = 0x21000003)!
Failed to erase sectors.
Download failed

Related