Hello everybody!
I wanted to write a blink led code for this launchpad. I started a new project for this.
My code:
void main(void)
{
WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD; // stop watchdog timer
set_clk();
P1->DIR |= BIT0;
while (1) {
unsigned long i;
for (i = 12000000; i > 0; i--) {
__no_operation();
}
P1->OUT ^= BIT0;
}
}
#define DCO_48MHZ ((uint32_t)0x00050000)
void set_clk()
{
CS->KEY = CS_KEY_VAL;
CS->CTL0 = DCO_48MHZ;
CS->KEY = 0;
}
I wasnt successful with it, and since then this is what I get when I try to debug my code or a software example from the SDK:
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: Flash Programmer: Reading device TLV failed.
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 am using Code Composer Studio Version: 9.0.1.00004 with TI v18.12.1.LTS compiler.
I already tried factory resetting the device based on this document: http://www.ti.com/lit/ug/slau575k/slau575k.pdf section 8.1
This didnt solve my problem.
Any help is appreciated.
Best regards,
Bálint



