AnsweredAssumed Answered

Systick Timer and Debug Console with MQX_KSDK 1.3.0 + PEx in KDS 3.0.0

Question asked by Alessandro Vagniluca on Oct 23, 2015
Latest reply on Dec 6, 2016 by Raj Batra

I created my first MQX_KSDK project with PE on a TWR-K65F180M board following this great tutorial:

https://community.freescale.com/docs/DOC-103429

 

I am using KDS 3.0.0 and KSDK 1.3.0.

I selected MQX Standard in the MQX_KSDK Configuration parameters.

 

Now I see the systick timer is configured with a 5 ms period. I would like a 1 ms systick, but the systick timer (fsl_hwtimer) configuration is unchangeable. Why? It is not allowed to modify the fsl_hwtimer_InitConfig0 configuration nor to add a new one.

 

In the fsl_hwtimer1.h file generated by PEx the macro FSL_FSL_HWTIMER1_PERIOD_CNF0 is set to 5000: I think the systick timer period in microseconds is set with this macro, right?

Is manually changing that macro the only way to get the desired systick period for MQX RTOS component ?

 

The MQX RTOS component also inherits one UART as debug console.

What if my custom board has no available UART to assign as debug console?

 

I think it is better a RTOS componenet that inherits only the systick timer with a changeable configuration (tick period) and optionally a debug console UART (which is already configurable in baud rate and hardware pins; but what if I have only a RS485 serial port on my custom board?)

Outcomes