Created by: nuket
Without this .mbedignore
file, the bulk of the ArduinoJson test/*
code gets pulled into the mbed OS build process, which causes the final firmware to be too large for the target processor, since most off-the-shelf embedded processors have somewhere between 128 - 256KB of flash.
When running mbed compile
without this file, the linker errors out unhappily:
./mbed-os/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld:142 cannot move location counter backwards (from 0000000020007fe0 to 0000000020007800) collect2: error: ld returned 1 exit status [ERROR] ./mbed-os/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld:142 cannot move location counter backwards (from 0000000020007fe0 to 0000000020007800) collect2: error: ld returned 1 exit status
With the .mbedignore
file, everything is fine.
I also reported this issue as - https://github.com/ARMmbed/mbed-os/issues/2467