maxgerhardt / pio-example-latest-libopencm3

0 stars 0 forks source link

Adapting this example for STM32L4 series! #1

Open ALSCode opened 8 months ago

ALSCode commented 8 months ago

Hello, @maxgerhardt ! Could you please to guide me, how to adapt your usb cdc-acm example to stm32l4 series?

maxgerhardt commented 8 months ago

The instructions in the README seem pretty solid to me, plus platform-ststm32 has plenty of STM32L4 board defs available. Did you get stuck at a specific error?

ALSCode commented 8 months ago

Thanks for fast reply! I try to build/launch cdc-acm example on disco_l4s5i_iot01a board and disco_l496ag. Unfortunately, without any success... I've tried all libopencm3 USB drivers (st_usbfs_v2, v1, stm32f107...). Looks like I missed some little, but important details with L4 series... But what?!

вс, 29 окт. 2023 г., 14:35 Maximilian Gerhardt @.***>:

The instructions in the README seem pretty solid to me, plus platform-ststm32 https://github.com/platformio/platform-ststm32/tree/develop/boards has plenty of STM32L4 board defs available. Did you get stuck at a specific error?

— Reply to this email directly, view it on GitHub https://github.com/maxgerhardt/pio-example-latest-libopencm3/issues/1#issuecomment-1784114114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ2LNVQXVB45N5SOOIIBFBLYBZEPVAVCNFSM6AAAAAA6U3HS2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGEYTIMJRGQ . You are receiving this because you authored the thread.Message ID: @.***>

maxgerhardt commented 8 months ago

I see you've opened https://github.com/libopencm3/libopencm3/issues/1504. So yes, libopencm3 should support STM32L4 + USB first, their repository does not contain an example for that.