Browse Source

[2.0.x][LPC176x][Build] Force single precision constants, disable freestanding (#10892)

Chris Pepper 6 years ago
parent
commit
f89f7c4a82
2 changed files with 2 additions and 22 deletions
  1. 1
    1
      Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  2. 1
    21
      platformio.ini

+ 1
- 1
Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py View File

@@ -9,10 +9,10 @@ if __name__ == "__main__":
9 9
                     "-mcpu=cortex-m3",
10 10
                     "-mthumb",
11 11
 
12
-                    "-ffreestanding",
13 12
                     "-fsigned-char",
14 13
                     "-fno-move-loop-invariants",
15 14
                     "-fno-strict-aliasing",
15
+                    "-fsingle-precision-constant",
16 16
 
17 17
                     "--specs=nano.specs",
18 18
                     "--specs=nosys.specs",

+ 1
- 21
platformio.ini View File

@@ -160,29 +160,9 @@ lib_extra_dirs    = frameworks
160 160
 lib_deps          = CMSIS-LPC1768
161 161
   https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
162 162
   TMC2130Stepper@>=2.2.1
163
-extra_scripts     = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py, Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
163
+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
164 164
 src_filter        = ${common.default_src_filter}
165 165
 monitor_speed     = 250000
166
-
167
-#
168
-# LPC1768 (for debugging and development)
169
-#
170
-[env:LPC1768_debug_and_upload]
171
-# Segger JLink
172
-platform          = nxplpc
173
-#framework        = mbed
174
-board             = lpc1768
175
-board_build.f_cpu = 100000000L
176
-build_flags       = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
177
-  ${common.build_flags}
178
-  -DU8G_HAL_LINKS
179
-lib_ldf_mode      = off
180
-lib_extra_dirs    = frameworks
181
-lib_deps          = CMSIS-LPC1768
182
-  https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
183
-src_filter        = ${common.default_src_filter}
184
-extra_scripts     =  Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
185
-monitor_speed     = 250000
186 166
 debug_tool        = custom
187 167
 debug_server      =
188 168
   C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe

Loading…
Cancel
Save