ussserrr / stm32pio

Automate managing of STM32CubeMX + PlatformIO projects
https://pypi.org/project/stm32pio
Other
224 stars 24 forks source link

Middleware support #78

Open ussserrr opened 3 years ago

ussserrr commented 3 years ago

FreeRTOS, etc.

cooked commented 3 years ago

Hi @ussserrr I'm currently working on a project that uses USB CDC middleware. I stumbled on the related posts on platformio forum and then on this issue. At the moment I'm testing the workaround described there to let CubeMX generate the middleware USB code, then copy the Middleware folders as well as the Application file over to the platformio project stm32pio middleware support will streamline and make the whole process way neater any estimate of when this will be implemented ?

ussserrr commented 2 years ago

Hello. I think middlewares are too broad to cover all of them. If you can describe needed workflow as detailed as possible, provide an example, then I will try to implement this feature. For example:

Maybe you can list some PlatformIO cases where it is used to build such a code generated by the CubeMX. Specify a target MCU/family, kind of middleware, etc. Currently, I don't have much free time, though, so I can't tell you exactly how long this will take.

cooked commented 2 years ago

sorry for the late late response. I found quite often in need of the USB functionality so I would start with just that one. I think this is quite general use case on fro stm32f1 and stm32f4 family of mcus and dev boarads. Trying to fish out the info from a project I have now:

ussserrr commented 2 years ago

@cooked OK, I'll take a look at it. Though, it seems like the only thing stm32pio should do here is to add the lib_extra_dirs option to the platformio.ini, not necessarily a complex task...