Hello Martin,
I didn't have installed the PE until now, I want to use the "clock management" functions to change the clock and I ask for some documentation regarding this subject, in MQX 3.7 was very simple to change some divisors in <board>.h file. In the same way I have made some changes in twrk60N512.h of the MQX3.8.1:
#define BSP_CLOCK_CONFIGURATION_STARTUP (BSP_CLOCK_CONFIGURATION_12MHZ)
#define BSP_CLOCK_SRC (CPU_XTAL_CLK_HZ)
#define BSP_CORE_CLOCK (CPU_CORE_CLK_HZ_CONFIG_1)
#define BSP_SYSTEM_CLOCK(CPU_CORE_CLK_HZ_CONFIG_1)
#define BSP_CLOCK (CPU_BUS_CLK_HZ_CONFIG_1)
#define BSP_BUS_CLOCK (CPU_BUS_CLK_HZ_CONFIG_1)
#define BSP_FLEXBUS_CLOCK (CPU_FLEXBUS_CLK_HZ_CONFIG_1)
#define BSP_FLASH_CLOCK (CPU_FLASH_CLK_HZ_CONFIG_1)
I have build the bsp and psp and after that, I have rebuild the "timer" example. Without debugger, the program run OK , but in IAR debug mode when press Go menu, the debug messages in periodic timer functions didn't appear on PEmicro terminal. like the timer didn't start. This can be tested by anyone.
best regards,
Stefan