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 new stm32 nucleo l552ze board #1256

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 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
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,19 @@ Nucleo_144.menu.pnum.NUCLEO_L4R5ZI-P.build.product_line=STM32L4R5xx
Nucleo_144.menu.pnum.NUCLEO_L4R5ZI-P.build.variant=NUCLEO_L4R5ZI
Nucleo_144.menu.pnum.NUCLEO_L4R5ZI-P.build.cmsis_lib_gcc=arm_cortexM4lf_math

# NUCLEO_L552ZE-Q board
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q=Nucleo L552ZE-Q
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.node=NODE_L552ZE
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.upload.maximum_size=524288
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.upload.maximum_data_size=196608
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.mcu=cortex-m33
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.flags.fp=-mfpu=fpv4-sp-d16 -mfloat-abi=hard
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.board=NUCLEO_L552ZE_Q
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.series=STM32L5xx
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.product_line=STM32L552xx
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.variant=NUCLEO_L552ZE_Q
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.cmsis_lib_gcc=arm_cortexM33lf_math
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are this library ?


# Upload menu
Nucleo_144.menu.upload_method.MassStorage=Mass Storage
Nucleo_144.menu.upload_method.MassStorage.upload.protocol=
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_adc.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_adc.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_adc.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_bus.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_bus.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_bus.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_comp.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_comp.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_comp.h"
#endif
#ifdef STM32WBxx
#include "stm32wbxx_ll_comp.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_cortex.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_cortex.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_cortex.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_crc.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_crc.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_crc.h"
#endif
#ifdef STM32WBxx
#include "stm32wbxx_ll_crc.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_crs.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_crs.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_crs.h"
#endif
#ifdef STM32WBxx
#include "stm32wbxx_ll_crs.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_dac.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_dac.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_dac.h"
#endif
#pragma GCC diagnostic pop
#endif /* _STM32YYXX_LL_DAC_H_ */
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_dma.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_dma.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_dma.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_dmamux.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_dmamux.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_dmamux.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_exti.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_exti.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_exti.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_exti.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_fmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_fmc.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_fmc.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_fmc.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_gpio.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_gpio.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_gpio.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_i2c.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_i2c.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_i2c.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_iwdg.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_iwdg.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_iwdg.h"
#endif
#ifdef STM32WBxx
#include "stm32wbxx_ll_iwdg.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_lptim.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_lptim.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_lptim.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_lptim.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_lpuart.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_lpuart.h"
#endif
#ifdef STM32WBxx
#include "stm32wbxx_ll_lpuart.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_opamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_opamp.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_opamp.h"
#endif
#pragma GCC diagnostic pop
#endif /* _STM32YYXX_LL_OPAMP_H_ */
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_pka.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_pka.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_pka.h"
#endif
#ifdef STM32WBxx
#include "stm32wbxx_ll_pka.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_pwr.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_pwr.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_pwr.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_pwr.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_rcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_rcc.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_rcc.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_rcc.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_rng.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_rng.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_rng.h"
#endif
#ifdef STM32WBxx
#include "stm32wbxx_ll_rng.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_rtc.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_rtc.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_rtc.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_sdmmc.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_sdmmc.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_sdmmc.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_spi.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_spi.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_spi.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_system.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_system.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_system.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_tim.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_tim.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_tim.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_tim.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_ucpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
#ifdef STM32G4xx
#include "stm32g4xx_ll_ucpd.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_ucpd.h"
#endif
#pragma GCC diagnostic pop
#endif /* _STM32YYXX_LL_UCPD_H_ */
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_usart.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_usart.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_usart.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_usart.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_usb.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_usb.h"
#endif
#ifdef STM32WBxx
#include "stm32wbxx_ll_usb.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_utils.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_utils.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_utils.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/LL/stm32yyxx_ll_wwdg.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifdef STM32L4xx
#include "stm32l4xx_ll_wwdg.h"
#endif
#ifdef STM32L5xx
#include "stm32l5xx_ll_wwdg.h"
#endif
#ifdef STM32MP1xx
#include "stm32mp1xx_ll_wwdg.h"
#endif
Expand Down
4 changes: 2 additions & 2 deletions cores/arduino/stm32/backup.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static inline void setBackupRegister(uint32_t index, uint32_t value)
LL_RTC_BKP_SetRegister(BKP, index, value);
#elif defined(STM32G0xx)
LL_RTC_BKP_SetRegister(TAMP, index, value);
#elif defined(STM32G4xx)
#elif defined(STM32G4xx) || defined(STM32L5xx)
LL_RTC_BKP_SetRegister(RTC, index, value);
#else
#ifdef ENABLE_BACKUP_SUPPORT
Expand All @@ -143,7 +143,7 @@ static inline uint32_t getBackupRegister(uint32_t index)
return LL_RTC_BKP_GetRegister(BKP, index);
#elif defined(STM32G0xx)
return LL_RTC_BKP_GetRegister(TAMP, index);
#elif defined(STM32G4xx)
#elif defined(STM32G4xx) || defined(STM32L5xx)
return LL_RTC_BKP_GetRegister(RTC, index);
#else
#ifdef ENABLE_BACKUP_SUPPORT
Expand Down
2 changes: 2 additions & 0 deletions cores/arduino/stm32/stm32_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
#include "stm32l1xx.h"
#elif defined(STM32L4xx)
#include "stm32l4xx.h"
#elif defined(STM32L5xx)
#include "stm32l5xx.h"
#elif defined(STM32MP1xx)
#include "stm32mp1xx.h"
#elif defined(STM32WBxx)
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 @@ -376,6 +376,10 @@
#define CMSIS_STARTUP_FILE "startup_stm32l4s7xx.s"
#elif defined(STM32L4S9xx)
#define CMSIS_STARTUP_FILE "startup_stm32l4s9xx.s"
#elif defined(STM32L552xx)
#define CMSIS_STARTUP_FILE "startup_stm32l552xx.s"
#elif defined(STM32L562xx)
#define CMSIS_STARTUP_FILE "startup_stm32l562xx.s"
#elif defined(STM32MP151Axx)
#define CMSIS_STARTUP_FILE "startup_stm32mp151a_cm4 .s"
#elif defined(STM32MP151Cxx)
Expand Down
Loading