Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62408

Forum Post: New "RED" MSP432 Launchpad "un" factory resetable

$
0
0
Dear TI Forum members. I have two new launchpads "red color" that were working fine. CCS 6.2 refuse debugging until I update the on board XDS110 so I did it. It then connected fine... Thats the good side. The bad: I changed one single line in the following program: /******************************************************************************* * MSP432 Clock System - Tune DCO Frequency to Non-Standard Frequency * * Description: In this example, we show how easy it is to set the DCO frequency * to non-standard frequencies. Since MSP432 has the ability to granularly tune * the DCO frequency to non standard frequencies, this can be done easily using * the CS_setDCOFrequency frequency. This application will set the DCO * frequency to 8.33MHz, and then use the SysTick module to blink and LED * on P1.0. * * MSP432P401 * ------------------ * /|\| | * | | | * --|RST P1.0 |---> P1.0 LED * | | * | | * | | * | | * | | * * Author: Timothy Logan ******************************************************************************/ /* DriverLib Includes */ #include "driverlib.h" /* Standard Includes */ #include #include int main(void) { /* Halting the Watchdog */ MAP_WDT_A_holdTimer(); /* Configuring GPIO as an output */ MAP_GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN0); /* Enabling FPU for DCO Frequency calculation */ MAP_FPU_enableModule(); /* Setting the DCO Frequency to a non-standard 8.33MHz */ //CS_setDCOFrequency(8330000); CS_setDCOFrequency(64000000); <<<<<<<<<<<<<<<<<<<<<<<< Changed here <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< /* Configuring SysTick to trigger at 4165000 (MCLK is 8.33MHz so this will * make it toggle every ~0.5s) */ MAP_SysTick_enableModule(); MAP_SysTick_setPeriod(4165000); MAP_Interrupt_enableSleepOnIsrExit(); MAP_SysTick_enableInterrupt(); /* Enabling MASTER interrupts */ MAP_Interrupt_enableMaster(); while (1) { MAP_PCM_gotoLPM0(); } } void SysTick_Handler(void) { MAP_GPIO_toggleOutputOnPin(GPIO_PORT_P1, GPIO_PIN0); } Now I cannot connect and reset to factory the chip. The debug session gives this: CORTEX_M4_0: * WARNING *: The connected device is not MSP432P401R CORTEX_M4_0: GEL Output: Memory Map Initialization Complete CORTEX_M4_0: GEL Output: Halting Watchdog Timer CORTEX_M4_0: WARNING : On MSP432P401R hitting a breakpoint cannot be detected by the debugger when the device is in low power mode. Click the pause button during debug to check if the device is held at the breakpoint. CORTEX_M4_0: Flash Programmer: Reading HW revision failed. CORTEX_M4_0: Your XMS432P401R material is no longer supported. We recommend you moving to production-quality MSP432P401R /M silicon by ordering samples at www.ti.com/product/ MSP432P401R . CORTEX_M4_0: File Loader: Memory write failed: Unknown error CORTEX_M4_0: GEL: File: C:\Users\User\workspace_v6_2\cs_dco_frequency_tune\Debug\cs_dco_frequency_tune.out: Load failed. Just to make sure I could reproduce the issue, I tested a second LaunchPad and with the normal line of code (CS_setDCOFrequency(8330000);), it loaded and ran. Then I repeated the line modification ( CS_setDCOFrequency(64000000);) and BAM! another launchpad "brick". What to do??? Is it possible to "reset to factory" a device BEFORE the loaded software start running?? Thanks. Regis.

Viewing all articles
Browse latest Browse all 62408

Trending Articles