8 Replies Latest reply on Oct 5, 2019 10:06 AM by neuromodulator

    How do I execute sketches and direct Serial Output on Ultra96v2 ?

    kiranshashiny

      I  want to be able to execute a simple "hello world" code on Ultra96v2 ?

      i was able to compile it, but don't know how to execute direct output.

      1.

      # cat helloworld.ino

      void setup() {

        Serial.begin(9600);

      }

       

      void loop() {

        Serial.println ("hello");

        delay(1000);

      }

       

       

      2.

      # cat makefile

      MONITOR_PORT=/dev/ttyS2

      include /usr/share/arduino/Arduino.mk

      #run: upload

      # python ada.py


      3.

      # make

      -------------------------

      Arduino.mk Configuration:

      - [AUTODETECTED]       CURRENT_OS = LINUX

      - [AUTODETECTED]       ARDUINO_DIR = /usr/share/arduino

      - [COMPUTED]           ARDMK_DIR = /usr/share/arduino (relative to Common.mk)

      - [AUTODETECTED]       ARDUINO_VERSION = 105

      - [DEFAULT]            ARCHITECTURE = 

      - [DEFAULT]            ARDMK_VENDOR = arduino

      - [DEFAULT]            ARDUINO_SKETCHBOOK = 

      - [BUNDLED]            AVR_TOOLS_DIR = /usr/share/arduino/hardware/tools/avr (in Arduino distribution)

      - [COMPUTED]           ARDUINO_LIB_PATH = /usr/share/arduino/libraries (from ARDUINO_DIR)

      - [COMPUTED]           ARDUINO_VAR_PATH = /usr/share/arduino/hardware/arduino//variants (from ARDUINO_DIR)

      - [COMPUTED]           BOARDS_TXT = /usr/share/arduino/hardware/arduino//boards.txt (from ARDUINO_DIR)

      - [DEFAULT]            USER_LIB_PATH = /libraries (in user sketchbook)

      - [DEFAULT]            PRE_BUILD_HOOK = pre-build-hook.sh

      - [DEFAULT]            BOARD_TAG = uno

      - [COMPUTED]           CORE = arduino (from build.core)

      - [COMPUTED]           VARIANT = standard (from build.variant)

      - [COMPUTED]           OBJDIR = build-uno (from BOARD_TAG)

      - [COMPUTED]           ARDUINO_CORE_PATH = /usr/share/arduino/hardware/arduino//cores/arduino (from ARDUINO_DIR, BOARD_TAG and boards.txt)

      - [DETECTED]           MONITOR_BAUDRATE = 9600  (in sketch)

      - [DEFAULT]            OPTIMIZATION_LEVEL = s

      - [DEFAULT]            MCU_FLAG_NAME = mmcu

      - [DEFAULT]            CFLAGS_STD = -std=gnu11 -flto -fno-fat-lto-objects

      - [DEFAULT]            CXXFLAGS_STD = -std=gnu++11 -fno-threadsafe-statics -flto

      - [COMPUTED]           DEVICE_PATH = /dev/ttyS2 (from MONITOR_PORT)

      - [DEFAULT]            FORCE_MONITOR_PORT = 

      - [AUTODETECTED]       Size utility: AVR-aware for enhanced output

      - [COMPUTED]           BOOTLOADER_PARENT = /usr/share/arduino/hardware/arduino//bootloaders (from ARDUINO_DIR)

      - [COMPUTED]           ARDMK_VERSION = 1.5

      - [COMPUTED]           CC_VERSION = 4.9.2 (avr-gcc)

      -------------------------

      mkdir -p build-uno

       



       

      #  ls build-uno/

      core  helloworld.eep  helloworld.elf  helloworld.hex  helloworld.hex.sizeok  helloworld.ino.d  helloworld.ino.o  libcore.a

       


      Would appreciate any help from readers.
      Thanks

      Shashi