Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22109

MSP432P401R: MSP432P401R

$
0
0

Part Number:MSP432P401R

I have an MSP432p401r Launchpad and I am using Code Composer Studio 7.3.0. I am playing around with the TIMER_A0 and I'm using the SMCLK at 3MHz. I want to change the SMCLK and I read in the technical manual that I can change it but I need to write 0x695A to CSKEY register. The issue is CSKEY is not defined in the msp432p401r.h header file. The CS_KEY_VALUE is defined and other CS variables are defined but not the CSKEY. So when I try to compile my c code, I get an error saying CSKEY is undefined. I am just wondering were is the CSKEY definition.

I also created a pointer to the address location of CSKEY like this:

#define CSKEY   (*((volatile uint32_t *)0x40010400))

When I create my own CSKEY my compiler will compile just fine but when I go through the debugger to see if the CSKEY register was written to, the register is unchanged. 

Where can access the CSKEY pointer?

Why does my #define CSKEY not access the memory location in the clock system key register?

Thank you


Viewing all articles
Browse latest Browse all 22109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>