Skip to content

Commit

Permalink
Merge pull request #2043 from fpistm/STEVAL_MKBOXPRO
Browse files Browse the repository at this point in the history
variant(): add STEVAL-MKBOXPRO (SensorTile.box Pro)
  • Loading branch information
fpistm committed Jun 16, 2023
2 parents 2051307 + 38614e4 commit d5cd171
Show file tree
Hide file tree
Showing 7 changed files with 1,276 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
| Status | Device(s) | Name | Release | Notes |
| :----: | :-------: | ---- | :-----: | :---- |
| :green_heart: | STM32L4R9ZI | [STEVAL-MKSBOX1V1 (SensorTile.box)](https://www.st.com/en/evaluation-tools/steval-mksbox1v1.html) | *1.7.0* | |
| :yellow_heart: | STM32U585AIIxQ | [STEVAL-MKBOXPRO (SensorTile.box Pro)](https://www.st.com/en/evaluation-tools/steval-mkboxpro.html) | **2.6.0** | |

### [STM32MP1 series coprocessor](https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-arm-cortex-mpus/stm32mp1-series.html) boards

Expand Down
14 changes: 14 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,20 @@ Eval.menu.pnum.STEVAL_MKSBOX1V1.build.variant=STM32L4xx/L4R9Z(G-I)J_L4S9ZIJ
Eval.menu.pnum.STEVAL_MKSBOX1V1.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
Eval.menu.pnum.STEVAL_MKSBOX1V1.build.cmsis_lib_gcc=arm_cortexM4lf_math

# STEVAL_MKBOXPRO board
Eval.menu.pnum.STEVAL_MKBOXPRO=SensorTile.box Pro
Eval.menu.pnum.STEVAL_MKBOXPRO.upload.maximum_size=2097152
Eval.menu.pnum.STEVAL_MKBOXPRO.upload.maximum_data_size=262144
Eval.menu.pnum.STEVAL_MKBOXPRO.build.mcu=cortex-m33
Eval.menu.pnum.STEVAL_MKBOXPRO.build.fpu=-mfpu=fpv4-sp-d16
Eval.menu.pnum.STEVAL_MKBOXPRO.build.float-abi=-mfloat-abi=hard
Eval.menu.pnum.STEVAL_MKBOXPRO.build.board=STEVAL_MKBOXPRO
Eval.menu.pnum.STEVAL_MKBOXPRO.build.series=STM32U5xx
Eval.menu.pnum.STEVAL_MKBOXPRO.build.product_line=STM32U585xx
Eval.menu.pnum.STEVAL_MKBOXPRO.build.variant=STM32U5xx/U575A(G-I)IxQ_U585AIIxQ
Eval.menu.pnum.STEVAL_MKBOXPRO.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
Eval.menu.pnum.STEVAL_MKBOXPRO.build.cmsis_lib_gcc=arm_ARMv8MMLlfsp_math

# Upload menu
Eval.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
Eval.menu.upload_method.swdMethod.upload.protocol=0
Expand Down
85 changes: 85 additions & 0 deletions cmake/boards_db.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105970,6 +105970,91 @@ target_compile_options(ST3DP001_EVAL_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# STEVAL_MKBOXPRO
# -----------------------------------------------------------------------------

set(STEVAL_MKBOXPRO_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32U5xx/U575A(G-I)IxQ_U585AIIxQ")
set(STEVAL_MKBOXPRO_MAXSIZE 2097152)
set(STEVAL_MKBOXPRO_MAXDATASIZE 262144)
set(STEVAL_MKBOXPRO_MCU cortex-m33)
set(STEVAL_MKBOXPRO_FPCONF "fpv4-sp-d16-hard")
add_library(STEVAL_MKBOXPRO INTERFACE)
target_compile_options(STEVAL_MKBOXPRO INTERFACE
"SHELL:-DSTM32U585xx "
"SHELL:-DCUSTOM_PERIPHERAL_PINS"
"SHELL:"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${STEVAL_MKBOXPRO_MCU}
)
target_compile_definitions(STEVAL_MKBOXPRO INTERFACE
"STM32U5xx"
"ARDUINO_STEVAL_MKBOXPRO"
"BOARD_NAME=\"STEVAL_MKBOXPRO\""
"BOARD_ID=STEVAL_MKBOXPRO"
"VARIANT_H=\"variant_STEVAL_MKBOXPRO.h\""
)
target_include_directories(STEVAL_MKBOXPRO INTERFACE
${CMAKE_CURRENT_LIST_DIR}/../system/STM32U5xx
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U5xx_HAL_Driver/Inc
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U5xx_HAL_Driver/Src
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U5xx/Include/
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U5xx/Source/Templates/gcc/
${STEVAL_MKBOXPRO_VARIANT_PATH}
)

target_link_options(STEVAL_MKBOXPRO INTERFACE
"LINKER:--default-script=${STEVAL_MKBOXPRO_VARIANT_PATH}/ldscript.ld"
"LINKER:--defsym=LD_FLASH_OFFSET=0x0"
"LINKER:--defsym=LD_MAX_SIZE=2097152"
"LINKER:--defsym=LD_MAX_DATA_SIZE=262144"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${STEVAL_MKBOXPRO_MCU}
)
target_link_libraries(STEVAL_MKBOXPRO INTERFACE
arm_ARMv8MMLlfsp_math
)

add_library(STEVAL_MKBOXPRO_serial_disabled INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_serial_disabled INTERFACE
"SHELL:"
)
add_library(STEVAL_MKBOXPRO_serial_generic INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_serial_generic INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED"
)
add_library(STEVAL_MKBOXPRO_serial_none INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_serial_none INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE"
)
add_library(STEVAL_MKBOXPRO_usb_CDC INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_usb_CDC INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB"
)
add_library(STEVAL_MKBOXPRO_usb_CDCgen INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_usb_CDCgen INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC"
)
add_library(STEVAL_MKBOXPRO_usb_HID INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_usb_HID INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE"
)
add_library(STEVAL_MKBOXPRO_usb_none INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_usb_none INTERFACE
"SHELL:"
)
add_library(STEVAL_MKBOXPRO_xusb_FS INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_xusb_FS INTERFACE
"SHELL:"
)
add_library(STEVAL_MKBOXPRO_xusb_HS INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_xusb_HS INTERFACE
"SHELL:-DUSE_USB_HS"
)
add_library(STEVAL_MKBOXPRO_xusb_HSFS INTERFACE)
target_compile_options(STEVAL_MKBOXPRO_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# STEVAL_MKSBOX1V1
# -----------------------------------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions variants/STM32U5xx/U575A(G-I)IxQ_U585AIIxQ/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ add_library(variant_bin STATIC EXCLUDE_FROM_ALL
generic_clock.c
PeripheralPins.c
PeripheralPins_B_U585I_IOT02A.c
PeripheralPins_STEVAL_MKBOXPRO.c
variant_B_U585I_IOT02A.cpp
variant_generic.cpp
variant_STEVAL_MKBOXPRO.cpp
)
target_link_libraries(variant_bin PUBLIC variant_usage)

Expand Down
Loading

0 comments on commit d5cd171

Please sign in to comment.