enabled float printout for stm32

This commit is contained in:
2021-06-04 15:50:27 +02:00
parent f78d0c95d3
commit 9149b93b00
5 changed files with 10 additions and 4 deletions

View File

@ -163,6 +163,12 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
"-Wl,--gc-sections" "-Wl,--gc-sections"
) )
endif() endif()
if(TGT_BSP MATCHES "arm/stm32h743zi-nucleo")
target_link_options(${TARGET_NAME} PRIVATE
-Wl,--undefined,_printf_float -Wl,--undefined,_scanf_float
)
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
endif() endif()

View File

@ -28,7 +28,7 @@ ReturnValue_t STM32TestTask::performOneShotAction() {
void STM32TestTask::performSpiL3gd20hTest() { void STM32TestTask::performSpiL3gd20hTest() {
SPI_HandleTypeDef spiHandle = {}; SPI_HandleTypeDef spiHandle = {};
GyroL3GD20H gyroDevice(&spiHandle, spi::TransferModes::DMA); GyroL3GD20H gyroDevice(&spiHandle, spi::TransferModes::INTERRUPT);
gyroDevice.initialize(); gyroDevice.initialize();
gyroDevice.performOperation(); gyroDevice.performOperation();
} }

2
fsfw

Submodule fsfw updated: ad820fbe99...070c3f3bbf