-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
bluepill_f103c8 cannot buil mbed-rtos without specific build_flags #15
Comments
Until we get official mbed-rtos porting guide consider this board is not rtos capable (only mbed-lib or "mbed classic"). I've been told earlier this year it has not enough flash memory to support rtos but things may have changed since then. Anyway, I will not begin porting rtos until porting guide is released. |
so - today i try few more coding with rtos - and i got why it is totally useless on BluePill - after creating simple (REALLY SIMPLE) application that runs 2 leds and send some message to serial - i went out of memory - so do some RTOS (mbed-rtos) on bluepill is totally useless. |
After merging mbed "classic" (or "mbed-lib") with mbed-os much of bloat has been introduced to the point that boards with less than 128KB flash are almost unusable, even if none of rtos features are used. Simple program that blinks onboard led and doing any communication over serial compiles to ~55KB firmware. I see no reasonable way out of this situation, the only solution would be to fork mbed classic from just before merge and maintain this unofficial fork, but considering the size of the framework it is not a "reasonable solution". Or is it? |
yup - totally agree - it totally useless - maybe it is time to look to some other Framework / RTOS. For such modules.. as I see there was some tickets (issues) about ChibiOS/RT, FreeRTOS & NuttX so would be nice to try something like that also for those uder128KB STM chips.. (i could try, but cannot find starting point, on how create new framework / lib ) |
first tip: second tip: For give to the user a very clean mbed experience, Platformio need two different framework: third tip: |
mbed-classic is not "merged" inside mbed-os. It is added to mbed-os, but it is a separate project. the official repository for mbed-classic is this, and it is updated 2 day ago to ver 130 An official platformio framework for mbed-classic need this repo, not the mbed-classic piece included on mbed-os. In this way Platformio will have two completely separate framework without confusion on version. |
if not set any build flag RTOS fail with error:
~/.platformio/packages/framework-mbed/rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h:609:2: error: #error "no target defined"
by looking what is inside that file i found closest
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38255605-bluepill_f103c8-cannot-buil-mbed-rtos-without-specific-build_flags?utm_campaign=plugin&utm_content=tracker%2F38219470&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38219470&utm_medium=issues&utm_source=github).TARGET_STM32F103RB
- so need to addbuild_flags = -D TARGET_STM32F103RB
inplatformio.ini
to be to be able build.The text was updated successfully, but these errors were encountered: