Skip to content

Commit e8eef33

Browse files
author
kmshim
committed
Fix for GCC build
Fix compiler error "NNNN.a uses VFP register arguments" when building 4.4 using GCC. This has been suggested by @Roceh in issue NETMF#335. I've sucessfully build STM32F4DISCOVERY and MCBSTM32F400_NONET. Tested STM32F4DISCOVERY on real hardware and it seems to work OK. Couldn't test the MCBSTM32F400_NONET because I don't have that board. Fix-for-GCC-build (NETMF#341)
1 parent eb4596e commit e8eef33

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Solutions/MCBSTM32F400/MCBSTM32F400.settings

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
<IsSolutionWizardVisible>True</IsSolutionWizardVisible>
1414
<ENDIANNESS>le</ENDIANNESS>
1515
<NO_BOOTLOADER_COMPRESSION>true</NO_BOOTLOADER_COMPRESSION>
16-
<TCP_IP_STACK>LWIP_1_4_1_OS</TCP_IP_STACK>
16+
<TCP_IP_STACK>LWIP_1_4_1_OS</TCP_IP_STACK>
17+
<PLATFORM_EMULATED_FLOATINGPOINT Condition="'$(COMPILER_TOOL)'=='GCC'">true</PLATFORM_EMULATED_FLOATINGPOINT>
1718
</PropertyGroup>
1819
<PropertyGroup>
1920
<OEMSystemInfoString>Copyright (C) Microsoft Corporation</OEMSystemInfoString>
@@ -26,4 +27,4 @@
2627
<Import Project="$(SPOCLIENT)\devicecode\Targets\Native\STM32F4\STM32F4.settings" />
2728
<!-- This must be imported after the native build settings as it overrides the TARGETCODEBASE and Target type-->
2829
<Import Project="$(SPOCLIENT)\devicecode\Targets\OS\CMSIS_RTOS\CMSIS_RTOS.settings" Condition="'$(reducesize)' == 'false' AND '$(TCP_IP_STACK)'=='LWIP_1_4_1_OS'"/>
29-
</Project>
30+
</Project>

Solutions/MCBSTM32F400/MCBSTM32F400_NONET.settings

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
<PLATFORM>MCBSTM32F400</PLATFORM>
1313
<IsSolutionWizardVisible>True</IsSolutionWizardVisible>
1414
<ENDIANNESS>le</ENDIANNESS>
15-
<NO_BOOTLOADER_COMPRESSION>true</NO_BOOTLOADER_COMPRESSION>
15+
<NO_BOOTLOADER_COMPRESSION>true</NO_BOOTLOADER_COMPRESSION>
16+
<PLATFORM_EMULATED_FLOATINGPOINT Condition="'$(COMPILER_TOOL)'=='GCC'">true</PLATFORM_EMULATED_FLOATINGPOINT>
1617
</PropertyGroup>
1718
<PropertyGroup>
1819
<OEMSystemInfoString>Copyright (C) Microsoft .NET Foundation</OEMSystemInfoString>
@@ -22,4 +23,4 @@
2223
<IncludePaths Include="Solutions\MCBSTM32F400" />
2324
</ItemGroup>
2425
<Import Project="$(SPOCLIENT)\devicecode\Targets\Native\STM32F4\STM32F4.settings" />
25-
</Project>
26+
</Project>

Solutions/STM32F4DISCOVERY/STM32F4DISCOVERY.settings

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<IsSolutionWizardVisible>True</IsSolutionWizardVisible>
1717
<ENDIANNESS>le</ENDIANNESS>
1818
<NO_BOOTLOADER_COMPRESSION>true</NO_BOOTLOADER_COMPRESSION>
19+
<PLATFORM_EMULATED_FLOATINGPOINT Condition="'$(COMPILER_TOOL)'=='GCC'">true</PLATFORM_EMULATED_FLOATINGPOINT>
1920
</PropertyGroup>
2021
<PropertyGroup>
2122
<!-- FIXME: Replaced with an appropriate value. -->
@@ -25,4 +26,4 @@
2526
<IncludePaths Include="Solutions\STM32F4DISCOVERY" />
2627
</ItemGroup>
2728
<Import Project="$(SPOCLIENT)\devicecode\Targets\Native\STM32F4\STM32F4.settings" />
28-
</Project>
29+
</Project>

0 commit comments

Comments
 (0)