Arduino Library, but how?!?!

Post here first, or if you can't find a relevant section!
Post Reply
M de Luis
Posts: 3
Joined: Wed Jun 12, 2024 2:12 am

Arduino Library, but how?!?!

Post by M de Luis »

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.
fpiSTM
Posts: 1944
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 108
Location: Le Mans
Contact:

Re: Arduino Library, but how?!?!

Post by fpiSTM »

M de Luis
Posts: 3
Joined: Wed Jun 12, 2024 2:12 am

Re: Arduino Library, but how?!?!

Post by M de Luis »

Hi fpiSTM,

Thanks for the link.

I'll study this in-depth.

M.
M de Luis
Posts: 3
Joined: Wed Jun 12, 2024 2:12 am

Re: Arduino Library, but how?!?!

Post by M de Luis »

I'm stuffed. Meh.
Post Reply

Return to “General discussion”