Coder Social home page Coder Social logo

soburi / arduino-on-zephyr Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 3.0 699 KB

All achivements of this project have been merged into https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core. Please use them.

C 15.12% C++ 83.73% CMake 1.05% Batchfile 0.04% Shell 0.03% Python 0.02%

arduino-on-zephyr's People

Contributors

soburi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

arduino-on-zephyr's Issues

core implement status

  • abi.cpp
  • Arduino.h
  • avr/dtostrf.c
  • avr/dtostrf.h
  • avr/interrupt.h
  • avr/io.h
  • avr/pgmspace.h
  • binary.h
  • Client.h
  • CMakeLists.txt
  • cortex_handlers.c
  • delay.c
  • delay.h
  • HardwareSerial.cpp
  • HardwareSerial.h
  • hooks.c
  • IPAddress.cpp
  • IPAddress.h
  • itoa.c
  • itoa.h
  • main.cpp
  • new.cpp
  • Print.cpp
  • Print.h
  • Printable.h
  • pulse.c ISSUE #24
  • pulse.h
  • pulse_asm.S
  • Reset.cpp
  • Reset.h
  • RingBuffer.h
  • sam.h
  • SERCOM.cpp
  • SERCOM.h
  • Server.h
  • startup.c
  • Stream.cpp
  • Stream.h
  • Tone.cpp ISSUE #23
  • Tone.h
  • Uart.cpp
  • Uart.h
  • UartDevice.cpp
  • UartDevice.h
  • Udp.h
  • USB/CDC.cpp
  • USB/CDC.h
  • USB/PluggableUSB.cpp
  • USB/PluggableUSB.h
  • USB/samd21_host.c
  • USB/samd21_host.h
  • USB/SAMD21_USBDevice.h
  • USB/USB_host.h
  • USB/USBAPI.h
  • USB/USBCore.cpp
  • USB/USBCore.h
  • USB/USBDesc.h
  • variant_common.cpp
  • variant_common.h
  • WCharacter.h NEED TO CHANGE ZEPHYR SOURCE
  • WInterrupts.c
  • WInterrupts.h
  • wiring.c
  • wiring.h
  • wiring_analog.c
  • wiring_analog.h
  • wiring_constants.h
  • wiring_digital.c
  • wiring_digital.h
  • wiring_private.c
  • wiring_private.h
  • wiring_shift.c
  • wiring_shift.h
  • WMath.cpp NEED TO CHANGE ZEPHYR SOURCE
  • WMath.h
  • WString.cpp NEED TO CHANGE ZEPHYR SOURCE
  • WString.h
  • WVariant.h

Project status?

Hello! Do you have any plans to continue work on this project?

It's a great idea :)

variant implement status

  • bbc_microbit/CMakeLists.txt
  • bbc_microbit/pins_arduino.h
  • bbc_microbit/prj.conf
  • bbc_microbit/variant.cpp
  • bbc_microbit/variant.h
  • CMakeLists.txt
  • FALLBACK/CMakeLists.txt
  • FALLBACK/pins_arduino.h
  • FALLBACK/prj.conf
  • FALLBACK/variant.cpp
  • FALLBACK/variant.h
  • nrf52840_pca10056/CMakeLists.txt
  • nrf52840_pca10056/overlay-802154.conf
  • nrf52840_pca10056/overlay-bt.conf
  • nrf52840_pca10056/overlay-ot.conf
  • nrf52840_pca10056/overlay-uartlog.conf
  • nrf52840_pca10056/pins_arduino.h
  • nrf52840_pca10056/prj.conf
  • nrf52840_pca10056/variant.cpp
  • nrf52840_pca10056/variant.h

Build fails with many missing libraries

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?

preproc/preproc.sh: No such file or directory

I cannot compile an sketch. It results in a missing preproc.sh script message.

environment:

  • Debian 9.9 (WSL)
  • Arduino 1.8.9 (Windows or Debian)
  • Zephyr SDK (0.9.5 or 0.10.1)
  • cmake 3.13.2-1~bpo9+1
/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.```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.