Post Go back to editing

ADuCM410 CPU is not halted

Product Number: ADuCM410

Hello,

I was playing with the example code that comes with the ADuCM410 in an attempt to learn how to program it and at some point some of the examples (I think particularly those that use the ADCs, such as M410_AdcSeq and M410_Adc) started throwing errors (I did not change the code at all, so this is a board issue). Below is the Build Output:

Running with Code Size Limit: 32K
* JLink Info: Device "CORTEX-M33" selected.
Set JLink Project File to "C:\Analog Devices\ADuCM410\examples\M410_AdcSeq\ARM\JLinkSettings.ini"* JLink Info: Device "ADUCM410" selected.

JLink info:
------------
DLL: V7.64 , compiled Apr 1 2022 16:04:43
Firmware: J-Link V11 compiled Aug 10 2021 11:18:05
Hardware: V11.00
S/N : 71002167
OEM : MIDAS
Feature(s) : RDI, GDB

* JLink Info: Found SW-DP with ID 0x0BE12477
* JLink Info: DPIDR: 0x0BE12477
* JLink Info: CoreSight SoC-400 or earlier
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x14770015)
* 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: 0xE00FE000
* JLink Info: CPUID register: 0x410FD214. Implementer code: 0x41 (ARM)
* JLink Info: Feature set: Mainline
* JLink Info: Found Cortex-M33 r0p4, Little endian.
* JLink Info: FPUnit: 8 code (BP) slots and 0 literal slots
* JLink Info: Security extension: not implemented
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FE000
* JLink Info: [0][0]: E00FF000 CID B105100D PID 000BB4C9 ROM Table
* JLink Info: ROMTbl[1] @ E00FF000
* JLink Info: [1][0]: E000E000 CID B105900D PID 000BBD21 DEVARCH 47702A04 DEVTYPE 00 Cortex-M33
* JLink Info: [1][1]: E0001000 CID B105900D PID 000BBD21 DEVARCH 47701A02 DEVTYPE 00 DWT
* JLink Info: [1][2]: E0002000 CID B105900D PID 000BBD21 DEVARCH 47701A03 DEVTYPE 00 FPB
* JLink Info: [1][3]: E0000000 CID B105900D PID 000BBD21 DEVARCH 47701A01 DEVTYPE 43 ITM
* JLink Info: [0][1]: E0040000 CID B105900D PID 000BBD21 DEVARCH 00000000 DEVTYPE 11 Cortex-M33
ROMTableAddr = 0xE00FE000
* JLink Info: ResetTarget() start
* JLink Info: ResetTarget() end

Target info:
------------
Device: ADuCM410
VTarget = 3.310V
State of Pins: TCK: 0, TDI: 0, TDO: 1, TMS: 1, TRES: 1, TRST: 0
Hardware-Breakpoints: 8
Software-Breakpoints: 8192
Watchpoints: 4
JTAG speed: 5000 kHz

Load "C:\\Analog Devices\\ADuCM410\\examples\\M410_AdcSeq\\ARM\\Objects\\M410_AdcSeq.axf"
* JLink Info: ResetTarget() start
* JLink Info: ResetTarget() end
WS 1, `AdcSeqChx
WS 1, `sequenceDone
WS 1, `dataCnt
WS 1, `AdcData
***JLink Error: CPU is not halted
* JLink Info: CPU could not be halted
***JLink Error: Cannot read register 15 (R15) while CPU is running
***JLink Error: Cannot read register 16 (XPSR) while CPU is running
***JLink Error: Cannot read register 0 (R0) while CPU is running
***JLink Error: Cannot read register 1 (R1) while CPU is running
***JLink Error: Cannot read register 2 (R2) while CPU is running
***JLink Error: Cannot read register 3 (R3) while CPU is running
***JLink Error: Cannot read register 4 (R4) while CPU is running
***JLink Error: Cannot read register 5 (R5) while CPU is running
***JLink Error: Cannot read register 6 (R6) while CPU is running
***JLink Error: Cannot read register 7 (R7) while CPU is running
***JLink Error: Cannot read register 8 (R8) while CPU is running
***JLink Error: Cannot read register 9 (R9) while CPU is running
***JLink Error: Cannot read register 10 (R10) while CPU is running
***JLink Error: Cannot read register 11 (R11) while CPU is running
***JLink Error: Cannot read register 12 (R12) while CPU is running
***JLink Error: Cannot read register 13 (R13) while CPU is running
***JLink Error: Cannot read register 14 (R14) while CPU is running
***JLink Error: Cannot read register 15 (R15) while CPU is running
***JLink Error: Cannot read register 16 (XPSR) while CPU is running
***JLink Error: Cannot read register 17 (MSP) while CPU is running
***JLink Error: Cannot read register 18 (PSP) while CPU is running
***JLink Error: Cannot read register 20 (CFBP) while CPU is running
***JLink Error: Cannot read register 66 (MSP_NS) while CPU is running
***JLink Error: Cannot read register 67 (PSP_NS) while CPU is running
***JLink Error: Cannot read register 68 (MSP_S) while CPU is running
***JLink Error: Cannot read register 69 (PSP_S) while CPU is running
***JLink Error: Cannot read register 70 (MSPLIM_S) while CPU is running
***JLink Error: Cannot read register 71 (PSPLIM_S) while CPU is running
***JLink Error: Cannot read register 72 (MSPLIM_NS) while CPU is running
***JLink Error: Cannot read register 73 (PSPLIM_NS) while CPU is running
***JLink Error: Cannot read register 74 (CFBP_S) while CPU is running
***JLink Error: Cannot read register 75 (CFBP_NS) while CPU is running

I tried to erase the flash and reload the program. I also tried a mass erase using MI2CFTWSD as per the User Guide, but I keep getting this (despite having pressed the Download and Reset buttons on the board):

Any suggestions for how to fix this? I am a complete beginner with microcontrollers and I am quite stuck.



-
[edited by: aionescu at 11:26 PM (GMT -5) on 20 Nov 2022]