<div dir="ltr"><div><div>OK, I can't help in your stated quest of an AI assistant, but here is how I tend to go about STM32 development which might get what you want.<br><br></div>First I use the CubeMX tool to do all the primary set up (peripheral initialisation, clock trees, dma channel assignment etc).<br></div><div>For some of the peripherals, the performance is not too critical and the HAL podge is not too podgy. The HAL can work there.<br></div><div>Then there are the few bits where the HAL is too bloaty and/or slow and/or missing the features you want. That is where I write my own drivers and bypass the HAL.<br><br></div><div>It is OK to mix and match like that. It means you only need to go datasheet mining in a few critical places.<br><br></div><div>Obviously you don't want to do things like write to the peripheral at the same time via HAL and your own code, but it is OK to use HAL to set things up, then apply your own tweaks then use your own code to do all the read/write stuff etc.</div><div><br></div><div>This has worked well for me in the past and gives me the best of both worlds (well most of the time anyway).</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jul 3, 2025 at 10:49 AM Mark Atherton <<a href="mailto:markaren1@xtra.co.nz">markaren1@xtra.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Charles,<br>
<br>
You are quite right, I could just dig straight into the documentation, <br>
but at last count, there are something over 2,600 pages associated with <br>
the STM32G491.<br>
<br>
I was rather hoping to implement then experiment with some new ideas, <br>
rather than go into battle over trying to get peripherals configured.<br>
<br>
I am also quite shameless in terms of asking for help in any form that <br>
might be available.<br>
<br>
Anyway, can anyone recommend an AI assistant that might be useful in my <br>
journey ?<br>
<br>
Thanks,<br>
<br>
Mark<br>
<br>
----------<br>
<br>
Charles Manning said<br>
<br>
What's wrong with the grey stuff sitting on your shoulders?<br>
<br>
The HAL normally has multiple modes of operation, including DMA options,<br>
but if you're pushing the micro hard the HAL is often a bit bloated and<br>
slow.<br>
<br>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.ourshack.com" target="_blank">Chchrobotics@lists.ourshack.com</a><br>
<a href="https://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer" target="_blank">https://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.</blockquote></div>