I’ve been absorbing the ST literature on using the stm32L4 and studying the rmiller and grumpy old pizza arduino code in order to understand how to custom configure peripherals on the stm32.
Are my assumptions correct that:
—the grumpyoldpizza/rmiller drivers are based on the standard peripheral libraries
—ST has stopped supporting them in favor of its HAL drivers, though they still work fine
—ST has gained access to the STM32duino repo and is contributing/supporting it
—STM32duino is based on their HAL (which include the LL periph. drivers) and as such would enable use of functions from LL drivers directly in the arduino IDE
If I’m correct then I can see 2 possible ways to use the LL drivers:
1) Create a new arduino board architecture using the closest STM32duino config as a starting point (there’s a nucleo option that targets an stm32l433RC, so very close) and modifying rmiller’s blackice-specific code to work with it (or writing new code based on his work but targeting the STduino arch.)
2) Use the existing core and simply add the LL drivers I need
No.1 appeals to me b/c ST is contributing and as such it is the current state of the art. However it would not be easy and may very well be far above my abilities. If it works it may be useful to others and it’s possible it could be easily adapted to the MX
No. 2 may be way easier but seems clunky as it mixes the old standard library with the HAL/LL set.
At this point I’m exploring 1 and am writing to see if anyone has insight; basically I’m in the “feasibility” stage, I haven’t done much other than download the STM32duino repo and study its structure and how it compares with the rmiller code. There are some guides to creating custom board configurations by modding an existing config, and the arduino specifications, so I at least have a general roadmap.
I’ve also began muttering loudly to myself regardless of the presence of others, and more often than not I see the world as a field of vertically scrolling green characters ala the matrix. I’m hoping they will fade in time...