Browse Source

Fix GTM32 environment (to prevent a crash)

Vertabreaker 4 years ago
parent
commit
b310047ded
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      platformio.ini

+ 3
- 2
platformio.ini View File

@@ -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…
Cancel
Save