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 NUCLEO-H7S3L8 BSP #2960

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add NUCLEO-H7S3L8 BSP #2960

wants to merge 4 commits into from

Conversation

HiFiPhile
Copy link
Collaborator

@HiFiPhile HiFiPhile commented Jan 24, 2025

Describe the PR

Add NUCLEO-H7S3L8 support.

Status:

FS port HS port
Device Unknown Working
Host Unknown *Has issues

* Detach is not detected, resulting _usbh_devices overflow.
* High speed device can't enumerate.

Either not advacning:

USBH init on controller 1, speed = Full
sizeof(usbh_device_t) = 86
sizeof(hcd_event_t) = 12
sizeof(_ctrl_xfer) = 16
sizeof(tuh_xfer_t) = 24
sizeof(tu_fifo_t) = 12
sizeof(tu_edpt_stream_t) = 20
HUB init
guid, gsnpsid, ghwcfg1, ghwcfg2, ghwcfg3, ghwcfg4
0x00005000, 0x4F54411A, 0x00000000, 0x228FE052, 0x03B882E8, 0xE2103E30
Highspeed UTMI+ PHY init
DMA = 0
[1:] USBH Device Attach
High Speed
[1:0] Open EP0 with Size = 8
Get 8 byte of Device Descriptor
[1:0] Get Descriptor: 80 06 00 01 00 00 08 00
on EP 00 with 8 bytes: OK
on EP 80 with 8 bytes: OK
[1:0] Control data:
  0000:  12 01 10 02 00 00 00 40                          |.......@|

Or recognized as FS:

TinyUSB Device Info Example
USBH init on controller 1, speed = Full
sizeof(usbh_device_t) = 86
sizeof(hcd_event_t) = 12
sizeof(_ctrl_xfer) = 16
sizeof(tuh_xfer_t) = 24
sizeof(tu_fifo_t) = 12
sizeof(tu_edpt_stream_t) = 20
HUB init
guid, gsnpsid, ghwcfg1, ghwcfg2, ghwcfg3, ghwcfg4
0x00005000, 0x4F54411A, 0x00000000, 0x228FE052, 0x03B882E8, 0xE2103E30
Highspeed UTMI+ PHY init
DMA = 0
[1:] USBH Device Attach
Full Speed
[1:0] Open EP0 with Size = 8
Get 8 byte of Device Descriptor
[1:0] Get Descriptor: 80 06 00 01 00 00 08 00
on EP 00 with 0 bytes: FAILED
[1:0] Control FAILED, xferred_bytes = 0
80 06 00 01 00 00 08 00

Enumeration attempt 1
[1:0] Get Descriptor: 80 06 00 01 00 00 08 00
on EP 00 with 0 bytes: FAILED
[1:0] Control FAILED, xferred_bytes = 0
80 06 00 01 00 00 08 00

Enumeration attempt 2
[1:0] Get Descriptor: 80 06 00 01 00 00 08 00
on EP 00 with 0 bytes: FAILED
[1:0] Control FAILED, xferred_bytes = 0
80 06 00 01 00 00 08 00

Enumeration attempt 3
[1:0] Get Descriptor: 80 06 00 01 00 00 08 00
on EP 00 with 0 bytes: FAILED
[1:0] Control FAILED, xferred_bytes = 0
80 06 00 01 00 00 08 00

Additional context
Wasted 2 hours in EXTI as the offset in SVD file is wrong !
Corrected STM32H7S.svd.zip

Signed-off-by: HiFiPhile <[email protected]>
Signed-off-by: HiFiPhile <[email protected]>
Signed-off-by: HiFiPhile <[email protected]>
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.

1 participant