-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Add support arduino portenta h7 #45221
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 support arduino portenta h7 #45221
Conversation
61053c0 to
2fc928b
Compare
erwango
left a comment
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.
Thanks for this work.
This looks globally fine, but some clean up required
8e3e960 to
c53b7a1
Compare
|
Thnaks @benjaminbjornsson for this work! |
dts/arm/st/h7/stm32h7.dtsi
Outdated
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.
Maybe the definition in [stm32h743.dtsi](https://github.com/zephyrproject-rtos/zephyr/blob/7fe5ab315a4453322780e5655364fe4de2a1b9b6/dts/arm/st/h7/stm32h743.dtsi) should be removed then?
zephyr/dts/arm/st/h7/stm32h743.dtsi
Lines 22 to 34 in 7fe5ab3
| usbotg_fs: usb@40080000 { | |
| compatible = "st,stm32-otgfs"; | |
| reg = <0x40080000 0x40000>; | |
| interrupts = <101 0>, <98 0>, <99 0>; | |
| interrupt-names = "otgfs", "ep1_out", "ep1_in"; | |
| num-bidir-endpoints = <9>; | |
| ram-size = <4096>; | |
| maximum-speed = "full-speed"; | |
| clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x080000000>; | |
| phys = <&otghs_fs_phy>; | |
| status = "disabled"; | |
| label= "OTG_FS"; | |
| }; |
I have noticed that the interrupts are not in the same order and h743 version has only 3 interrupts.
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.
@romainreignier Thanks for raising this.
Actually this change is not correct. Only stm32H742 "and higher" support usbotg_fs. On the other hand usbotg_hs is indeed supported on the whole stm32h7 series.
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.
Great catch! I'll move it to stm32h745.dtsi
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.
I am still unable to use the sample samples/subsys/usb/console on the MachineControl, the USB device is not detected by the kernel on boot.
|
I have tried your branch myself and managed to run some samples:
For the adc sample, I had to add these lines to the common dtsi: And this overlay in the sample: I don't own the Breakout Board to try the USB FS but I have a MachineControl on which I might test it. Everything went well 👍 |
boards/arm/arduino_portenta_h7/arduino_portenta_h7_m7_defconfig
Outdated
Show resolved
Hide resolved
1dd91c1 to
dc258c8
Compare
erwango
left a comment
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.
Few last comment on my side.
Also, can you comment on the core frequency question ?
boards/arm/arduino_portenta_h7/arduino_portenta_h7_m7_defconfig
Outdated
Show resolved
Hide resolved
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
|
@benjaminbjornsson can you check the build issues reported by CI ? |
59a6c68 to
a9e6818
Compare
@erwango I'm confused, it's not the board being added that fails now. Should more boards be excluded from |
ok, please rebase and force push |
a9e6818 to
2800451
Compare
|
@benjaminbjornsson It seems that you're out of luck and hit be several issues non related with your commit. Meanwhile, can you check following remaning comment: #45221 (comment) ? |
|
It seems that the only remaining issue is the line about the user button in the description text file. |
PR also requires a rebase. |
This has been verified running samples usb/console and usb/cdc_acm on a STM32H747XIH. Signed-off-by: Benjamin Björnsson <[email protected]>
This commit adds support for the Arduino Portenta H7 board. The board functionallity has been verified by running following samples: - hello_world on m7 core - usb/console on m7 core - blinky on m4 core Signed-off-by: Benjamin Björnsson <[email protected]>
Exclude Arduino Portenta H7 because the flash driver isn't supported yet on the M4 core. Signed-off-by: Benjamin Björnsson <[email protected]>
2800451 to
b82656f
Compare
|
Sorry for the delay, I've removed the line about the push-button in the index now and also rebased. |
No description provided.