Part Number: MSP432P401R
Hello TI Devs,
This is a follow up question to the same issue in When
MAP_CS_initClockSignal(CS_MCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1);
is selected, subsequent attempts to load a new program through CCS fails with the error:
CS_DAP_0: Error connecting to the target: (Error -614 @ 0x0) The target indicates there is an error condition from a previous SWD request. Clear the error the condition, and try the SWD request again. (Emulation package 8.4.0.00006)
This is using the very simple SysTick example
When the error occurs, simply unplugging and re-plugging in the USB cable corrects the issue. Using the DCOCLK source avoids the problem altogether. You can see both the low speed MCLK code (commented out) and the high speed MCLK code that avoids the problem below:
/* Initializing MCLK to REFO (32kHz) causes BUG, use DCO 3MHz source */ MAP_CS_initClockSignal(CS_MCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1); // MAP_CS_initClockSignal(CS_MCLK, CS_REFOCLK_SELECT, CS_CLOCK_DIVIDER_1); /* Configuring SysTick to trigger at 16000. */ MAP_SysTick_enableModule(); MAP_SysTick_setPeriod(1500000); /* .5 sec w/high speed clock */ // MAP_SysTick_setPeriod (16000); //16000 .5 sec w/low speed clock MAP_SysTick_enableInterrupt();
Since the synchronization issue from the last question is approaching 3+ years old, I thought I would ask this follow-up and see if there had been any fixes put in place that I don't have? I have all the latest updates to CCS, but I'm on Linux if that makes any difference. The board is the MSP EXP432P401R Rev 2.1 (red)