mincrmatt12 / stm32-platformio-freertos Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
src_filter.append("-<croutine.c>" if "coroutines" not in extra_features else "+<croutine.c>")
src_filter.append("-<timers.c>" if "timers" not in extra_features else "+<timers.c>")
src_filter.append("-<event_groups.c>" if "event_groups" not in extra_features else "+<event_groups.c>")
src_filter.append("-<stream_buffer.c>" if "stream_buffers" not in extra_features else "+<stream_buffer.c>")
Unfortunately the sources accessible with custom_freertos_features
do not undergo compilation. Renaming the file fixes the problem.
May we perhaps simply compile all of it and remove the "features" logic?
Hello - I'm having trouble linking in your two libraries, i.e. this one and FreeRTOS.
Here's the platformio.ini
file I use:
[env:default]
platform = ststm32
framework = stm32cube
board = disco_f750n8
lib_deps = 6696, 6751
custom_lwip_opts_location = src/lwipopts.h
custom_freertos_config_location = src/FreeRTOSConfig.h
And here's the error output from PlatformIO:
Processing default (platform: ststm32; framework: stm32cube; board: disco_f750n8)
-------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/disco_f750n8.html
PLATFORM: ST STM32 (14.0.0) > STM32F7508-DK
HARDWARE: STM32F750N8H6 216MHz, 340KB RAM, 64KB Flash
DEBUG: Current (stlink) On-board (stlink) External (blackmagic, cmsis-dap, jlink)
PACKAGES:
- framework-stm32cubef7 1.16.0
- tool-ldscripts-ststm32 0.1.0
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 45 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <STM32Cube Middleware-FreeRTOS> 10.3.1+f4-1.26.1
|-- <STM32Cube Middleware-LwIP> 2.1.2+f4-1.26.1
| |-- <STM32Cube Middleware-FreeRTOS> 10.3.1+f4-1.26.1
Building in release mode
Compiling .pio/build/default/libccd/STM32Cube Middleware-FreeRTOS/portable/GCC/ARM_CM7/r0p1/port.o
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/api/err.o
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/api/if_api.o
/var/folders/vx/vjsygp690197n6zqfm35s5vc0000gn/T//ccI6freL.s: Assembler messages:
/var/folders/vx/vjsygp690197n6zqfm35s5vc0000gn/T//ccI6freL.s:342: Error: selected processor does not support `vstmdbeq r0!,{s16-s31}' in Thumb mode
/var/folders/vx/vjsygp690197n6zqfm35s5vc0000gn/T//ccI6freL.s:344: Error: instruction not allowed in IT block -- `stmdb r0!,{r4-r11,r14}'
/var/folders/vx/vjsygp690197n6zqfm35s5vc0000gn/T//ccI6freL.s:366: Error: selected processor does not support `vldmiaeq r0!,{s16-s31}' in Thumb mode
/var/folders/vx/vjsygp690197n6zqfm35s5vc0000gn/T//ccI6freL.s:368: Error: instruction not allowed in IT block -- `msr psp,r0'
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/api/netbuf.o
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/api/netdb.o
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/api/netifapi.o
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/api/sockets.o
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/api/tcpip.o
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/core/altcp.o
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/core/altcp_alloc.o
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/core/altcp_tcp.o
*** [.pio/build/default/libccd/STM32Cube Middleware-FreeRTOS/portable/GCC/ARM_CM7/r0p1/port.o] Error 1
Compiling .pio/build/default/libf2a/STM32Cube Middleware-LwIP/core/def.o
Not sure what's causing this - are the LwIP or FreeRTOS sources obsolete?
I tried to increase the custom_freertos_config_location setting on platformIO, but it doesn’t seem to work. I still can’t find FreeRTOSConfig.h. Can you give me an example of platformio.ini setting?
If anyone cannot build project, remember to change CMSIS V2 in STM32CubeMX to V1.
Thanks for sharing this. It looks like this will work out of the box for F767ZI as well. Splendid!
Have you considered tying into the FreeRTOS sources which are inside the PlatformIO package area? See: .platformio/packages/framework-stm32cubef7/Middlewares/Third_Party/FreeRTOS
. It'd avoid having to maintain a separate copy of FreeRTOS yourself.
FWIW, I tried using a symlink in lib/FreeRTOS
as follows, but that doesn't work (maybe PIO doesn't follow symlinks):
-> ../../../../.platformio/packages/framework-stm32cubef7/Middlewares/Third_Party/FreeRTOS/Source
Update - same comment w.r.t. your LwIP repository - I happen to be using both and am looking for a way to reduce code duplication and dependencies (to prevent potential long-term breakage).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.