Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions workspace_tools/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
GCC_CW_PATH = "C:/Freescale/CW MCU v10.3/Cross_Tools/arm-none-eabi-gcc-4_6_2/bin"
EWL_LIB_PATH = "C:/Freescale/CW MCU v10.3/MCU/ARM_GCC_Support/ewl/lib"

# GCC float ABI
M4_FLOAT_ABI = "softfp"

try:
# Allow to overwrite the default settings without the need to edit the
# settings file stored in the repository
Expand Down
3 changes: 2 additions & 1 deletion workspace_tools/toolchains.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ def __init__(self, target, notify, tool_path):
self.cpu.append("-mthumb")

if target.core == "Cortex-M4":
self.cpu.append("-mfpu=vfp")
self.cpu.append("-mfpu=fpv4-sp-d16")
self.cpu.append("-mfloat-abi=%s" % M4_FLOAT_ABI)

# Note: We are using "-O2" instead of "-Os" to avoid this known GCC bug:
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46762
Expand Down