Clock Configuration and Serial on TWRK60D100

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clock Configuration and Serial on TWRK60D100

466 Views
clenz
Contributor I

Hello

I am using a TWR K60D100 Tower System. My Goal is to run the System in the normal Run Modes with predefined Clock Configurations.

My Problem is, that when I change the Clock Configuration, with the ProcessorExpert Function

"Cpu_SetClockConfiguration(BSP_CLOCK_CONFIGURATION_1);"

my Serial Output (i.e. the Terminal Output) is messed up. And the frequency of the blinking LED changes.

When i boot in a different Clock Mode, by setting in the twrk60100d.h file the

#define BSP_CLOCK_CONFIGURATION_STARTUP (BSP_CLOCK_CONFIGURATION_96MHZ) to another one e.g. #define BSP_CLOCK_CONFIGURATION_STARTUP (BSP_CLOCK_CONFIGURATION_12MHZ)

the serial line works just fine and also the power consumption is less of course.

When I change the clock with the function _bsp_set_clock_configuration(...), the hw timer is adjusted (LED blinks at same freq. for every Clock Config)

but still the Serial Ouput is messed up after the change.

To me it looks like the new Clock Configuration is not properly sent to

the UART Module or updated by it.

Any help would be appreciated.

Cheers

Chris

-------------------------------------------------------------------

Hmm finally i found the issue.

When I change the Clock Configuration Mode with _lpm_set_clock_configuration(...); it changes all perfectly.

I have to say that i enabled MQX_ENABLE_LOW_POWER in the user_config.h.

Shouldn't this be covered by Processor Expert so that i can simply drag'n drop the Change Clock Config function?

0 Kudos
0 Replies