-
Notifications
You must be signed in to change notification settings - Fork 18
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
build_unflags not working on "libs" directories (rtos, USB, etc) #13
Comments
Could you try upstream version? https://docs.platformio.org/en/latest/platforms/ststm32.html We updated mbed builder but has not been released it yet |
Thanks, that works! |
We switched to official mbed-OS source files provider to be maximum compatible with their builder and add support for mbed_app.json. |
Hi Ivan, |
@valeros is it possible? |
Hi @stefaandesmet2003 ! I'm not sure whether it's possible to disable particular parts of the framework using the configuration file, but at least you can try to remove unused folders by adding a special empty file |
Hi @valeros . Where would the .mbedignore file be added? |
Hi @rijesha! You need to add this file to each directory you want to ignore. The framework package is located here: |
Not working for me. Thanks, regards. |
@didi110296 What exactly do you want to omit? Have you tried adding directory names or |
@valeros Thank you for you reply, I've tried to do that, i've put Here : But platformio continue compiling all components and features ...
|
You need to put this file explicitly in the folder you want to ignore as we build all parts separately:
|
Good that work, thank you 👍 |
I created a simple python script which can be executed from the pre-script. See https://github.com/KKoovalsky/PlatformIO-Helpers. It puts Can be used across multiple projects. |
@valeros I tried to put file .mbedignore as you mention but the pio still include those folder/file Any ideas? |
Hi,
I'm using the platformIO extension in VS Code, and building a debug version of the mbed-rtos example code, using the platformio.ini below, setting extra debug flags, and unsetting the defaults.
The flags are applied to the "core" files, main.c etc, but not to the "rtos" files. As a result I cannot properly debug into these files.
In BLUEPILL_F103C8.json these files are under the "libs" element.
The same behavior occurs with the USBDevice files, which are also under "libs" (that's how i came across this problem; I was playing around with the USBDevice stack on bluepill and needed debugging on the usb files).
[env:bluepill_f103c8_debug]
platform = ststm32
framework = mbed
board = bluepill_f103c8
build_flags = -DPIO_FRAMEWORK_MBED_RTOS_PRESENT, -g3, -Og
build_unflags = -Os, -O1, -O2, -O3, -g1
excerpt from the verbose build :
arm-none-eabi-g++ -o .pioenvs/bluepill_f103c8_debug/lib7ec/rtos/ThisThread.o -c -std=gnu++98 -fno-rtti -Wvla -g3 -Og -mcpu=cortex-m3 -mthumb -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -DNDEBUG -g1 -include mbed_config.h -DPLATFORMIO=30604 ...
arm-none-eabi-g++ -o .pioenvs/bluepill_f103c8_debug/lib7ec/rtos/Thread.o -c -std=gnu++98 -fno-rtti -Wvla -g3 -Og -mcpu=cortex-m3 -mthumb -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -DNDEBUG -g1 -include mbed_config.h -DPLATFORMIO=30604 ...
arm-none-eabi-g++ -o .pioenvs/bluepill_f103c8_debug/src/main.o -c -std=gnu++98 -fno-rtti -Wvla -g3 -Og -mcpu=cortex-m3 -mthumb -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -DNDEBUG -include mbed_config.h -DPLATFORMIO=30604 ...
The text was updated successfully, but these errors were encountered: