-
I am trying to get usbotg_hs working on the nucleo-h7s3l8. Other peripherals are working well. Blinky sample timing is correct (gpio's), UART comm's work, but something is wrong in my usb config or the usb_dc_stm32.c driver. I am running zephyr 3.6.0 and have added the stm32h7rs series and soc's to my 3.6.0 repo (old HW model). I've created the board for the nucleo-h7s3l8. I've added the hal and pinctrl files for the stm32h7rs I am testing using the USD_CDC_ACM sample which works on my NUCLEO-U575ZI configured for usbotg_fs. I am observing USB driver logs via UART and have the following error: [00:00:00.000,000] usb_dc_stm32: usb_dc_ep_check_cap: ep 0, mps 64, type 0 I have attached the board files "sam_nucleo_h7s3l8_dk", SOC files "stm32h7rs", dts files "h7rs", and the application "usb_cdc_acm". I believe the stm32h7s3.dtsi file configuration matches the mcu data sheet STM32_CLOCK_BUS_AHB1 0x40020000: #include <mem.h>
I am using app.overlay
I Believe the clock is correct as previously it the driver init had error that clock was not 48Mhz. Here are the relevant board dts configs (also attached):
If there is anything incorrect there please let me know. Due to the logs above i believe that there is an issue with the SOC/SERIES in the usb_dc_stm32.c driver file. I have attached the driver file which i have already modified to add some #if defined(CONFIG_SOC_SERIES_STM32H7RSX). Any help or precedence appreciated, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
The OTG HS node has one global interrupt line 91 and clock domain of the AHB1 register is required for OTGHS and USBPHYC |
Beta Was this translation helpful? Give feedback.
-
Let me have a look to your code. |
Beta Was this translation helpful? Give feedback.
-
extflash.bin and intflash.bin were exported from stm32cubeprogrammer. I flashed with stm32cubeprogrammer GUI. build\mcuboot\zephyr\zephyr.bin @ 0x8000000 for mcuboot i have overlay zephyr,code-partition = &boot_partition; for app i have overlay zephyr,code-partition = &slot1_partition; with DTS:
|
Beta Was this translation helpful? Give feedback.
-
from the build log in the zip these warnings stand out: CMake Warning at CMakeLists.txt:427 (message): C:/Partition_Environments/Pythons/zephyrproject/build/hello_world_xip/zephyr/zephyr.dts:769.24-805.5: Warning (spi_bus_bridge): /soc/xspi@5200a000: node name for SPI buses should be 'spi' warning: MCUBOOT_UPDATE_FOOTER_SIZE (defined at subsys/dfu/Kconfig:54) was assigned the value |
Beta Was this translation helpful? Give feedback.
-
I also had to add
|
Beta Was this translation helpful? Give feedback.
I have prepared for that:
one branch for the mcuboot: https://github.com/FRASTM/mcuboot/tree/xip_h7s3
one branch for zephyr : https://github.com/FRASTM/zephyr/tree/xip_h7s3
I have build the application with sysbuild :
`west build -p auto -b nucleo_h7s3l8 samples/boards/st/hello_world_xip --sysbuild -- -DSB_CONFIG_BOOTLOADER_MCUBOOT=y -DCONFIG_FLASH_BASE_ADDRESS=0x700…