Using SysTick for other tasks when in tickless mode

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
totalkrill
Posts: 12
Joined: Thu Jul 09, 2015 2:21 pm

Using SysTick for other tasks when in tickless mode

Post by totalkrill »

Hello!

As i understand it tickless mode is not using the systick_handler or timer. This means that i could potentially use the systick timer myself without having to worry about breaking something in ChibiOS. If that is correct i was planning on implementing a systick handler with the highest prio that reads the PC of the system when the systick occured and prints it out over a serial port that would be dedicated to only serving this PC value, and only from the systick handler.

I was planning on trying some profiling of the system, including chibios functions.

Does this seem like it could work and in that case do anyone have any pointers on how to achieve this?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Using SysTick for other tasks when in tickless mode

Post by Giovanni »

hi,

You can use systick for that using the normal CMSIS functions, ChibiOS does not touch it in tickless mode, you could also use a GPT timer for that and not have to write any special code.

Giovanni
Post Reply