Tool/software: Code Composer Studio
I'm having a problem while using the CPU1_FLASH configuration for the F28377S.
When I compile my code and write it to the RAM of the MCU, everything executes as expected. However, trying to write the code to flash results in my program running into the weeds.
The code executes as expected up to memory adress 0x0823a7
0823a7: 0203 MOVB ACC, #3
0823a8: 76408131 LCR SysCtl_delay
235 // Don't proceed to the PLL initialization if an MCD failure is detected.
0823aa: 7622 EALLOW
from there it jumps to
3fe493: 7625 ESTOP0
The corresponding assembler code for the RAM configuration looks like this
000322: 0203 MOVB ACC, #3
000323: 7640013C LCR SysCtl_delay
235 // Don't proceed to the PLL initialization if an MCD failure is detected.
000325: 7622 EALLOW
and executes without trouble.
The C-Code in question is
//
// Check the arguments.
//
ASSERT((config & SYSCTL_OSCSRC_M) != SYSCTL_OSCSRC_M); // 3 is not valid
//
// Don't proceed to the PLL initialization if an MCD failure is detected.
//
if(SysCtl_isMCDClockFailureDetected())
and belongs to the file sysctl.c which is provided in the f2837xs driverlib.
Does anyone have an idea on what is going on here?
Best regards,
Patrick Stiller