Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hello,
I am using a custom board for the MCU, largely utilizing components from the Launchpad schematics. A 10MHz crystal with 18pF capacitors (as per the crystal's datasheet) is used for the external oscillator; the schematics are attached. I've verified JTAG connectivity (XDS 100v2 emulator) and that the PowerPad is connected to ground.
When trying to initialize the PLL for 200MHz using the C2000Ware function InitSysPll() in F2837xD_SysCtrl.c with call: InitSysPll(XTAL_OSC,IMULT_20,FMULT_0,PLLCLK_BY_2); the debugger crashes with the following error:
C28xx_CPU1: Error: (Error -1044 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 7.0.100.0)
C28xx_CPU1: Unable to determine target status after 20 attempts
C28xx_CPU1: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
I can step through the program, which crashes at ClkCfgRegs.SYSCLKDIVSEL.bit.PLSYSCLKDIV = divsel; at the end of the PLL routine with the following errors:
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed.
C28xx_CPU1: Can't Single Step Target Program: (Error -1156 @ 0x81B1) Device may be operating in low-power mode. Do you want to bring it out of this mode? Choose 'Yes' to force the device to wake up and retry the operation. Choose 'No' to retry the operation without waking the device. (Emulation package 7.0.100.0)
C28xx_CPU1: Trouble Halting Target CPU: (Error -1135 @ 0x81B1) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 7.0.100.0)
C28xx_CPU1: Error: (Error -1135 @ 0x81B1) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 7.0.100.0)
C28xx_CPU1: Unable to determine target status after 20 attempts
C28xx_CPU1: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
I can initialize the PLL to 100MHz with ServiceDog(); uncommented in the loop routine and several peripheral devices disabled. I've also tried increasing the lock time loops and other clock frequencies. I am in a design class and another student is experiencing the same problem, despite us having different schematics and using different debuggers. Does anyone have any advice regarding how to debug this issue?