Skip to content

Update to latest STM32CubeU5 v1.2.0 and open_pin_data v6.0.80 #1965

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

Merged
merged 8 commits into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion CI/update/stm32variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def parse_mcu_file():
global mcu_refname

tim_regex = r"^(TIM\d+)$"
usb_regex = r"^(USB(?!PD|_HOST|_DEVICE).*)$"
usb_regex = r"^(USB(?!PD|_HOST|_DEVICE|X).*)$"
gpiofile = ""
del tim_inst_list[:]
del mcu_ram[:]
Expand Down
7 changes: 6 additions & 1 deletion cores/arduino/stm32/stm32_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,15 @@
#endif
#endif

/* STM32G0xx defined USB_DRD_FS */
/* STM32G0xx and some STM32U5xx defined USB_DRD_FS */
#if !defined(USB) && defined(USB_DRD_FS)
#define USB USB_DRD_FS
#define PinMap_USB PinMap_USB_DRD_FS
#if defined(STM32U5xx)
#define USB_BASE USB_DRD_BASE
#define __HAL_RCC_USB_CLK_ENABLE __HAL_RCC_USB_FS_CLK_ENABLE
#define __HAL_RCC_USB_CLK_DISABLE __HAL_RCC_USB_FS_CLK_DISABLE
#endif
#endif

/**
Expand Down
4 changes: 4 additions & 0 deletions cores/arduino/stm32/stm32_def_build.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@
#define CMSIS_STARTUP_FILE "startup_stm32mp157cxx_cm4.s"
#elif defined(STM32MP15xx)
#define CMSIS_STARTUP_FILE "startup_stm32mp15xx.s"
#elif defined(STM32U535xx)
#define CMSIS_STARTUP_FILE "startup_stm32u535xx.s"
#elif defined(STM32U545xx)
#define CMSIS_STARTUP_FILE "startup_stm32u545xx.s"
#elif defined(STM32U575xx)
#define CMSIS_STARTUP_FILE "startup_stm32u575xx.s"
#elif defined(STM32U585xx)
Expand Down
2 changes: 2 additions & 0 deletions cores/arduino/stm32/usb/usbd_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd)
#ifdef __HAL_USB_WAKEUP_EXTI_ENABLE_RISING_EDGE
__HAL_USB_WAKEUP_EXTI_ENABLE_RISING_EDGE();
#endif
#ifdef __HAL_USB_WAKEUP_EXTI_ENABLE_IT
__HAL_USB_WAKEUP_EXTI_ENABLE_IT();
#endif
#if defined(USB_WKUP_IRQn)
/* USB Wakeup Interrupt */
HAL_NVIC_EnableIRQ(USB_WKUP_IRQn);
Expand Down
2 changes: 1 addition & 1 deletion cores/arduino/stm32/usb/usbd_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ extern "C" {
#elif defined(STM32G0xx)
#define USB_IRQn USB_UCPD1_2_IRQn
#define USB_IRQHandler USB_UCPD1_2_IRQHandler
#elif defined(STM32U5xx)
#elif defined(STM32U5xx) && !defined(USB_DRD_FS)
#define USB_IRQn OTG_FS_IRQn
#define USB_IRQHandler OTG_FS_IRQHandler
#elif defined(STM32L5xx)
Expand Down
Loading