Page 2 of 5
Re: STM32L4 support
Posted: Sat Nov 14, 2015 6:02 pm
by lilvinz
There seems to be a mistake in platform.mk. According to the manuals the L4 as an USB OTG peripheral and thus should use OTGv1.
Cheers
Vinz
Re: STM32L4 support
Posted: Sat Nov 14, 2015 10:34 pm
by Giovanni
Fixed thanks, cannot commit because SF is down again...
Giovanni
Re: STM32L4 support
Posted: Fri Nov 27, 2015 7:22 pm
by szego
Got LPUART1 working - should I raise a feature request in SF, or just leave it here?
Paul.
Re: STM32L4 support
Posted: Fri Nov 27, 2015 7:25 pm
by Giovanni
It is OK, leave it here.
Giovanni
Re: STM32L4 support
Posted: Fri Nov 27, 2015 7:36 pm
by szego
Here's a small tweak for I2C support as well.
Paul.
Code: Select all
Index: os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h
===================================================================
--- os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h (revision 8405)
+++ os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h (working copy)
@@ -331,6 +331,11 @@
#error "I2C peripheral clock frequency out of range."
#endif
+#elif defined(STM32L4XX)
+#if !(I2C_CLK_FREQ >= 1) && (I2C_CLK_FREQ <= 100)
+#error "I2C peripheral clock frequency out of range."
+#endif
+
#elif defined(STM32F2XX)
#if !(I2C_CLK_FREQ >= 2) && (I2C_CLK_FREQ <= 30)
#error "I2C peripheral clock frequency out of range."
Re: STM32L4 support
Posted: Fri Nov 27, 2015 8:51 pm
by Giovanni
L4 uses I2Cv2 not I2Cv1.
Giovanni
Re: STM32L4 support
Posted: Sat Nov 28, 2015 11:56 am
by Giovanni
Hi,
Merged the patch (and adjusted all the other registries and all mcuconf.h files). I hope it is OK.
Giovanni
Re: STM32L4 support
Posted: Mon Nov 30, 2015 8:00 pm
by szego
Giovanni wrote:L4 uses I2Cv2 not I2Cv1.
Giovanni
Doh! That was careless of me. I'll check out the patches.
Thanks, Paul.
Re: STM32L4 support
Posted: Tue Dec 01, 2015 10:01 pm
by szego
Giovanni wrote:Hi,
Merged the patch (and adjusted all the other registries and all mcuconf.h files). I hope it is OK.
Giovanni
Tested LPSD1 on the Nucleo-476, works fine for me.
Re: STM32L4 support
Posted: Tue Oct 04, 2016 1:54 pm
by alex31
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

?
Alexandre