Which FreeRTOS library do you use? PlatformIO Registry
You can run in Terminal pio run -v
, it will show dependency graph.
The errors above mean that you didn’t build C/C++ files where these symbols are declared.
Thanks for your reply.
When I generated code, I used FREERTOS MiddleWares at “STM32CubeMX”.
I don’t know what to do… please help me.
$ pio run -v
Processing disco_l476vg (upload_protocol: stlink; build_flags: -I/Users/yura/Project/stmTest0_FreeRTOS/Inc, -I/Users/yura/Project/stmTest0_FreeRTOS/Middlewares/Third_Party/FreeRTOS/Source/include, -I/Users/yura/Project/stmTest0_FreeRTOS/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS, -I/Users/yura/Project/stmTest0_FreeRTOS/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F; lib_deps: FreeRTOS, 2319, FreeRTOS@8e57f3e9cc, # Using a library name, # … or using library Id, # … or depend on a specific version; debug_tool: stlink; platform: ststm32; board: disco_l476vg; framework: stm32cube)
Library Storage: /Users/yura/Project/stmTest0_FreeRTOS/.piolibdeps
LibraryManager: Installing id=2319
FreeRTOS @ 8e57f3e9cc is already installed
LibraryManager: Installing id=2319 @ 8e57f3e9cc
FreeRTOS @ 8e57f3e9cc is already installed
Looking for # Using a library name library in registry
Warning! Library {'requirements': None, 'name': '# Using a library name'}
has not been found in PlatformIO Registry.
You can ignore this message, if {'requirements': None, 'name': '# Using a library name'}
is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
Looking for # … or using library Id library in registry
Warning! Library {'requirements': None, 'name': '# ... or using library Id'}
has not been found in PlatformIO Registry.
You can ignore this message, if {'requirements': None, 'name': '# ... or using library Id'}
is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
Looking for # … or depend on a specific version library in registry
Warning! Library {'requirements': None, 'name': '# ... or depend on a specific version'}
has not been found in PlatformIO Registry.
You can ignore this message, if {'requirements': None, 'name': '# ... or depend on a specific version'}
is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
PLATFORM: ST STM32 > ST 32L476GDISCOVERY
SYSTEM: STM32L476VGT6 80MHz 128KB RAM (1MB Flash)
DEBUG: CURRENT(stlink) ON-BOARD(stlink) EXTERNAL(blackmagic, jlink)
Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Framework incompatible library /Users/yura/Project/stmTest0_FreeRTOS/.piolibdeps/FreeRTOS_ID2319
Framework incompatible library /Users/yura/Project/stmTest0_FreeRTOS/.piolibdeps/FreeRTOS_ID507
Framework incompatible library /Users/yura/Project/stmTest0_FreeRTOS/.piolibdeps/MultiClick_ID4248
Framework incompatible library /Users/yura/.platformio/lib/FreeRTOS_ID2319
Collected 0 compatible libraries
More details about “Library Compatibility Mode”: Redirecting...
Scanning dependencies…
No dependencies
arm-none-eabi-gcc -o .pioenvs/disco_l476vg/firmware.elf -T /Users/yura/.platformio/packages/framework-stm32cube/platformio/ldscripts/STM32L476VG_FLASH.ld -Os -Wl,–gc-sections,–relax -mthumb -mcpu=cortex-m4 --specs=nano.specs --specs=nosys.specs .pioenvs/disco_l476vg/src/freertos.o .pioenvs/disco_l476vg/src/main.o .pioenvs/disco_l476vg/src/stm32l4xx_hal_msp.o .pioenvs/disco_l476vg/src/stm32l4xx_it.o .pioenvs/disco_l476vg/src/system_stm32l4xx.o -L/Users/yura/.platformio/platforms/ststm32/ldscripts -L.pioenvs/disco_l476vg -L/Users/yura/.platformio/packages/framework-stm32cube/l4/Drivers/CMSIS/Lib/GCC -L/Users/yura/.platformio/packages/framework-stm32cube/platformio/ldscripts -Wl,–start-group -lc -lgcc -lm -lstdc++ -lnosys .pioenvs/disco_l476vg/libFrameworkHALDriver.a .pioenvs/disco_l476vg/libFrameworkCMSISDevice.a -Wl,–end-group
.pioenvs/disco_l476vg/src/main.o: In function StartDefaultTask': main.c:(.text.StartDefaultTask+0x4): undefined reference to
osDelay’
.pioenvs/disco_l476vg/src/main.o: In function main': main.c:(.text.startup.main+0xe8): undefined reference to
osThreadCreate’
main.c:(.text.startup.main+0xf0): undefined reference to osKernelStart' .pioenvs/disco_l476vg/src/stm32l4xx_it.o: In function
SysTick_Handler’:
stm32l4xx_it.c:(.text.SysTick_Handler+0xa): undefined reference to `osSystickHandler’
collect2: error: ld returned 1 exit status
*** [.pioenvs/disco_l476vg/firmware.elf] Error 1