Skip to main content
MEder
Associate III
January 6, 2021
Question

SysTick, why not part of CMSIS? (NUCLEO-G070RB)

  • January 6, 2021
  • 6 replies
  • 1341 views

So I have a NUCLEO-G070RB board here and I am not using the HAL library, but just CMSIS libraries.

I see the SysTick functions are part of the HAL not CMSIS. is there a particular reason? I would figure since it's part of the M0+ core it would be in CMSIS.

Unless I missed something somewhere...

ARM in new to me so go easy;)

Thanks

This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
January 6, 2021

>>Is there a particular reason?

Who knows, is it worth pondering, or can you just cut-n-paste the things you need and move forward?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
MEder
MEderAuthor
Associate III
January 7, 2021

I found the defines in 'core_cm0.h'.

Thanks

waclawek.jan
Super User
January 7, 2021

What is "CMSIS libraries"?

JW

MEder
MEderAuthor
Associate III
January 7, 2021

Your right, It's not a Library but just header files. 'CMSIS Cortex-M0 Core Peripheral Access Layer Header File'

Thanks

Piranha
Principal III
January 7, 2021

Except for ISR itself, I can see only one SysTick function and it is a part of CMSIS:

https://www.keil.com/pack/doc/CMSIS/Core/html/group__SysTick__gr.html

And to be completely fair... System ticks as a part of a driver library is a bad idea. If any library needs such a functionality, it should use the system/OS/platform provided one. But there is the catch - Cube/HAL team is not even capable of analyzing and deciding what HAL is and what it isn't. Is it a low-level driver library or high-level platform API? Should it be thread-safe or not? In reality it's a bloatware of something from everything tossed together by careless beginners...

MEder
MEderAuthor
Associate III
January 7, 2021

This is what I was looking for. But I had over looked it somehow.

Not looking to reinvent the wheel here.

Thanks