Closed dolfandringa closed 3 years ago
I am working on a resolution for this issue, and any other platformio related fixes in https://github.com/dolfandringa/Arduino_Core_STM32/tree/feature/support_stm32wl55jc1_on_platformio
Hi @dolfandringa We do not support PIO here. Moreover there is no FPU for the STM32WL. For coretx M4, Floating-Point Unit (FPU) is optional, see: https://www.st.com/content/st_com/en/arm-32-bit-microcontrollers/arm-cortex-m4.html
CMSIS define is correct.
There is a bug in your repository in https://github.com/stm32duino/Arduino_Core_STM32/blob/master/tools/platformio/platformio-build.py. That is a file you are clearlyt maintaining, since it is in this repository, and I am very happy to help with a fix.
There is a bug in your repository in https://github.com/stm32duino/Arduino_Core_STM32/blob/master/tools/platformio/platformio-build.py. That is a file you are clearlyt maintaining, since it is in this repository, and I am very happy to help with a fix.
In fact no, it was provided by @valeros from pio to allow CI build that's all. 😉
yes, but it is in your repository, so can only be fixed there, right? Who maintains that file? it is 1-1 in the pio framework-arduinoststm32, which includes your full repository.
Honestly, I thought it was only used for the CI PIO build not by the framework itself. Hi @valeros please could you comment on this? Thanks in advance.
Hi @dolfandringa We do not support PIO here. Moreover there is no FPU for the STM32WL. For coretx M4, Floating-Point Unit (FPU) is optional, see: https://www.st.com/content/st_com/en/arm-32-bit-microcontrollers/arm-cortex-m4.html
CMSIS define is correct.
Thanks for clarifying that there is NO FPU in STM32WL core here. I misconceived that FPU is implemented in every STM32 CM4 microcontroller. For in PM0214 STM32 Cortex®-M4 MCUs and MPUs programming manual, section 1.3.3, it's written: "IEEE754-compliant single-precision FPU implemented in all STM32 Cortex-M4 microcontrollers". That made me conceive that every ST's CM4 core has FPU implemented.
Describe the bug See also https://www.stm32duino.com/viewtopic.php?p=8039#p8039
When compiling code for the Nucleo STM32WL55JC1 with the Arduino Core STM32 v2.0.0, platformio automatically adds the
-mfpu=fpv4-sp-d16", "-mfloat-abi=hard
options because the mcu is defined as cortex-m4. This results in an error because the CMSIS driver defines__FPU_PRESENT=0
.To Reproduce
pio run
to compile the code.platformio.ini
src/main.cpp
this results in the following error:
Expected behavior The code should compile correctly.
Desktop (please complete the following information):
Board (please complete the following information):