Other Parts Discussed in Thread: UNIFLASH
Tool/software: Code Composer Studio
Hi there,
I ran the sample code provided in source explorer and it ran well when the frequency was 8.33MHz.
#include <ti/devices/msp432p4xx/driverlib/driverlib.h>
/* Standard Includes */
#include <stdint.h>
#include <stdbool.h>
int main(void)
{
/* Halting the Watchdog */
MAP_WDT_A_holdTimer();
/* Configuring GPIO as an output */
MAP_GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN0);
//![Simple FPU Config]
/* Enabling FPU for DCO Frequency calculation */
MAP_FPU_enableModule();
/* Setting the DCO Frequency to a non-standard 8.33MHz */
MAP_CS_setDCOFrequency(8330000);
//![Simple FPU Config]
/* 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);
}
However when I tried to boost the frequency to 48MHz which is the maximum frequency for the DOC, it failed and this is the error:
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: Error initializing flash programming: 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: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
I had the same issue before and the only thing that most people recommended was just to buy a new one, which is absolutely ridiculous. I try to use Uniflash to just erase the chip but I don't know exactly what to do. Is there anyone telling me how to just make the MSP432P401R work as normal? I tried faculty reset as the manual indicated but it didn't work at all.
Also why was the MCU bricked when I tried 48MHz? if I still want to have my DOC runs at 48MHz what should I do?
Please let me know asap because the due day is coming.
Keith