Dear MSP users,
I recently bought MSP432 LaunchPad and I'm trying to do simple stuff based on Code examples in CCS (version: 6.1.2.00015). However, I am unable to change DCO frequency, since I'm unable to change CSKEY to 0x695A. I have tried to launch sample code msp432p401_cs_02, but it fails to compile with error: #20 identifier "CSKEY" is undefined msp432p401_cs_02.c /msp432p401_cs_02 line 77 C/C++ Problem, which is natural since CSKEY is not present in any header file.
Then, I have tried to access this register directly via pointer:
volatile uint32_t *cskey_pointer;
cskey_pointer = (volatile uint32_t *)0x40010400;
*cskey_pointer = (uint32_t)0x0000695A;
but failed.
I can change DCO frequency and almost any other register value in Registers window during debug, but when I type in CSKEY value it doesn't change.
Does anyone know how to solve this?
Thanks in advance.
UPDATE
Thanks Ryan and Josue. After downloading new 6.1.3 CCS everything worked with new syntax. I believe that was update problem - CSS had updated header files, but not the MSPWare examples.
The accessing via pointer also works now. I recommend everybody to download new ccs 6.1.3, since you cannot upgrade to it.