This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: MSP-EXP432P401R
Tool/software: Webench
I have just started working with the MSP432 Launchpad. I was able to compile and download the "Out of Box" example. I have started writing my own code starting with the UART so I can output debug message. I got the UART working and then I start playing with the main clock. I changed it to 48MHz and now I cannot download anything. I tried changing it back to 3MHz and I tried downloading the "Out of Box" again.
I am using IAR Workbench 7 Kickstart. I don't have any compile errors, it starts the debug/download then I get the foloowing in my debug log:
Fri Dec 23, 2016 12:03:09: IAR Embedded Workbench 7.80.2 (armproc.dll)
Fri Dec 23, 2016 12:03:09: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\arm\config\debugger\TexasInstruments\MSP432P401R.dmac
Fri Dec 23, 2016 12:03:09: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\arm\config\flashloader\TexasInstruments\FlashMSP432P4.mac
Fri Dec 23, 2016 12:03:09: Connecting to TI XDS110 ( Probe no: M4321005 ) COM[4/3]
Fri Dec 23, 2016 12:03:09: Checking security status...
Fri Dec 23, 2016 12:03:09: Device is not secure
Fri Dec 23, 2016 12:03:09: TI XDS ARM, device revision: 0x00000001, big endian: false, cache: false, board revision: 0x00000000, driver revision: 0x0B020200
Fri Dec 23, 2016 12:03:10: Initial reset was performed
Fri Dec 23, 2016 12:03:10: Watchdog disabled
Fri Dec 23, 2016 12:03:10: 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
Fri Dec 23, 2016 12:03:10: Unloaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\arm\config\flashloader\TexasInstruments\FlashMSP432P4.mac
Fri Dec 23, 2016 12:03:10: IAR Embedded Workbench 7.80.2 (armproc.dll)
Any help would be appreciated!
Brett
Hi Chris,
I am using a Rev 2 Launchpad (red solder mask), and I did not make any additional changes to support 48MHz. I started with the sample code from "430BOOST-SENSE1_CapTouch_MSP432P401R" which has the frequency set to 3MHz. When I got my UART working I started playing around and turn the frequency up. My initHardware() routine is the following:
void initHardware(void){
//Set P1.0 to output direction
GPIO_setAsOutputPin(
GPIO_PORT_P1,
GPIO_PIN0
);
GPIO_setOutputHighOnPin(GPIO_PORT_P1,GPIO_PIN0);
/* Initialize main clock to 3MHz */
MAP_CS_setDCOCenteredFrequency(CS_DCO_FREQUENCY_3);
MAP_CS_initClockSignal(CS_MCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 );
MAP_CS_initClockSignal(CS_HSMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 );
MAP_CS_initClockSignal(CS_SMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 );
/* Selecting P1.2 and P1.3 in UART mode */
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P1,
GPIO_PIN2 | GPIO_PIN3, GPIO_PRIMARY_MODULE_FUNCTION);
/* Configuring UART Module */
MAP_UART_initModule(EUSCI_A0_BASE, &uartConfig);
/* Enable UART module */
MAP_UART_enableModule(EUSCI_A0_BASE);
}
I will try a factory reset . I found this page explaining the process with CCS
http://www.davitrenou.com/en/launchpad-msp-exp432p401r-demarrage/
Is it possible to do this in IAR Workbench?
Thank you!
Hi Chris,
I am not sure what the problem was, but it seemed to boil down to user error. I continued to get the same error with IAR, so I started using CCS. I ordered another dev kit from Digikey, but they were backordered. Three weeks later it came in and I was not able to flash the second dev kit with IAR.
I worked from home a few days last week and I was able to flash both kits with IAR on my home computer. My home computer is where all the problems started (changing the clock without changing the core voltage). Monday I reinstalled IAR on my work computer and now IAR is running smoothly.
Thank you very much for your help. The factory reset did the trick. Still not sure what I did to IAR.
~Brett
**Attention** This is a public forum