2020-01-10 09:32 AM
For a customer, I needed to write up our workflow for using STM32CubeIDE, especially all the steps required to work around assorted issues in CubeMX, HAL, LL, and CubeMX-generated glue code. I'd appreciate any comments, especially if I missed anything. Perhaps others will find this useful!
Thanks in advance for any (constructive) comments,
Best Regards, Dave
http://www.nadler.com/backups/20200111_draft2_STM_Cube_Issues_and_Workflow.html
2020-01-10 01:11 PM
The best workaround is not using them at all.
As soon as HAL doesn't do what you want, stop using it. Saves countless hours of debugging efforts. Rewrite everything as soon as you can using the register interface.
Maintainability
Random collection of bugs I've encountered recently:
2020-01-10 01:26 PM
I wrote drivers for DMA, SPI, some timer stuff because HAL/LL stuff was unworkable.
Really, prefer not to write a USB stack or Ethernet drivers - this stuff really should work!
To add to your list:
LwIP integration has also been a bit fraught; STM http stuff doesn't seem to work so I redid it.
Aaarrrgggg....