STM32L4 support Topic is solved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

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

Re: STM32L4 support

Post by Giovanni »

hi,

Usually adding members of the same sub-family is matter of hours: update CMSIS headers and add an entry to the registry, then a demo.

Hardware is required.

Giovanni
szego
Posts: 20
Joined: Wed Sep 02, 2015 7:51 pm

Re: STM32L4 support

Post by szego »

alex31 wrote:Hello,

Since spring of 2016, there is a new stm32L432 family, very small package (32 pins), a lot less peripherals, but the same
CM4 core with FPU than other L4.

This chip seems well suited to do advanced motor control (energy efficiency, fast adc, lot of processing power, i2c, CAN, usb, serial interface, complemented timer output)

Only one ADC, but it permits 5Ms/s, will it be accessible with the same ADC driver than other L4 ?

For the one who knows well STM chips, does the portage only consists of writing specific stm32_registry.h, or is there new drivers to be written due to new specific L432 peripherals ?

also, stm32L432 seems too different from other L4 to be integrated in existing STM32L4xx/stm32_registry.h, probably there is need for a new STM32L4xx directory ?

Should i estimate the portage duration in days or in weeks :-) ?


The short answer - it depends how similar the new L432 is to existing stuff. Without looking at the details I'd guess days, no more than a week, from experience. However you've already stated you think it's different enough to *not* fit in with the current STM32L4xx/stm32_registry.h so I could be way off.

I'll take a peek - I have the Nucleo-L432 arriving soon.

Paul.
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

Re: STM32L4 support

Post by alex31 »

I'll take a peek - I have the Nucleo-L432 arriving soon.


Nice, i will order some asap to explore it from my side.

I have began to read reference manuel, and perhaps it's not so different. All peripherals look the same, there is only less instance of each peripheral than other L4, the linker script will be slightly different because of less flash/ram. But finally, giovanni is right, it should be done in a day. I will be able to spend time on this at the end of october.

Alexandre
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: STM32L4 support

Post by RoccoMarco »

I am waiting for this new Nucleo too. I will add related support when I'll get the hardware.
Ciao.
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: STM32L4 support

Post by RoccoMarco »

Hello everyone,
I will add support for STM32L432 by this sunday
Camera2-2016-11-04-10-13-59.jpg
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

Re: STM32L4 support

Post by alex31 »

I will add support for STM32L432 by this sunday


Nice !

I hope all went smoothly and support will be done when i 'll receive my devboard ;)

Alexandre
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: STM32L4 support

Post by RoccoMarco »

Sorry Alex,
I wasted the whole weekend on PLAY Embedded. :oops:

I will keep my promise with a little delay.

Ciao
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: STM32L4 support

Post by RoccoMarco »

Hi,
now STM32L432 is supported. Code is on trunk.

Note that you need to update OpenOCD too. I have built a new version few hours ago and you can find it on download page of playembedded.org and in a topic of the forum about openocd.
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: STM32L4 support

Post by RoccoMarco »

Unlike STM32L476, STM32L432 has USB FS instead of OTG.
I have updated the port in order to make an STM32L432-USB_CDC demo successfully compiled. Anyway, I haven't hardware to test it. If someone is able to test it I am attaching the demo. It should be imported into the workspace_trunk.
RT-STM32L432KC-NUCLEO32-USB_CDC.zip
(19.44 KiB) Downloaded 440 times
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

Re: STM32L4 support

Post by alex31 »

Great !

Thanks a lot for this support. I should receive my devboard tomorrow, so i can test it.

For the USB-CDC demo, what hardware is needed, just a cable with usb host plug a one end and free pins on the other end to connect to
gnd, and data- & data+ on the pins of the devboard ? If it's all what is needed, i can test it.

Alexandre
Post Reply