Skip to content

ext: stm32cube: stm32f4xx: shift I2SR field in PLLI2SCFGR register #8762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 6, 2018

Conversation

avisconti
Copy link
Collaborator

@avisconti avisconti commented Jul 5, 2018

This PR is fixing two bugs into ST CubeMX code for stm32f4xx and stm32f7xx. Both the two bugs are related to the routines to configure the PLLI2S where the PLLR field was not properly shifted.

ST BUG Tracker IDs: 50108 and 50086

@avisconti avisconti requested a review from erwango as a code owner July 5, 2018 15:33
@avisconti
Copy link
Collaborator Author

@erwango
Please note that for the moment in README file I put:
ST Bug tracker ID: TO BE ASSIGNED

It would be nice if we could get a number before the end of the week.

Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided internal ST tracker.
Do you know if this bug is also present for other series?

is read or written.
Impacted files:
drivers/include/stm32f4xx_ll_rcc.h
ST Bug tracker ID: TO BE ASSIGNED
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

50086

Copy link
Collaborator Author

@avisconti avisconti Jul 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided internal ST tracker.

ok, good.

Do you know if this bug is also present for other series

Well, no, I don't know.
I can check it quickly tomorrow. Let's say that the PLLI2S is not present in all the series if I got it properly. Maybe only stm32f4xx and stm32f10x. But I need to check carefully.

@avisconti
Copy link
Collaborator Author

@erwango
I think that also stm32f7xx has same bug

@galak galak added the platform: STM32 ST Micro STM32 label Jul 5, 2018
@codecov-io
Copy link

codecov-io commented Jul 5, 2018

Codecov Report

Merging #8762 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8762   +/-   ##
=======================================
  Coverage   52.36%   52.36%           
=======================================
  Files         195      195           
  Lines       24713    24713           
  Branches     5136     5136           
=======================================
  Hits        12940    12940           
  Misses       9699     9699           
  Partials     2074     2074

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40f7a02...ff911c8. Read the comment docs.

@erwango
Copy link
Member

erwango commented Jul 6, 2018

@avisconti , could you create the same patch in this PR for F7 series as well?
Bug tracker : 50108

Thanks!

avisconti added 2 commits July 6, 2018 10:15
The I2SR field should be shifted by RCC_PLLI2SCFGR_PLLI2SR_Pos when the
PLLI2SCFGR register is read or written. Without this patch the PLLI2S
configuration is not done properly (R and M params are badly set) and
the PLLI2S generates bad clock waveform.

ST Bug tracker ID: 50086

Signed-off-by: Armando Visconti <[email protected]>
The I2SR field should be shifted by RCC_PLLI2SCFGR_PLLI2SR_Pos when the
PLLI2SCFGR register is read or written. Without this patch the PLLI2S
configuration is not done properly (R and M params are badly set) and
the PLLI2S generates bad clock waveform.

ST Bug tracker ID: 50108

Signed-off-by: Armando Visconti <[email protected]>
@avisconti
Copy link
Collaborator Author

@erwango
done! I also changed the PR comment to better describe what the PR is dealing withh

@galak galak merged commit 9a89320 into zephyrproject-rtos:master Jul 6, 2018
@avisconti avisconti deleted the cubemx-fix branch July 9, 2018 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants