3 years, 1 month ago.

How to enter supervisor mode in K64F?

I need to change MCG Register.

How to enter supervisor mode in mbed?

1 Answer

3 years, 1 month ago.

Hi Park,

It looks like the CLOCK_SetMcgConfig method within the K64F's fsl_clock.c driver code should help you out: https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_clock.c#L1673

Here's NXP's API documentation for the method: http://mcuxpresso.nxp.com/api_doc/dev/210/group__clock.html#ga7d23067cf550727e61cf9939879b7e82

Also, g_defaultClockConfigRun within fsl_clock_config.c may help as well: https://github.com/ARMmbed/mbed-https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_clock_config.c#L94

And a relevant NXP Forums thread: https://community.nxp.com/thread/428316

To use these driver methods, make sure to include them at the top of your main.cpp file (or wherever you are using these methods), for example: #include "fsl_clock_config.h"

Please let me know if you have any questions!

- Jenny, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

Accepted Answer