soburi / arduino-on-zephyr Goto Github PK
View Code? Open in Web Editor NEWAll achivements of this project have been merged into https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core. Please use them.
All achivements of this project have been merged into https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core. Please use them.
Hello! Do you have any plans to continue work on this project?
It's a great idea :)
Add zephyr/module.yml
and some CMakeLists.txt
and Kconfig
to make this repository work as zephyr module.
on 0.0.20200209
When I run west build -p -b arduino_zero samples/basic/blinky
I get the following output:
[31/155] Building CXX object zephyr/CMakeFiles/zephyr...ib/arduino-on-zephyr/cores/scirocco/IPAddress.cpp.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/scirocco/IPAddress.cpp.obj
ccache /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ -DBUILD_VERSION=v2.7.99-2750-g7f5eb921dc8b -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZE
PHYR__=1 -I/home/dhruva/zephyrproject/zephyr/kernel/include -I/home/dhruva/zephyrproject/zephyr/arch/arm/include -I/home/dhruva/zephyrproject/zephyr/include -I/home/dhruva/ze
phyrproject/zephyr/build/zephyr/include/generated -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/samd21 -I/home/dhruva/zephyrproject/zephyr/drivers -I/home/dhruva/zep
hyrproject/zephyr/soc/arm/atmel_sam0/common/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/scirocco/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-
zephyr/variants/_FALLBACK_/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -isystem
/home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem /ho
me/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -fcheck-new -fno-exceptions -fno-rtti -imacros /home/dhruva/zephyrproject/
zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee
-imacros /home/dhruva/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-unused-but-set-variable
-fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr/samples/basi
c/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dhruva/zephyrproject=WEST_TOPDIR -ffunction-sections -fdat
a-sections -nostdinc -nostdinc++ -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/scirocco/IPAddress.cpp.obj -MF zephyr/CMak
eFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/scirocco/IPAddress.cpp.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules
/lib/arduino-on-zephyr/cores/scirocco/IPAddress.cpp.obj -c /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/scirocco/IPAddress.cpp
In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/scirocco/IPAddress.cpp:20:
/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/scirocco/IPAddress.h:26:10: fatal error: misc/byteorder.h: No such file or directory
26 | #include <misc/byteorder.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
along with many other missing libs like gpio.h
and uart.h
I followed everything given in this repo's readme (mainly just edited the west.yml and ran west update)
Am I missing out on any step or could this be some sort of compatibility issue with thelatest zephyr repo and sdk that I have used from upstream?
I cannot compile an sketch. It results in a missing preproc.sh script message.
environment:
/opt/arduino-1.8.9/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.9/hardware -hardware /home/frank/.arduino15/packages -tools /opt/arduino-1.8.9/tools-builder -tools /opt/arduino-1.8.9/hardware/tools/avr -tools /home/frank/.arduino15/packages -built-in-libraries /opt/arduino-1.8.9/libraries -libraries /home/frank/Arduino/libraries -fqbn=scirocco:zephyr:nrf52840_pca10056:network=bt,uartlog=enable -ide-version=10809 -build-path /tmp/arduino_build_566830 -warnings=none -build-cache /tmp/arduino_cache_631109 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.intiki.path=/home/frank/.arduino15/packages/scirocco/tools/intiki/1.0.3 -prefs=runtime.tools.intiki-1.0.3.path=/home/frank/.arduino15/packages/scirocco/tools/intiki/1.0.3 -verbose /tmp/untitled155113352.tmp/sketch_jul02a/sketch_jul02a.ino
Using board 'nrf52840_pca10056' from platform in folder: /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524
Using core 'scirocco' from platform in folder: /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524
Detecting libraries used...
/home/frank/.arduino15/packages/scirocco/tools/intiki/1.0.3/intiki -w -verbose -1 -recipe preproc.macros -build.system.path /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system -build.variant.path /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056 -build.core.path /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/cores/scirocco -build.path /tmp/arduino_build_566830 -build.variant nrf52840_pca10056 -runtime.platform.path /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524 -platform.version 1.6.9 -make.command cmake -source /tmp/arduino_build_566830/sketch/sketch_jul02a.ino.cpp -target /dev/null -template /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system/support/CMakeLists.txt.template -makefile /tmp/arduino_build_566830/preproc/_cmakefile/CMakeLists.txt -- -w -x c++ -E -CC -DF_CPU=32000000L -DARDUINO=10809 -DARDUINO_nrf52840_pca10056 -DARDUINO_ARCH_ZEPHYR -includes -I/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/cores/scirocco -I/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056 -make-args -E env ZEPHYR_BASE=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system/zephyr ZEPHYR_TOOLCHAIN_VARIANT=zephyr ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk cmake -DARDUINO_BUILD_PATH=/tmp/arduino_build_566830 -DARDUINO_VARIANT_PATH=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056 -DARDUINO_PREPROC_SOURCE=/tmp/arduino_build_566830/sketch/sketch_jul02a.ino.cpp -DARDUINO_PREPROC_TARGET=/dev/null -DBOARD=nrf52840_pca10056 -DOVERLAY_APPEND_NETWORK=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056/overlay-bt.conf -DOVERLAY_APPEND_UARTLOG=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056/overlay-uartlog.conf -P /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system/support/build.cmake
Error while detecting libraries included by /tmp/arduino_build_566830/sketch/sketch_jul02a.ino.cpp
Generating function prototypes...
/home/frank/.arduino15/packages/scirocco/tools/intiki/1.0.3/intiki -w -verbose -1 -recipe preproc.macros -build.system.path /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system -build.variant.path /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056 -build.core.path /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/cores/scirocco -build.path /tmp/arduino_build_566830 -build.variant nrf52840_pca10056 -runtime.platform.path /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524 -platform.version 1.6.9 -make.command cmake -source /tmp/arduino_build_566830/sketch/sketch_jul02a.ino.cpp -target /tmp/arduino_build_566830/preproc/ctags_target_for_gcc_minus_e.cpp -template /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system/support/CMakeLists.txt.template -makefile /tmp/arduino_build_566830/preproc/_cmakefile/CMakeLists.txt -- -w -x c++ -E -CC -DF_CPU=32000000L -DARDUINO=10809 -DARDUINO_nrf52840_pca10056 -DARDUINO_ARCH_ZEPHYR -includes -I/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/cores/scirocco -I/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056 -make-args -E env ZEPHYR_BASE=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system/zephyr ZEPHYR_TOOLCHAIN_VARIANT=zephyr ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk cmake -DARDUINO_BUILD_PATH=/tmp/arduino_build_566830 -DARDUINO_VARIANT_PATH=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056 -DARDUINO_PREPROC_SOURCE=/tmp/arduino_build_566830/sketch/sketch_jul02a.ino.cpp -DARDUINO_PREPROC_TARGET=/tmp/arduino_build_566830/preproc/ctags_target_for_gcc_minus_e.cpp -DBOARD=nrf52840_pca10056 -DOVERLAY_APPEND_NETWORK=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056/overlay-bt.conf -DOVERLAY_APPEND_UARTLOG=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056/overlay-uartlog.conf -P /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system/support/build.cmake
cmake -E env ZEPHYR_BASE=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system/zephyr ZEPHYR_TOOLCHAIN_VARIANT=zephyr ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk cmake -DARDUINO_BUILD_PATH=/tmp/arduino_build_566830 -DARDUINO_VARIANT_PATH=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056 -DARDUINO_PREPROC_SOURCE=/tmp/arduino_build_566830/sketch/sketch_jul02a.ino.cpp -DARDUINO_PREPROC_TARGET=/tmp/arduino_build_566830/preproc/ctags_target_for_gcc_minus_e.cpp -DBOARD=nrf52840_pca10056 -DOVERLAY_APPEND_NETWORK=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056/overlay-bt.conf -DOVERLAY_APPEND_UARTLOG=/home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/variants/nrf52840_pca10056/overlay-uartlog.conf -P /home/frank/.arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system/support/build.cmake
exec.Command.Run err=1
bash: /tmp/arduino_build_566830/preproc/preproc.sh: No such file or directory
CMake Error at .arduino15/packages/scirocco/hardware/zephyr/0.0.20190524/system/support/build.cmake:118 (message):
exit status 1
Error compiling for board nRF52840 Development Kit.```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.