STM32L4+ support

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
faisal
Posts: 382
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 45 times
Been thanked: 62 times

STM32L4+ support

Post by faisal »

Any plans on support for the STM32L4+? If so, when?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L4+ support

Post by Giovanni »

It is planned, it uses much of the work already done for H7.

Giovanni
faisal
Posts: 382
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 45 times
Been thanked: 62 times

Re: STM32L4+ support

Post by faisal »

What is the status on the OS and HAL support for these devices? I'm expecting some custom boards with this processor soon ... One significant change seems to be the DMA controller.

I would appreciate an update, or some sort of estimate on when it will be supported so we can plan around it.

Thanks!
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L4+ support

Post by Giovanni »

Some code has already been committed, no estimates yet. DMA support will be the same already done for H7, most drivers too.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L4+ support

Post by Giovanni »

Update, it is proceeding, I am fining a lot of differences in ST headers. Apparently they decided to change register macro names because reasons...

Doing the patchwork...

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L4+ support

Post by Giovanni »

Did anybody manage to make OpenOCD work with STM32L4plus? the current git master does not seem to support it.

Giovanni
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: STM32L4+ support

Post by FXCoder »

I've built the L4R5-NUCLEO demo on trunk and flashed it with ST-LINK to a NUCLEO just to see if the LEDs blinked.
Blue and red do... green "looks" solid (or blinking at high rate perhaps).
Pressing USER button didn't produce test output via SD3->USB.

It seems we'd require a Windows build of openocd with this "cherry pick" update included to at least get started on ChibiStudio...
http://openocd.zylin.com/#/c/4310/

Will look at patching and building openocd as time permits.

--

Bob
Last edited by FXCoder on Sun Aug 26, 2018 2:34 pm, edited 1 time in total.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L4+ support

Post by Giovanni »

The demo is not tested (I am trying to setup OpenOCD just in order to do that).

Giovanni
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: STM32L4+ support

Post by FXCoder »

Yes. Understood...
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: STM32L4+ support

Post by FXCoder »

Giovanni.
Here is a quick hack W64 build of openocd that will at least get you running with L4+ testing.
I built it using Liviu Ionescu's GNU MCU build system for openocd.

Use board/st_nucleo_l4.cfg for session establishment.

There is no support for sector erase yet in the openocd patch for L4+ NOR flash.
Not sure if anyone is doing further work on the L4R/Sx support.
I have an L4R9 project in the works so would be good to have some further work on this soon... :D

Cheers,

--

Bob
Attachments
openocd.zip
(1.69 MiB) Downloaded 629 times
Post Reply