Thank you Jorge, I was able to get into the VLPR mode, but I think there is another issue with PE.
I can not change clock modes when running.
kClockManagerErrorOutOfRange ALWAYS fails here in fsl_clock_manager.c when debugging:
/* Clock configuration index is out of range. */
if (targetConfigIndex >= g_clockState.clockConfigNum)
{
return kClockManagerErrorOutOfRange;
}
This always fails because targetConfigurationIndex is either 0 or 1 and clockConfigNum is ALWAYS zero .
Here is what I think is the bug: PE does not correctly "identify" the number of user clock configurations.
In my case I know I have 2, and PE defines them in the generated code clockMan1.h file as:
/*! @brief Count of user configuration structures */
#define FSL_CLOCK_MANAGER_CONFIG_CNT 2U
Problem is: FSL_CLOCK_MANAGER_CONFIG_CNT is not used (or found) anywhere else in the project.
All project references to the number of user clock configurations is clockConfigNum.
I have attached a simple test project that "attempts" to change between 2 different run modes: both are FEI run. Only difference is config0 is 50 mhz and config 1 is 20 mhz (the basic default).
I know the configurations are OK, because if I set them as the default in PE, they work fine (just will not change in debug run)
Any help here would be greatly appreciated.
Well, I can't see where I can attach my file, so I put it on my FTP here: http://www.h-itt.com/beta/TEST.zip
Thank you!
!