-
Notifications
You must be signed in to change notification settings - Fork 3k
Add Arduino Portenta H7 as target #13826
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
Conversation
@facchinm, thank you for your changes. |
be5bd8f
to
7417773
Compare
As this is a draft, I'll mark it as do not merge until the update provided. Please review Travis license failures. |
Hi @0xc0170 , |
I've checked few, they are related to |
Hi |
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/PeripheralNames.h
Outdated
Show resolved
Hide resolved
/******************************************************************************/ | ||
/* PLL (clocked by HSE) used as System clock source */ | ||
/******************************************************************************/ | ||
uint8_t SetSysClock_PLL_HSE(uint8_t bypass, bool lowspeed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some comment about this 2 speed mode ?
Thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will do
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/system_clock_override.c
Show resolved
Hide resolved
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/PeripheralPins.c
Outdated
Show resolved
Hide resolved
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/PeripheralPins.c
Outdated
Show resolved
Hide resolved
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/system_clock_override.c
Show resolved
Hide resolved
51cff23
to
74b6256
Compare
48758cf
to
8038a6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for dual core part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will execute tests when I have HW!
8038a6c
to
1e9c5e9
Compare
Jenkins CI Test : ✔️ SUCCESSBuild Number: 5 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
All green now. The fix for gpio is in the cI as well. is there anything else oustanding here or ready for the last round of review? |
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/CMakeLists.txt
Show resolved
Hide resolved
3961272
to
62b6cc9
Compare
Ready! 💪 |
connectivity/drivers/emac/TARGET_STM/TARGET_STM32H7/TARGET_PORTENTA_H7/CMakeLists.txt
Show resolved
Hide resolved
CI restarted |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 6 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
I'll merge this now. Please send separate PR addressing the review coments. |
Hi, I'm running platformio and have added mbed as framework to the portenta_h7_m7.json board definiton (I know its a hack). Any advice appriciated! |
Yes, you can build an application for M7 core with PORTENTA_H7_M7, or M4 with PORTENTA_H7_M4: |
I could now find the PORTENTA_H7_M7 in mbed studio and compile. Neither studio nor mbed online could detect the portenta while it is in bootloader mode, so flashing was not possible through mbed tools. Interesting is also that https://github.com/ARMmbed/mbed-os/blob/master/targets/targets.json#L3478 I have verified that through adding a custom linker script in my platformio setup, where I then was able to get a simple blink code running, however some quirkyness remainded as no com port was available and the LEDs were not acting according to my code. Should I make a new issue, rather than contiuing discoussion here? |
Yes, a new issue is always better |
Summary of changes
This PR series introduces the support for Arduino Portenta H7 .
The patchset has been split into independent PRs for an easier review.
#13816
#13817
#13863/cc @pennam @pnndra
Impact of changes
Except the standalone
TARGET_PORTENTA*
content, some other files have been touched (all of them in separate commits).In particular,
COMPONENT_WHD
has been made generic (any mbed target implementingSERIAL_FC
can now compile it) but this could impact PSOC6 targets which used to configure it via Cypress HAL.Migration actions required
Documentation
Pull request type
Test results
Test results attached (this branch build over #13863 )
report-13-11.zip
Reviewers
@jeromecoutant
@romanjoe (for the WHD patches)