Skip to main content
Kuikui
Associate III
November 17, 2020
Question

STM32L552 HSI16 out of specs

Hello,

I've spent 3 days understanding why my USART could not communicate correctly.

The answer : the HSI16 of STM32L552 is out of specs.

Steps to reproduce :

  • start a project running on HSI16
  • Output HSI16 on MCO
  • Measure frequency

I've measure the frequency on 1 STM32L552RC => 14.79MHz

I suspected a bad sample .. so I tried on a STM32L552RE => 14.74MHz

This is out of specs, and has significant impacts on timers, baud rates, etc ...

I've done the same measurements, but with MSI @ 16MHz => 16.04MHz measured.

I was surprised HSI16 problem is not mentioned in errata sheets.

Kind regards,

Vincent.

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
November 17, 2020

Make sure the code is writing the TRIM code properly, or that the HAL examples aren't stomping on them, ie blindly writing all ones or all zeros.

This seems to be a recurrent issue in ST code, which I don't think gets tested.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Kuikui
KuikuiAuthor
Associate III
November 17, 2020

Hi clive,

Thank you for your answer.

The HAL code is running fine, and is writing values to HSITRIM as expected.

We had to manually test different values, and HSITRIM set to 63 seems the best value.

Looks like there's a bug to fix within STM32 Cube ?

V.

ST Technical Moderator
November 26, 2020

Hello @Kuikui​ ,

Thank you for your reported issue. This is raised internally for further review.

I will keep you informed about the taken actions or explanation if needed.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks