Skip to content
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

Add custom board option to STM32 pins generation script #12797

Merged
merged 3 commits into from
Apr 15, 2020

Conversation

AGlass0fMilk
Copy link
Member

Summary of changes

Added flag to STM32 pins generation script (tools/targets//STM32_gen_PeripheralPins.py) to enable users to generate PinNames and PeripheralPins files for a custom board.

Using the CubeMX tool, a user can configure the STM32 peripherals to reflect their custom hardware. The user may then save this configuration as a .ioc file from CubeMX. By passing this .ioc file to the STM32_gen_PeripheralPins.py script with the -c or --custom flag, the script will generate appropriate pins/peripheral definitions to create a custom Mbed target for their board.

Impact of changes

Migration actions required

Documentation

None, new flag is documented by script help dialog.


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

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

Reviewers

@jeromecoutant
@ARMmbed/team-st-mcd


@ciarmcom
Copy link
Member

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

@ciarmcom ciarmcom requested review from jeromecoutant and a team April 13, 2020 17:00
@ladislas
Copy link
Contributor

this is amazing! I was just about to ask on the forum how to do that for the STM32F769. :)

@mergify mergify bot added needs: CI and removed needs: review labels Apr 14, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Apr 15, 2020

CI started

@mbed-ci
Copy link

mbed-ci commented Apr 15, 2020

Test run: FAILED

Summary: 1 of 6 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_greentea-test

@mergify mergify bot added needs: work and removed needs: CI labels Apr 15, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Apr 15, 2020

test restarted

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