Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build STM32duino FreeRTOS with core version 4 or higher #2940

jtsdana opened this issue Aug 23, 2019 · 1 comment


Copy link

commented Aug 23, 2019

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.


Operating system:

PlatformIO Version (platformio --version):
version 4.0.1 using VSCode

Description of problem

I made an empty project using platformio with VSCode IDE plugin. I then tried bulilding it with core version 4.0.1 and it failed. I tried with a lower version and it worked PIO Core v3.6.7

Steps to Reproduce

  1. New Project -> Choose board: ST Nucleo F446RE
  2. Install library: STM32duino FreeRTOS
  3. Include in main.cpp :
    #include <STM32FreeRTOS.h>

Actual Results

Compiling .pio/build/nucleo_f446re/lib298/FreeRTOS_ID2319/Source/queue.c.o
/home/john/.platformio/lib/FreeRTOS_ID2319/Source/portable/RVDS/ARM_CM3/port.c:237:7: error: expected '(' before 'void'
 __asm void vPortSVCHandler( void )
/home/john/.platformio/lib/FreeRTOS_ID2319/Source/portable/RVDS/ARM_CM3/port.c:246:10: error: stray '#' in program
  mov r0, #0
/home/john/.platformio/lib/FreeRTOS_ID2319/Source/portable/RVDS/ARM_CM3/port.c:248:11: error: stray '#' in program
  orr r14, #0xd
/home/john/.platformio/lib/FreeRTOS_ID2319/Source/portable/RVDS/ARM_CM3/port.c:394:10: error: stray '#' in program
/home/john/.platformio/lib/FreeRTOS_ID2319/Source/portable/RVDS/ARM_CM3/port.c:397:10: error: stray '#' in program
  mov r0, #0
/home/john/.platformio/lib/FreeRTOS_ID2319/Source/portable/RVDS/ARM_CM3/port.c:612:10: error: stray '#' in program
/home/john/.platformio/lib/FreeRTOS_ID2319/Source/portable/RVDS/ARM_CM3/port.c:156:13: warning: 'prvStartFirstTask' declared 'static' but never defined [-Wunused-function]
 static void prvStartFirstTask( void );
/home/john/.platformio/lib/FreeRTOS_ID2319/Source/portable/RVDS/ARM_CM3/port.c:137:31: warning: 'uxCriticalNesting' defined but not used [-Wunused-variable]
 static unsigned portBASE_TYPE uxCriticalNesting = 0xaaaaaaaa;
Compiling .pio/build/nucleo_f446re/lib298/FreeRTOS_ID2319/Source/tasks.c.o
*** [.pio/build/nucleo_f446re/lib298/FreeRTOS_ID2319/Source/portable/RVDS/ARM_CM3/port.c.o] Error 1

Expected Results

Built correctly

If problems with PlatformIO Build System:

The content of platformio.ini:

;PlatformIO Project Configuration File
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
; Please visit documentation for the other options and examples

platform = ststm32
board = nucleo_f446re
framework = arduino
platform = ststm32
board = nucleo_f103rb
framework = arduino
lib_deps =
  # ... or depend on a specific version
  STM32duino FreeRTOS@9.0.4

Source file to reproduce issue:

#include <Arduino.h>

#include <STM32FreeRTOS.h>

void setup() {
  // put your setup code here, to run once:

void loop() {
  // put your main code here, to run repeatedly:

Additional info

I tried upgrading the core to version 4 and it failed in the same way. I tried to use another board that has been tested according to the library and it still fails.

@ivankravets ivankravets added this to the 4.0.2 milestone Aug 23, 2019

@ivankravets ivankravets referenced this issue Aug 23, 2019
1 of 1 task complete

This comment has been minimized.

Copy link

commented Aug 23, 2019

Thanks for the report! PIO Core 4.0.2 will be released in the next 10-20minutes.

@ivankravets ivankravets referenced this issue Aug 23, 2019
5 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.