tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

initial portenta h7 support

Open bm16ton opened this issue 4 years ago • 2 comments

Initial support for Portenta H7.

Very easy and simple additions to get the Portenta H7 up and running. I put it into its own folder, not sure if thats correct but between the two cores of diff archs and the weirdness the dual cores seem to bring compared to single core brothers thought it made sense. The i2c pmic gets written to very early init by arduino/mbed I added ruff initial and untested code for that in family.c, but its not tested/trustworth atm. Everything seems ok, the examples need to have the bootloader offset applied to vtor scb and its required includes added. The only weirdness is after a firmware upload via the arduino bootloader, it will reboot 3 or 4 times with a handfull of seconds in between. Then that firmware is solid even after unplugs/replugs. A simple reboot will also stop the rebooting. Im not a programmer, and this is my first ever pull request so please forgive me for any unwitting mistakes.

bm16ton avatar Dec 16 '21 10:12 bm16ton

Ok so adding -DAPP_START=0x08040000 to the cflags with .ld set to offset didnt work and also cflags set and ldflags set with -Wl,-Ttext=0x08040000 and .ld set to flash base, but all fail, the leds turn on correct and it fails to enumerate. Im sure a simple way to add the offset to the board/family files exists but I just havent found it yet:) Ill keep on it!

bm16ton avatar Dec 30 '21 04:12 bm16ton

Ok so adding -DAPP_START=0x08040000 to the cflags with .ld set to offset didnt work and also cflags set and ldflags set with -Wl,-Ttext=0x08040000 and .ld set to flash base, but all fail, the leds turn on correct and it fails to enumerate. Im sure a simple way to add the offset to the board/family files exists but I just havent found it yet:) Ill keep on it!

Sorry for late response, I have been a bit busy lately with other works. I will try to make an update on linker stuff later on based on available doc (since I don't have any portenta board). Will let you know when it is available for testing.

hathach avatar Jan 17 '22 05:01 hathach

closed due to lack of activities, also the main branch moving too far now. Feel free to open an new PR if needed

hathach avatar Mar 08 '23 06:03 hathach