platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
393 stars 307 forks source link

missing arm_math.h #458

Closed caiosignor closed 3 years ago

caiosignor commented 3 years ago

Hi, I've reinstalled the platformio-vscode-ide and now, i'm getting some issues compiling a CubeMX generated code for my custom genericSTM32F373RC board. The problem is: "fatal error: arm_math.h: No such file or directory" which dosn't occur before.

environment:

The platformio.ini file:

platform = ststm32
board = genericSTM32F373RC
framework = stm32cube
build_flags =
    -std=c++11
    -IInc
    -Wl,-u_printf_float
    -l arm_cortexM4l_math
    -D ARM_MATH_CM4
    -D MODO_CONFIGURACAO
    -D COM_CONECTORES_ECG

the genericSTM32F373RC.json file

{
  "build": {
    "core": "stm32",
    "cpu": "cortex-m4",
    "extra_flags": "-DSTM32F3 -DSTM32F373xC",
    "f_cpu": "72000000L",
    "mcu": "stm32f373rct6",
    "product_line": "STM32F373xC"
  },
  "connectivity": [
    "can"
  ],
  "debug": {
    "jlink_device": "STM32F373RC",
    "openocd_target": "stm32f3x",
    "svd_path": "STM32F37x.svd"
  },
  "frameworks": [
    "cmsis",
    "stm32cube"
  ],
  "name": "STM32F373RC (32k RAM. 256k Flash)",
  "upload": {
    "maximum_ram_size": 32768,
    "maximum_size": 262144,
    "protocol": "stlink",
    "protocols": [
      "jlink",
      "stlink",
      "blackmagic"
    ]
  },
  "url": "https://www.st.com/en/microcontrollers/stm32f373rc.html",
  "vendor": "Generic"
}

i tried to downgrade platformio-vscode-ide to v2.0.0, but the same occur

can anyone help-me?

valeros commented 3 years ago

Thanks for reporting, fixed! Will be available in the upcoming platform release.