Skip to content

STM32: define RCC_LSE_BYPASS to allow using PC_15 as gpio #13817

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 1 commit into from
Nov 2, 2020

Conversation

facchinm
Copy link
Contributor

@facchinm facchinm commented Oct 27, 2020

Summary of changes

This is the first part of a PR series to support Arduino Portenta H7 .
The patchset has been split into independent PRs for an easier review.
#13816

This PR content:

  1. Add a global mbed configuration define to use STM32 LSE_BYPASS option releasing PC_15

/cc @pennam @pnndra

Impact of changes

All STM32 targets with LSE available (MBED_CONF_TARGET_LSE_AVAILABLE)

Migration actions required

Documentation


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


@ciarmcom
Copy link
Member

@facchinm, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@0xc0170 0xc0170 requested a review from a team October 28, 2020 15:06
@0xc0170 0xc0170 added release-type: patch Indentifies a PR as containing just a patch and removed release-type: feature labels Nov 2, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 2, 2020

CI started

Set to patch version (target update only)

@mbed-ci
Copy link

mbed-ci commented Nov 2, 2020

Jenkins CI Test : ✔️ SUCCESS

Build Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_build-greentea-ARM ✔️
jenkins-ci/mbed-os-ci_build-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️
jenkins-ci/mbed-os-ci_dynamic-memory-usage ✔️
jenkins-ci/mbed-os-ci_cloud-client-pytest ✔️

Copy link
Collaborator

@jeromecoutant jeromecoutant left a comment

Choose a reason for hiding this comment

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

I suppose this "lse-bypass" config is set for Portenta in targets.json

@jeromecoutant
Copy link
Collaborator

STM32 information :-)

  • When the LSE oscillator is switched ON (RCC_LSE_ON) the oscillator takes control of its associated pins
    (PC_14 and PC_15, named as RCC_OSC32_IN and RCC_OSC32_OUT in PinNames.h file),
    then you can't use these pins as GPIO.
  • When the oscillator is configured in a user external clock mode (RCC_LSE_BYPASS),
    only the OSC32_IN (PC_14) pin is reserved for clock input
    and the OSC32_OUT (PC_15) pin can be used as normal GPIO.

Same feature for HSE.

@facchinm
Copy link
Contributor Author

facchinm commented Nov 2, 2020

@jeromecoutant yup! 51cff23

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 2, 2020

Travis run (due to the travis org change, we got 2 statuses). I'll merge.

@0xc0170 0xc0170 merged commit 798c3c5 into ARMmbed:master Nov 2, 2020
@mergify mergify bot removed the ready for merge label Nov 2, 2020
@mbedmain mbedmain added release-version: 6.5.0 Release-pending and removed release-type: patch Indentifies a PR as containing just a patch Release-pending labels Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants