Re: DMA for SPI
Posted: Tue Jan 14, 2025 12:49 pm
I'm stumbling into various build issues, my tool chain is too old and I'd need to reinstall my Linux OS to a new version.
But there are pretty difficult hacks that need to be done, e.g. that even if the HAL headers has same symbols and definitions, they are in different sets of directories for each series.
the extreme of which is that one may need to generate a #include file that #include a specific set of #include .h files each time for each different series, soc and board. That's how STM32Cube IDE works, but STM32Cube IDE generates codes as well.
fpiSTM (et.al) has done a huge job with Arduino_Core_STM32 to integrate such a huge portfolio of HAL setups.
I'm attempting to build my test codes for different series/board using CMake, various errors each round missing HAL symbols etc. That is even true for the sketch, variant and core. I think it is related to my old tool chain rather than the codes.
I managed a build for stm32f4xx using a makefile, and the build works as well in Arduino IDE 2.x
I'd leave things for a while, hopefully not abandoned.
--
off-topic, a motivation for such attempts is that more recently the 'better' boards are hitting the streets
e.g. WeAct currently has quite good offering of boards sporting new STM32 series many are the good ones like stm32h7xx, g4xx, h5xx,
wb55 (bluetooth) and Adafruit has a stm32f405 feather, Arduino has a portena H7, micropython has some good boards h722 as well.
many 3d printer boards are also running on stm32
stm32f103c8 'bluepill' seemed to be a 'legacy' that wears on even though the more recent new series, socs, boards have well 'surpassed' the stm32f103c8 'tech', new ones many have more flash, more sram and some much faster and more peripherals
But there are pretty difficult hacks that need to be done, e.g. that even if the HAL headers has same symbols and definitions, they are in different sets of directories for each series.
the extreme of which is that one may need to generate a #include file that #include a specific set of #include .h files each time for each different series, soc and board. That's how STM32Cube IDE works, but STM32Cube IDE generates codes as well.
fpiSTM (et.al) has done a huge job with Arduino_Core_STM32 to integrate such a huge portfolio of HAL setups.
I'm attempting to build my test codes for different series/board using CMake, various errors each round missing HAL symbols etc. That is even true for the sketch, variant and core. I think it is related to my old tool chain rather than the codes.
I managed a build for stm32f4xx using a makefile, and the build works as well in Arduino IDE 2.x
I'd leave things for a while, hopefully not abandoned.
--
off-topic, a motivation for such attempts is that more recently the 'better' boards are hitting the streets
e.g. WeAct currently has quite good offering of boards sporting new STM32 series many are the good ones like stm32h7xx, g4xx, h5xx,
wb55 (bluetooth) and Adafruit has a stm32f405 feather, Arduino has a portena H7, micropython has some good boards h722 as well.
many 3d printer boards are also running on stm32
stm32f103c8 'bluepill' seemed to be a 'legacy' that wears on even though the more recent new series, socs, boards have well 'surpassed' the stm32f103c8 'tech', new ones many have more flash, more sram and some much faster and more peripherals