Hi,
I have two questions.
1.
I try to set the MCU to 48MHz via the define __SYSTEM_CLOCK in the start up file "system_msp432p4111.c".
But if I upload it to the MCU an issue occured. Normally the breakpoint in main() is reached after upload. But it don't reaches this point.
The Probe in the debug view flickers between:
"Texas Instruments XDS110 USB Debug Probe/CORTEX_M4_0 (In Reset)" and
"Texas Instruments XDS110 USB Debug Probe/CORTEX_M4_0 (Running - A Reset Occured On the Target)"
and the buttons "resume" and "suspend" are disabled and grayed out.
After a while you only see this probe message:
"Texas Instruments XDS110 USB Debug Probe/CORTEX_M4_0 (In Reset)"
If I select this probe the buttons "suspend" is enabled. With pressing "suspend" you can see that it stucks in the default handler
If I terminate it I get the console message:
CORTEX_M4_0: GEL Output: Memory Map Initialization Complete
CORTEX_M4_0: GEL Output: Halting Watchdog Timer
CORTEX_M4_0: Trouble Halting Target CPU: (Error -1266 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.903.6)
If I redo the upload and terminate it I got the message:
CORTEX_M4_0: * WARNING *: The connected device is not MSP432P4111
CORTEX_M4_0: GEL Output: Memory Map Initialization Complete
CORTEX_M4_0: GEL Output: Halting Watchdog Timer
If I want to upload a working project with a __SYSTEM_CLOCK 3000000 I got this message:
CORTEX_M4_0: * WARNING *: The connected device is not MSP432P4111
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.
CORTEX_M4_0: File Loader: Verification failed: Values at address 0x0001FFC0 do not match Please verify target memory and memory map.
CORTEX_M4_0: GEL: File: C:\_fhnw\8_Semester\pro5E_6E\workspace_ccs\00_FFT_07_MCU4111_8kFFT_cmsis_6kSamples\Debug\00_FFT_07_MCU4111_8kFFT_cmsis_6kSamples.out: a data verification error occurred, file load failed.
Then I have to do a factory reset.
With a __SYSTEM_CLOCK of 24MHz it works.
Can anyone see the problem?
2.
Another question is how to set flash wait states at 48MHz. From theory it should be 3 because the flash works with 16MHz. But I read the last page from "MSP432 Online Training Series - Part 4". There you can see the setup with 2 flash wait states.
Is it working with 2?
