element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Ultra96 Hardware Design How do I execute sketches and direct Serial Output on Ultra96v2 ?
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 8 replies
  • Subscribers 349 subscribers
  • Views 1067 views
  • Users 0 members are here
  • ultra96-v2
Related

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

kiranshashiny
kiranshashiny over 6 years ago

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

  • Sign in to reply
  • Cancel

Top Replies

  • neuromodulator
    neuromodulator over 6 years ago +1
    Are you trying to use the ultra96v2 to flash an arduino? Or are you trying to program the ultra96v2 as an arduino?
  • Fred27
    Fred27 over 6 years ago +1
    The simple answer is that the Ultra96 is about as different from an Arduino as you can get. It won't run an Arduino sketch - but can do so much more. These road tests of the Ultra96 v1 are probably as…
  • neuromodulator
    neuromodulator over 6 years ago in reply to kiranshashiny +1
    Well, its not an Arduino, its an FPGA board. Now if you want to display temperature or other sensor data, you could use its displayport. How to use your board with the sensors may end being much more complex…
Parents
  • clem57
    0 clem57 over 6 years ago

    Take a look at:

    Running Arduino sketches on the Pi

     

    Postby kolban » Wed Feb 03, 2016 2:09 am

    A new project can be found on Github here:

     

    https://github.com/me-no-dev/RasPiArduino

     

    Which provides the ability to compile Arduino sketches using the Arduino IDE on either Windows or Linux and run the resulting binaries on the Raspberry Pi.

     

    A video tutorial has been built which illustrates getting the solution up and running. That video can be found here:

     

    https://www.youtube.com/watch?v=lZvhtfUlY8Y

     

    In the video, we only show getting it going for the B+ and Pi 2 but we can also run the solution on the Pi Zero and other variants.

     

    In another video, we show how to write binaries directly to the Pi file system:

     

    https://www.youtube.com/watch?v=sd5NLSKp1QU

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • clem57
    0 clem57 over 6 years ago

    Take a look at:

    Running Arduino sketches on the Pi

     

    Postby kolban » Wed Feb 03, 2016 2:09 am

    A new project can be found on Github here:

     

    https://github.com/me-no-dev/RasPiArduino

     

    Which provides the ability to compile Arduino sketches using the Arduino IDE on either Windows or Linux and run the resulting binaries on the Raspberry Pi.

     

    A video tutorial has been built which illustrates getting the solution up and running. That video can be found here:

     

    https://www.youtube.com/watch?v=lZvhtfUlY8Y

     

    In the video, we only show getting it going for the B+ and Pi 2 but we can also run the solution on the Pi Zero and other variants.

     

    In another video, we show how to write binaries directly to the Pi file system:

     

    https://www.youtube.com/watch?v=sd5NLSKp1QU

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube