瀏覽代碼

Fix GTM32 environment (to prevent a crash)

Vertabreaker 4 年之前
父節點
當前提交
b310047ded
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      platformio.ini

+ 3
- 2
platformio.ini 查看文件

@@ -442,8 +442,9 @@ src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32>
442 442
 platform        = ststm32
443 443
 board           = genericSTM32F103VE
444 444
 build_flags     = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
445
-  ${common.build_flags} -std=gnu++14
446
-build_unflags   = -std=gnu++11
445
+  ${common.build_flags} -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib
446
+  -DBOARD_generic_stm32f103v -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1
447
+  -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
447 448
 src_filter      = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
448 449
 lib_ignore      = Adafruit NeoPixel, LiquidTWI2, SPI
449 450
 upload_protocol = serial

Loading…
取消
儲存