From f89f7c4a82870d86dc8f31692fa5cc5cb652be1d Mon Sep 17 00:00:00 2001 From: Chris Pepper Date: Tue, 29 May 2018 01:38:22 +0100 Subject: [PATCH] [2.0.x][LPC176x][Build] Force single precision constants, disable freestanding (#10892) --- .../HAL/HAL_LPC1768/lpc1768_flag_script.py | 2 +- platformio.ini | 22 +------------------ 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py b/Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py index 53e5008984..2e0bfbe1fc 100644 --- a/Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py +++ b/Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py @@ -9,10 +9,10 @@ if __name__ == "__main__": "-mcpu=cortex-m3", "-mthumb", - "-ffreestanding", "-fsigned-char", "-fno-move-loop-invariants", "-fno-strict-aliasing", + "-fsingle-precision-constant", "--specs=nano.specs", "--specs=nosys.specs", diff --git a/platformio.ini b/platformio.ini index 0f4a6662c4..e677d19528 100644 --- a/platformio.ini +++ b/platformio.ini @@ -160,29 +160,9 @@ lib_extra_dirs = frameworks lib_deps = CMSIS-LPC1768 https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip TMC2130Stepper@>=2.2.1 -extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py, Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py +extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py, Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py src_filter = ${common.default_src_filter} monitor_speed = 250000 - -# -# LPC1768 (for debugging and development) -# -[env:LPC1768_debug_and_upload] -# Segger JLink -platform = nxplpc -#framework = mbed -board = lpc1768 -board_build.f_cpu = 100000000L -build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py - ${common.build_flags} - -DU8G_HAL_LINKS -lib_ldf_mode = off -lib_extra_dirs = frameworks -lib_deps = CMSIS-LPC1768 - https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip -src_filter = ${common.default_src_filter} -extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py -monitor_speed = 250000 debug_tool = custom debug_server = C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe