RedBearLab / nRF51822-Arduino

Moved to https://github.com/redbear/nRF5x
251 stars 109 forks source link

Missing link to "mbed.h" in "Arduino.h" #34

Open PKChionh opened 8 years ago

PKChionh commented 8 years ago

Tested "Blink.ino", unable to link "mbed.h". Appreciate your advice. Thx

Arduino: 1.6.5 (Windows 7), Board: "RBL nRF51822"

In file included from Blink.ino:18:0: D:\arduino-1.6.5-r5\hardware\RBL\RBL_nRF51822\cores\RBL_nRF51822/Arduino.h:13:18: fatal error: mbed.h: No such file or directory

include "mbed.h"

              ^

compilation terminated. Error compiling.

mikatalk commented 8 years ago

Same issue here, unable to use the MK20 :-( Please advise. Below is the full error stack:

Warning: platform.txt from core 'RedBearLab Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}". Consider upgrading this core. Warning: platform.txt from core 'RedBearLab nRF51822 Boards' contains deprecated recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -mcpu={build.mcu} -mthumb -Wl,--gc-sections --specs=nano.specs -Wl,--wrap,main -Wl,-Map={build.path}/{build.project_name}.map,--cref "-T{build.variant.path}/{build.ldscript}" -o "{build.path}/{build.project_name}.elf" -Wl,--start-group "{build.path}/system_nrf51.c.o" {object_files} "{build.path}/startup_NRF51822.s.o" "{build.path}/{archive_file}" -Wl,--end-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys, automatically converted to recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -mcpu={build.mcu} -mthumb -Wl,--gc-sections --specs=nano.specs -Wl,--wrap,main -Wl,-Map={build.path}/{build.project_name}.map,--cref "-T{build.variant.path}/{build.ldscript}" -o "{build.path}/{build.project_name}.elf" -Wl,--start-group "{build.path}/core/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c.o" {object_files} "{build.path}/core/startup_NRF51822.S.o" "{build.path}/{archive_file}" -Wl,--end-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys. Consider upgrading this core. Warning: platform.txt from core 'RedBearLab nRF51822 Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}". Consider upgrading this core. In file included from sketch/Blink.ino.cpp:1:0: /Applications/Arduino.app/Contents/Java/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/Arduino.h:13:18: fatal error: mbed.h: No such file or directory

include "mbed.h"

              ^

compilation terminated. exit status 1 Error compiling.