Prof. Kristofer S.J. Pister’s team Berkeley Sensor and Actuator Center University of California, Berkeley
Part III Take-home Kit and Development Environment Fabien Chraim
3 Outline The Take-Home Kit Programming Debugging wsn.eecs.berkeley.edu
4 The Take-Home Kit wsn.eecs.berkeley.edu Breakout (daughter) Basestation JTAG Adapter Card GINA 2.2b Battery
5 The Take-Home Kit Gina 2.2b (Top) wsn.eecs.berkeley.edu Rainsun Chip Antenna TI MSP430 Processor LEDs Molex Antenna Atmel RF231 Radio STM 3-axis XL
6 The Take-Home Kit Gina 2.2b (Bottom) wsn.eecs.berkeley.edu JTAG Port Kionix 3-axis XL Invensense 3-axis Gyroscope User Button Reset Switch Daughter Card Connectors Honeywell 3-axis Magnetometer TI Temperature Sensor
7 The Take-Home Kit Daughter Card (for Gina 2.2b) wsn.eecs.berkeley.edu GPIO, I2C, SPI and ADC pins
8 The Take-Home Kit Gina Basestation wsn.eecs.berkeley.edu Mini-USB connector Radio (Atmel RF231) Processor (MSP430) UART/USB bridge (Silicon Labs) JTAG Port Rainsun Chip Antenna Molex Antenna
9 The Take-Home Kit JTAG Adapter Card wsn.eecs.berkeley.edu Debug Probe (TI FET430UIF) JTAG Adapter Card
10 The Take-Home Kit - The Big Picture wsn.eecs.berkeley.edu OpenWSN GINA Eco-system
11 Outline The Take-Home Kit Programming Debugging wsn.eecs.berkeley.edu
12 Programming What does it really mean to “program GINA”? – Programming the processor (MSP430) through JTAG interface – Write drivers to control the peripherals wsn.eecs.berkeley.edu
13 Programming What is JTAG – Joint Test Action Group (JTAG): common name for standardized IEEE “Standard Test Access Port and Boundary-Scan Architecture” – Initially: captured data is serially shifted out and externally compared to the expected results (debugging sub-blocks on Integrated Circuits) – Later: programming non-volatile memory How the Processor interacts with the peripherals – GPIO pins, I2C, SPI, ADC, UART wsn.eecs.berkeley.edu
14 Programming Using IAR… (demo) wsn.eecs.berkeley.edu
15 Outline The Take-Home Kit Programming Debugging wsn.eecs.berkeley.edu
16 Debugging Debugging Techniques: – Blinking Leds – Single-stepping and Breakpoints – Using an oscilloscope – Using Sniffers – Using UART/USB interface wsn.eecs.berkeley.edu
17 Debugging Sniffers – TI’s CC2531-EMK pre-programmed with firmware which integrates with the TI Packet Sniffer Integrates with the SmartRFstudio Dissectors for IEEE , ZigBee, RF4CE and SimpliciTI – Atmel’s RAVEN USB stick Firmware by Colin O’Flynn ( Integrates with Wireshark Tools used by IPSO for IPv6 ready logo certification wsn.eecs.berkeley.edu
18 Debugging UART/USB interface – Using the Silicon Labs chip – Writing scripts to read incoming bytes (Python) wsn.eecs.berkeley.edu
19 Debugging - Finding Information
Prof. Kristofer S.J. Pister’s team Berkeley Sensor and Actuator Center University of California, Berkeley