Arduino Library, but how?!?!
Posted: Wed Jun 12, 2024 12:26 pm
I ran into difficulties using a Arduino NeoPixel Library on an STM32F103CB, with an interminably lengthy interrupt disablement crashing my i2c slave code.
Not a problem. A simple NeoPixel driver, that employs a DMA fed timer to signal to the NeoPixel, isn't difficult to code, and STM32CubeMX does most of the work for you. I can write my own library.
Now, come to port that STM32 HAL code to run as an Arduino library, and the difficulty begins. Endless HAL call clashes with Arduino platform code, make the whole process nigh impossible.
I give up. How is it done? Am I limited only to the Arduino STM32 Core API functions provided, and am simply out of luck if I want to setup DMA transfers to a timer? Or, is there some secretively documented means, by which I can co-locate HAL and LL calls, and have these run within Arduino libraries?
M.
Not a problem. A simple NeoPixel driver, that employs a DMA fed timer to signal to the NeoPixel, isn't difficult to code, and STM32CubeMX does most of the work for you. I can write my own library.
Now, come to port that STM32 HAL code to run as an Arduino library, and the difficulty begins. Endless HAL call clashes with Arduino platform code, make the whole process nigh impossible.
I give up. How is it done? Am I limited only to the Arduino STM32 Core API functions provided, and am simply out of luck if I want to setup DMA transfers to a timer? Or, is there some secretively documented means, by which I can co-locate HAL and LL calls, and have these run within Arduino libraries?
M.