Embedded Computing
  • About
  • Blog
  • Hardware
    • Which Platform?
    • Controller Platforms >
      • Adafruit Platform
      • Arduino Plaform
      • BBC micro:bit
      • Espressif Platform
      • iLabs Platform
      • Raspberry Pi Platform (MCU)
      • Seeed Platform
      • Silicon Labs Platform
      • Teensy Plaform
    • Computer Platforms >
      • BeagleBone Platform
      • Raspberry Pi Platform (SBC)
      • UDOO Platform
    • Peripherals >
      • Shields
      • Grove System
      • Sensors
      • Actuators
    • Displays >
      • E-Paper Displays
      • Reflective Displays
      • TFT Displays
      • LCD Displays
    • Legacy Platforms >
      • chipKIT Plaform
      • 4D Systems Platform
      • Intel Platform
      • LaunchPad Plaform
      • BoosterPacks for LaunchPads
      • LightBlue Bean
      • Maple Plaform
      • Mediatek Platform
      • Microsoft Azure IoT DevKit
      • Particle Platform
  • Software
    • Exploring RTOS with Galaxia >
      • Event Library
      • Semaphore Library
      • Mailbox Library
      • Timer Library
      • Clock Library
      • SWI Library
      • Task Library
    • Ultra-Low Power with EnergyTrace >
      • Ultra-Low Power with MSP430
      • Ultra-Low Power with Energia MT and Galaxia
    • Using Integers Instead of Reals
    • Going Python?
  • IoT
    • IoT Platforms: Which Hardware? >
      • Matter with Silicon Labs MG24
    • IoT Services: Which Solution? >
      • Recommended IoT Solutions
      • Platform-Specific IoT Solutions
      • Other IoT Solutions
      • Not tested IoT Solutions
      • Notification Solutions
    • Get Date and Time from Internet with NTP
    • Fast and Easy WiFi Connection with QR-Code
  • Tools
    • How to Start?
    • Reference >
      • Asking for Help
      • Boards Pins Maps
      • Ruler
      • Boards and Plugs
      • I²C Logic Level Converter
      • Standards for Connectors
    • Training >
      • Texas Instruments Workshops
      • Embedded Systems: Shape The World — MOOC edX UTAustinX UT.6.02x
      • Embedded Systems - Shape The World: Microcontroller Input/Output — MOOC edX UTAustinX UT.6.10x
      • Embedded Systems - Shape The World: Multi-Threaded Interfacing — MOOC edX UTAustinX UT.6.20x
      • Real-Time Bluetooth Networks: Shape the World — MOOC edX UTAustinX UT.RTBN.12.01x
      • Systems Thinking with Texas Instruments Robotics System Learning Kit
    • Books >
      • Getting Started with the MSP430 LaunchPad
      • Getting Started with Arduino
      • Arduino Cookbook
    • IDE >
      • The Battle of IDEs
      • More Options
      • Assessing the Next Generation of IDEs
      • Tools for Documentation
    • Equipment >
      • Saleae Logic Analyser
      • Rigol DS1102E Oscilloscope
      • XDS110 Debug Probe with EnergyTrace​
      • Segger J-Link Programmer-Debugger
      • Nordic Power Profiler Kit II
  • Projects
    • Libraries >
      • Master I²C Software Library
      • Date and Time Library
      • highView Library Suite
      • Others Libraries
    • smartDevices >
      • I²C smartColours Smart Sensor
      • I²C smartRFID Smart Sensor
      • I²C smartLED Display
      • I²C smartControls Smart Device
      • I²C smartWiFi Smart Device
      • I²C smartBLE Smart Device
      • I²C smartNode Smart Device
    • IoT Projects >
      • Remote E-Paper Weather and Message Board
      • Typie-Walkie with LoRa and E-Paper Screen
      • Typie-Walkie with E-Paper Screen
      • Remote e-Paper Pictures Panel
      • Remote e-Paper Messages Panel
      • Industrial IoT Project
      • Remote Contactless Temperature Monitor
      • Using Node-RED for IIoT
      • Low Power Home Network Weather Monitoring
      • Updated Low Power Home Network Weather Monitoring
      • Weather and Security Station with Blynk
      • SensorTag to Blynk Using Node-RED
      • Pervasive Reporting
    • AI Projects >
      • Colour Recognition with Neural Network
    • Other Projects >
      • Air Quality Monitoring
      • Driving a Large E-Paper Display with a Compact Xiao RP2040
      • Low-Power E-Paper Weather Station
      • Portable Particulate​ Matter Monitor
      • FRAM-based E-Paper Screen Controller
      • General Purpose 3.5" Screen
      • Colour Recognition with Neural Network
      • A Low Power Weather Station
      • Digital Volt-Amp-Watt Meter
      • Mobile Measurement with LCD Display
      • Screen with SRAM for GUI
      • Volt-Amp-Watt-Meter for Grove
      • Multi-Touch Project with CapTIvate

Arduino Zero

The Arduino Zero from Arduino.CC is very similar to the Arduino M0 Pro from Arduino.ORG --initially called Zero Pro. The only visible difference is the darker colour, but features should be the same.

The board is designed around the 32-bit ARM Cortex-M0+ SAMD21 from Atmel and built in Italy. The EDBG chip from Atmel provides the debugging capabilities.

The SAMD21 MCU features 256 kB of Flash and 32 kB of RAM and runs at 48 MHz. This is a huge improvement over the 32 kB of Flash, 2.5 kB of RAM and 16 MHz of the Arduino Uno.

Although the connectors offer compatibility with the large collection of shields, be careful and check the operating voltage before. The Arduino Zero operates at 3.3V only. 
Picture

Arduino.CC Zero vs. Arduino.ORG M0 Pro

Unfortunately, the two boards are not 100% compatible. According to the AVRFreak forum, the difference are:
  • Two digital pins are swapped (2 and 4).  
  • The boot-loaders are different.
  • Debugging works against the Arduino.ORG M0 Pro (CMSIS-DAP SWD only) but not (yet) against  the Arduino.CC Zero (CMSIS-DAP SWD and JTAG).
The ATSAM21D and the EDBG chips
Picture

Software

The IDE or integrated development environment offers a C++-based dialect. 

As Processing-based Wiring-derived, it is platform-agnostic and runs on Windows, Mac OS X or Linux.

Download the IDE Arduino 1.6.7 as other versions don't support the Arduino.CC Zero board. Looking for more features, I designed embedXcode, a template I could use with Xcode.

There are two ports and thus two options for uploading the sketch to the board.
  • The Programming Port is recommended. It's safe and reliant.
  • The Native USB Port requires to press the RESET button on manually but the port isn't always detected.
Picture

Debugging

Contrary to the Arduino.ORG M0 Pro, I was unable to debug against the Arduino.CC Zero, with the same blinky sketch and the same standard tools OpenOCD as server and GDB as client. This comes really as a  surprise, since both boards feature the Atmel EDBG chip for debugging.

Does the 
boot-loader requires a specific tool? Worse, I've found no documentation on the website. 

Picture
Uploading and debugging only work fine when the Programming Port is connected. 

Below, 
  • On the left, the OpenOCD server connects to the board.
  • On the right, the GDB client fails with SIGINT signal and strange address 0xfffffffe. 

Contrary to the boot-loader on the Arduino.ORG M0 Pro, the Arduino.CC Zero only supports
CMSIS-DAP SWD, not CMSIS-DAP JTAG.

Picture
Picture
Picture
Thank to the hints provided by the Proper Debugging of ATSAMD21 Processors tutorial by Adafruit, alas based on Atmel Studio and only for Windows, and after multiple trials and errors, I managed to debug against the Arduino Zero.

The main trick is, uploading the sketch requires a specific procedure and can't be done through OpenOCD.

The only solution is an automated process. embedXcode+ now supports debugging against the Arduino Zero, as well as the Arduino.ORG M0 Pro.
Picture
Picture

Conclusion

I was expecting a lot from the Arduino.CC Zero. Truth is, I'm disappointed. The board isn't fully compatible with the Arduino.ORG M0 Pro and the major feature, debugging, isn't documented. It took me a lot of work to get it work.

​The brand name is a real nightmare: Arduino (USA only) or Genuino (outside USA). All this create fear, uncertainty and doubt.

If you want to debug with the standard OpenOCD and GDB tools smoothly, go for the Arduino.ORG M0 Pro instead.
The USD100 IoT solution featuring Arduino Zero and Arduino WiFI 101 
Picture

Pros

  • The new reference with a 32-bit MCU!
  • Many shields and libraries available
  • True plug-and-play 

Cons

  • Price, if USD50 is confirmed
  • ​No documentation on debugging 
  • Arduino.ORG M0 Pro and Arduino.CC not fully compatible
  • Confusing brand names

Wrap-Up

  • ​F.U.D.
  • ​No documentation on debugging 
  • Perfect to start with embedded computing with speed and memory
  • A welcome addition to the Arduino family

Links

  • Website 
  • Arduino Zero
  • IDE Arduino 1.6.7
Picture
Picture
Initial post: June 02, 2016
Update: Sept 02, 2016

Powered by Create your own unique website with customizable templates.