Hi anybody!
I have a trouble that prevents me from switching from Arduino to mbed under PlatformIO IDE. The problem is that any simple code compiles with mbed ten times longer than similar Arduino code.
For example the simplest code with 'Hello World'. It takes 5 seconds with Arduino and 40 seconds with mbed. If I enable RTOS with -D PIO_FRAMEWORK_MBED_RTOS_PRESENT macros then compilation takes even longer.
It seems that the compiler builds all the core mbed libraries anytime and with RTOS enabled it compiles also all the features.
I use Ryzen 7 with super fast PCIe SSD and 32Gb RAM and it is not possible to work with mbed. The same situation repeats with other computers I have (simple compilation at my laptop takes 20 minutes).
Here is the output of ordinary, not clean build:
Processing nucleo_f103rb (platform: ststm32; board: nucleo_f103rb; framework: mbed)
Verbose mode can be enabled via `-v, verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/nucleo_f103rb.html
PLATFORM: ST STM32 5.6.0 > ST Nucleo F103RB
HARDWARE: STM32F103RBT6 72MHz, 20KB RAM, 128KB Flash
DEBUG: Current (stlink) On-board (stlink) External (blackmagic, jlink)
PACKAGES: toolchain-gccarmnoneeabi 1.70201.0 (7.2.1), framework-mbed 5.51304.190826 (5.13.4)
Collecting mbed sources...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Checking size .pio\build\nucleo_f103rb\firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [===== ] 49.3% (used 10088 bytes from 20480 bytes)
PROGRAM: [===== ] 48.2% (used 63168 bytes from 131072 bytes)
[SUCCESS] Took 39.78 seconds
Everything looks fine except the compilation time.
Hi anybody!
I have a trouble that prevents me from switching from Arduino to mbed under PlatformIO IDE. The problem is that any simple code compiles with mbed ten times longer than similar Arduino code.
For example the simplest code with 'Hello World'. It takes 5 seconds with Arduino and 40 seconds with mbed. If I enable RTOS with -D PIO_FRAMEWORK_MBED_RTOS_PRESENT macros then compilation takes even longer.
It seems that the compiler builds all the core mbed libraries anytime and with RTOS enabled it compiles also all the features.
I use Ryzen 7 with super fast PCIe SSD and 32Gb RAM and it is not possible to work with mbed. The same situation repeats with other computers I have (simple compilation at my laptop takes 20 minutes).
Here is the output of ordinary, not clean build:
Processing nucleo_f103rb (platform: ststm32; board: nucleo_f103rb; framework: mbed) Verbose mode can be enabled via `-v,
verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/nucleo_f103rb.html PLATFORM: ST STM32 5.6.0 > ST Nucleo F103RB HARDWARE: STM32F103RBT6 72MHz, 20KB RAM, 128KB Flash DEBUG: Current (stlink) On-board (stlink) External (blackmagic, jlink) PACKAGES: toolchain-gccarmnoneeabi 1.70201.0 (7.2.1), framework-mbed 5.51304.190826 (5.13.4) Collecting mbed sources... LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 0 compatible libraries Scanning dependencies... No dependencies Checking size .pio\build\nucleo_f103rb\firmware.elf Memory Usage -> http://bit.ly/pio-memory-usage DATA: [===== ] 49.3% (used 10088 bytes from 20480 bytes) PROGRAM: [===== ] 48.2% (used 63168 bytes from 131072 bytes) [SUCCESS] Took 39.78 secondsEverything looks fine except the compilation time.