Skip to content

Commit

Permalink
adjust variant
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Oct 1, 2022
1 parent f57516f commit fa97ab4
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@
#elif MB(FYSETC_SPIDER_KING407)
#include "stm32f4/pins_FYSETC_SPIDER_KING407.h" // STM32F4 env:FYSETC_SPIDER_KING407
#elif MB(TRONXY_V10)
#include "stm32f4/pins_TRONXY_F446.h" //STM32F4 env:tronxy_stm32f446
#include "stm32f4/pins_TRONXY_F446.h" // STM32F4 env:STM32F446_tronxy

//
// ARM Cortex M7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"extra_flags": "-DSTM32F446xx",
"f_cpu": "180000000L",
"mcu": "stm32f446zet6",
"variant": "MARLIN_TRONXY_STM32f446Z"
"variant": "MARLIN_F446Zx_TRONXY"
},
"connectivity": [
"can"
Expand Down
8 changes: 3 additions & 5 deletions ini/stm32f4.ini
Original file line number Diff line number Diff line change
Expand Up @@ -688,16 +688,14 @@ debug_tool = stlink
#
# STM32F446ZET6 ARM Cortex-M4
#
[env:tronxy_stm32f446]
[env:STM32F446_tronxy]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_tronxy_stm32f446zet
board = marlin_STM32F446ZET_tronxy
board_build.offset = 0x10000
board_build.ldscript = buildroot/share/PlatformIO/variants/MARLIN_TRONXY_STM32f446Z/ldscript.ld
board_build.rename = fmw_tronxy.bin
build_src_filter = ${common_stm32.build_src_filter}
build_flags = ${stm32_variant.build_flags}
-DSTM32F4xx
build_unflags = ${stm32_variant.build_unflags} -fno-rtti
-DUSBCON ;disable arduino use serial
-DUSBD_USE_CDC ;disable arduino usb hook
-DUSBCON -DUSBD_USE_CDC

0 comments on commit fa97ab4

Please sign in to comment.