- Notifications
You must be signed in to change notification settings - Fork1k
Add SparkFun MicroMod STM32F405#1987
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
23 commits Select commitHold shift + click to select a range
cfd236c
feat:add support for SparkFun MicroMod STM32F405
bsatrom2f9ff6d
add board to README
bsatrom4be7f9e
tweak:add series to boards.txt
bsatromec51486
fix formatting issues from astyle check
bsatromeb3a7c8
Update README.md
bsatrom85232db
Update variants/STM32F4xx/F405RGT_F415RGT/variant_MICROMOD_F405.h
bsatromb74bb7c
name analog pins
bsatrom26aed3e
fix README TOC
bsatrom1d34a57
simplify boards.txt
bsatromeb29528
Update boards.txt
bsatrom4353450
Update boards.txt
bsatrome917216
Update boards.txt
bsatrom85d17a6
Update boards.txt
bsatrom69594a3
Update variants/STM32F4xx/F405RGT_F415RGT/variant_MICROMOD_F405.h
bsatrom340c11b
Update variants/STM32F4xx/F405RGT_F415RGT/variant_MICROMOD_F405.h
bsatrom7da1da8
add empty line back to README
bsatromca0877e
add empty line back to README
bsatromadad150
update PerhiperalPins based on updated generic base
bsatrom4a3c94f
final README formatting fix
bsatrom0a97cab
fix inadvertant ! in #if on PeripheralPins
bsatrom9af771f
Update variants/STM32F4xx/F405RGT_F415RGT/variant_MICROMOD_F405.h
bsatromd72d0f1
Update boards.txt
bsatrom761c4d1
update cmake files via cmake_updater_hook.py
bsatromFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletionsCI/build/conf/cores_config.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -287,6 +287,7 @@ | ||
"MALYANM200_F103CB", | ||
"MALYANM300_F070CB", | ||
"MAPLEMINI_F103CB", | ||
"MICROMOD_F405", | ||
fpistm marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
"NUCLEO_F031K6", | ||
"NUCLEO_L031K6", | ||
"NUCLEO_L412KB", | ||
1 change: 1 addition & 0 deletionsREADME.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletionsboards.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3698,6 +3698,18 @@ GenF4.menu.pnum.FEATHER_F405.build.variant_h=variant_{build.board}.h | ||
GenF4.menu.pnum.FEATHER_F405.build.variant=STM32F4xx/F405RGT_F415RGT | ||
GenF4.menu.pnum.FEATHER_F405.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS | ||
# SparkFun MicroMod STM32F405 board | ||
GenF4.menu.pnum.MICROMOD_F405=SparkFun MicroMod STM32F405 | ||
GenF4.menu.pnum.MICROMOD_F405.upload.maximum_size=1048576 | ||
GenF4.menu.pnum.MICROMOD_F405.upload.maximum_data_size=131072 | ||
GenF4.menu.pnum.MICROMOD_F405.build.board=MICROMOD_F405 | ||
GenF4.menu.pnum.MICROMOD_F405.build.product_line=STM32F405xx | ||
GenF4.menu.pnum.MICROMOD_F405.build.variant_h=variant_{build.board}.h | ||
GenF4.menu.pnum.MICROMOD_F405.build.variant=STM32F4xx/F405RGT_F415RGT | ||
GenF4.menu.pnum.MICROMOD_F405.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS | ||
GenF4.menu.pnum.MICROMOD_F405.build.vid=0x1B4F | ||
GenF4.menu.pnum.MICROMOD_F405.build.pid=0x0029 | ||
bsatrom marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
# ThunderPack F411xxE | ||
# https://github.com/jgillick/ThunderPack/tree/STM32F4 | ||
GenF4.menu.pnum.THUNDERPACK_F411=ThunderPack v1.1+ | ||
130 changes: 130 additions & 0 deletionscmake/boards_db.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -97836,6 +97836,136 @@ target_link_libraries(MAPLEMINI_F103CB_hid INTERFACE | ||
) | ||
# MICROMOD_F405 | ||
bsatrom marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
# ----------------------------------------------------------------------------- | ||
set(MICROMOD_F405_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32F4xx/F405RGT_F415RGT") | ||
set(MICROMOD_F405_MAXSIZE 1048576) | ||
set(MICROMOD_F405_MAXDATASIZE 131072) | ||
set(MICROMOD_F405_MCU cortex-m4) | ||
set(MICROMOD_F405_FPCONF "-") | ||
add_library(MICROMOD_F405 INTERFACE) | ||
target_compile_options(MICROMOD_F405 INTERFACE | ||
"SHELL:-DSTM32F405xx " | ||
"SHELL:-DCUSTOM_PERIPHERAL_PINS" | ||
"SHELL:" | ||
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" | ||
-mcpu=${MICROMOD_F405_MCU} | ||
) | ||
target_compile_definitions(MICROMOD_F405 INTERFACE | ||
"STM32F4xx" | ||
"ARDUINO_MICROMOD_F405" | ||
"BOARD_NAME=\"MICROMOD_F405\"" | ||
"BOARD_ID=MICROMOD_F405" | ||
"VARIANT_H=\"variant_MICROMOD_F405.h\"" | ||
) | ||
target_include_directories(MICROMOD_F405 INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/../system/STM32F4xx | ||
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32F4xx_HAL_Driver/Inc | ||
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32F4xx_HAL_Driver/Src | ||
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/ | ||
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/ | ||
${MICROMOD_F405_VARIANT_PATH} | ||
) | ||
target_link_options(MICROMOD_F405 INTERFACE | ||
"LINKER:--default-script=${MICROMOD_F405_VARIANT_PATH}/ldscript.ld" | ||
"LINKER:--defsym=LD_FLASH_OFFSET=0" | ||
"LINKER:--defsym=LD_MAX_SIZE=1048576" | ||
"LINKER:--defsym=LD_MAX_DATA_SIZE=131072" | ||
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" | ||
-mcpu=${MICROMOD_F405_MCU} | ||
) | ||
target_link_libraries(MICROMOD_F405 INTERFACE | ||
arm_cortexM4lf_math | ||
) | ||
add_library(MICROMOD_F405_serial_disabled INTERFACE) | ||
target_compile_options(MICROMOD_F405_serial_disabled INTERFACE | ||
"SHELL:" | ||
) | ||
add_library(MICROMOD_F405_serial_generic INTERFACE) | ||
target_compile_options(MICROMOD_F405_serial_generic INTERFACE | ||
"SHELL:-DHAL_UART_MODULE_ENABLED" | ||
) | ||
add_library(MICROMOD_F405_serial_none INTERFACE) | ||
target_compile_options(MICROMOD_F405_serial_none INTERFACE | ||
"SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" | ||
) | ||
add_library(MICROMOD_F405_usb_CDC INTERFACE) | ||
target_compile_options(MICROMOD_F405_usb_CDC INTERFACE | ||
"SHELL:-DUSBCON -DUSBD_VID=0x1B4F -DUSBD_PID=0x0029 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" | ||
) | ||
add_library(MICROMOD_F405_usb_CDCgen INTERFACE) | ||
target_compile_options(MICROMOD_F405_usb_CDCgen INTERFACE | ||
"SHELL:-DUSBCON -DUSBD_VID=0x1B4F -DUSBD_PID=0x0029 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" | ||
) | ||
add_library(MICROMOD_F405_usb_HID INTERFACE) | ||
target_compile_options(MICROMOD_F405_usb_HID INTERFACE | ||
"SHELL:-DUSBCON -DUSBD_VID=0x1B4F -DUSBD_PID=0x0029 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" | ||
) | ||
add_library(MICROMOD_F405_usb_none INTERFACE) | ||
target_compile_options(MICROMOD_F405_usb_none INTERFACE | ||
"SHELL:" | ||
) | ||
add_library(MICROMOD_F405_xusb_FS INTERFACE) | ||
target_compile_options(MICROMOD_F405_xusb_FS INTERFACE | ||
"SHELL:" | ||
) | ||
add_library(MICROMOD_F405_xusb_HS INTERFACE) | ||
target_compile_options(MICROMOD_F405_xusb_HS INTERFACE | ||
"SHELL:-DUSE_USB_HS" | ||
) | ||
add_library(MICROMOD_F405_xusb_HSFS INTERFACE) | ||
target_compile_options(MICROMOD_F405_xusb_HSFS INTERFACE | ||
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS" | ||
) | ||
# MICROMOD_F405_hid | ||
# ----------------------------------------------------------------------------- | ||
set(MICROMOD_F405_hid_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32F4xx/F405RGT_F415RGT") | ||
set(MICROMOD_F405_hid_MAXSIZE 1048576) | ||
set(MICROMOD_F405_hid_MAXDATASIZE 131072) | ||
set(MICROMOD_F405_hid_MCU cortex-m4) | ||
set(MICROMOD_F405_hid_FPCONF "-") | ||
add_library(MICROMOD_F405_hid INTERFACE) | ||
target_compile_options(MICROMOD_F405_hid INTERFACE | ||
"SHELL:-DSTM32F405xx -DHAL_UART_MODULE_ENABLED -DBL_HID -DVECT_TAB_OFFSET=0x4000" | ||
"SHELL:-DCUSTOM_PERIPHERAL_PINS" | ||
"SHELL:" | ||
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" | ||
-mcpu=${MICROMOD_F405_hid_MCU} | ||
) | ||
target_compile_definitions(MICROMOD_F405_hid INTERFACE | ||
"STM32F4xx" | ||
"ARDUINO_MICROMOD_F405" | ||
"BOARD_NAME=\"MICROMOD_F405\"" | ||
"BOARD_ID=MICROMOD_F405" | ||
"VARIANT_H=\"variant_MICROMOD_F405.h\"" | ||
) | ||
target_include_directories(MICROMOD_F405_hid INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/../system/STM32F4xx | ||
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32F4xx_HAL_Driver/Inc | ||
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32F4xx_HAL_Driver/Src | ||
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/ | ||
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/ | ||
${MICROMOD_F405_hid_VARIANT_PATH} | ||
) | ||
target_link_options(MICROMOD_F405_hid INTERFACE | ||
"LINKER:--default-script=${MICROMOD_F405_hid_VARIANT_PATH}/ldscript.ld" | ||
"LINKER:--defsym=LD_FLASH_OFFSET=0x4000" | ||
"LINKER:--defsym=LD_MAX_SIZE=1048576" | ||
"LINKER:--defsym=LD_MAX_DATA_SIZE=131072" | ||
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard" | ||
-mcpu=${MICROMOD_F405_hid_MCU} | ||
) | ||
target_link_libraries(MICROMOD_F405_hid INTERFACE | ||
arm_cortexM4lf_math | ||
) | ||
# MKR_SHARKY | ||
# ----------------------------------------------------------------------------- | ||
1 change: 1 addition & 0 deletionstools/platformio/boards_remap.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletionsvariants/STM32F4xx/F405RGT_F415RGT/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.