2018-03-03 08:08 AM
Hey guys.I was just working with stm32f2 series and used cube mx to generate the code,but stm8 series do not have code generator in cube mx(sad
:(
).I wanted to see if there is any HAL divers or i have to write the code with cmsis?
2018-03-03 08:14 AM
One more question. Doesn't keil support stm8 series?
2018-03-03 09:01 AM
The STM8 is not an ARM based core and does not support CMSIS, or Keil.
The HAL is rather a thick abstraction, and not terribly well suited to something where you want the code as small and fast as possible.
You want HAL/CubeMX, consider a Cortex-M0(+) based device from the STM32 family.
2018-03-03 12:04 PM
Keil does not support STM8. Basically, the C compiler choices are: SDCC, IAR, Cosmic, Raisonance. There is a
http://colecovision.eu/stm8/compilers.shtml
, but it only considers aspects of the C compilers themselves (i.e. it doesn't consider IDE integration, etc).Philipp
2018-03-03 12:19 PM
You mean it's better to write the code with registers mentioned in the user manual?
2018-03-03 01:57 PM
The answer depends on your definition of 'better'.
Working on the registers forces you to understand the device. It is generally more efficient.
Whether that's good is up to you.
2018-03-03 02:28 PM
It is usually better to meet your speed and cost budgets, a good idea of how the processor actually functions might allow you to hit your goals instead of miss them.