Hi I am a newbie to STM32 (coming from 8 bit freescale) , and will be concentrating on the STM32L0 range. The CubeMX looks really good at first site, but wondering what people thouhts are? Am I better using it to initialise my code, then simply change parts? I looked at the code generated for the UART. And amazed at the amount of code it added for a simple interupt enabled (not DMA).
Many Thanks Scott
The HAL is chronically bloated, at least one of the Cortex-M0 families pulls in the entire floating point library to initialize the USART baud rate. On some parts there is a LL (Low Level) library that might be more palatable.
I prefer the SPL.
Keil has previously used a more register level approach.
Hi Thanks for the reply. What is SPL? Is there a low level library for the L0?
SPL is Standard Peripheral Library, SPL is old library pack for STM32 family, bud is not compatible with CubeMX CumeMX use new HAL Firmware Package
depends on what, exactly, you want to use it for ...
If you just want to get something working quickly - then it's probably a good way to go.
If you want to optimise performance and/or code size, then it's maybe not the right thing.
As you say you're coming from 8-bit MCUs, you should be familiar with the principles here - so you should be able to judge whether what CubeMx is giving you is suitable to your needs ...