Evaluation boards arrived from STM

The official STMicroelectronics Arduino core
User avatar
sheepdoll
Posts: 236
Joined: Fri May 22, 2015 12:58 am
Location: Silicon Valley Vortex
Contact:

Re: Evaluation boards arrived from STM

Post by sheepdoll » Tue Oct 04, 2016 4:23 pm

Wi6Labs wrote: Indeed the I2C clock configuration for L4 doesn't work like F1. You must calculated for each speed a specific parameter which depends on the system clock.
You can find more information inside the file "twi.h".
So the STM32Cube MX tool is not used to configure the clock?

User avatar
Slammer
Posts: 244
Joined: Tue Mar 01, 2016 10:35 pm
Location: Athens, Greece

Re: Evaluation boards arrived from STM

Post by Slammer » Tue Oct 04, 2016 6:39 pm

As I understand, CubeMX passes the parameters on registers as they are (at least for I2C).... For proper operation a rather complex calculation is required, while this is not a big problem, the different parameters for different clocks, is.
I will check the mbed and Chibios how they solve this problem.....

User avatar
GrumpyOldPizza
Posts: 181
Joined: Fri Apr 15, 2016 4:15 pm
Location: Denver, CO

Re: Evaluation boards arrived from STM

Post by GrumpyOldPizza » Wed Oct 05, 2016 11:53 am

Slammer wrote:As I understand, CubeMX passes the parameters on registers as they are (at least for I2C).... For proper operation a rather complex calculation is required, while this is not a big problem, the different parameters for different clocks, is.
I will check the mbed and Chibios how they solve this problem.....
MBED uses hardcoded values as well last time I checked. They run either @80MHz or @48MHz and select the set of values.

User avatar
RogerClark
Posts: 6894
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Evaluation boards arrived from STM

Post by RogerClark » Wed Oct 05, 2016 7:42 pm

OK.

So we could use mbed's I2C values for 80MHz

User avatar
Wi6Labs
Posts: 25
Joined: Fri Sep 16, 2016 11:39 am
Location: Rennes, France
Contact:

Re: Evaluation boards arrived from STM

Post by Wi6Labs » Mon Oct 17, 2016 1:50 pm

We have taken account your remarks about the STM32L4 system clock settings.
A new release will be soon available with the new settings:
  • system clock at 80MHz
  • SPI default speed at 5MHz
  • I2C clock settings updated
BR
Wi6Labs team

User avatar
RogerClark
Posts: 6894
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Evaluation boards arrived from STM

Post by RogerClark » Mon Oct 17, 2016 8:44 pm

Excellent...

Thanks

Post Reply