Quick start guide for UCMote devices

 Unicomp Kft.
Hungary, 8000 Székesfehérvár
Palánkai utca 3. Tel: 36 22 511 130
[email protected]
www.ucmote.com
Quick start guide for UCMote devices Quick start guide for UCMote devices v1.2.1 2014.08.21 Unicomp Kft.
Hungary, 8000 Székesfehérvár
Palánkai utca 3. Tel: 36 22 511 130
[email protected]
www.ucmote.com
Programming UCMote devices
Installing with bootloader (recommended)
All of our motes with a USB connector have a pre­installed, AVR109 compliant bootloader. The bootloader is only accessible for 10 seconds after resetting the mote (on some motes only if the USB cable is connected to a computer). The boot process is traceable on the software LEDs: No connection with the programming tool: LED behaviour Indicated process LED0 is glowing Bootloader initialization No LEDs glowing → LED3 glowing → LED3 Bootloader is active, waiting for connection. and LED2 glowing → LED3, LED2 and Every 2.5 seconds an LED turns on LED1 glowing → all LEDs glowing All LEDs blinking fast 3 times Bootlader is exiting, starting the main program Programming: LED behaviour Indicated process LED0 is glowing Erasing (previous program) LED2 is glowing Writing (new program) LED1 is glowing Reading (checking new program) All LEDs blinking fast 3 times Bootlader is exiting, starting the main program Using bootloader with avrdude
1. Plug your mote into a computer 2. If the bootloader is not running, reset the mote 3. When the bootloader is waiting for connection, run the following command: avrdude ­cavr109 ­P<serial port> ­b57600 ­pm128rfa1 ­Uflash:w:<program>:a The <serial port> is the mote’s serial port on the computer (e.g. /dev/ttyUSB0 or COM17), <program> is the program you want to upload in any of avrdude’s supported formats (e.g. Motorola SREC, Intel HEX, etc). Quick start guide for UCMote devices v1.2.1 2014.08.21 Unicomp Kft.
Hungary, 8000 Székesfehérvár
Palánkai utca 3. Tel: 36 22 511 130
[email protected]
www.ucmote.com
Installation using JTAG
Please note: Installing with JTAG will wipe the bootloader from the device! All of our motes have a special 10 pin connector, where all JTAG pins are wired out. To use this with an AVR JTAG programmer, you’ll need a special converter (sold separately). JTAG connector on an UCMote Mini JTAG converter (sold separately) JTAG converter attached to an UCMote Mini Using the JTAG interface with avrdude
1. Attach the converter to the mote 2. Plug the 10 pin flat cable (sold with the converter) to both the converter and the JTAG programmer. Please, pay close attention to the pin numbering, as with some programmers, like AVR Dragon, it’s possible to plug the wire with reverse polarity! 3. Plug the JTAG programmer to your computer 4. Power up the mote (plug the cable or install batteries) 5. Run the following command: avrdude ­c<programmer> ­P<port> ­pm128rfa1 ­Uflash:w:<program>:a The <programmer> and <port> are the name and port of the JTAG programmer (e.g. for AVR Dragon, it’s dragon_jtag and usb, respectively), <program> is the program you want to upload in any of avrdude’s supported formats (e.g. Motorola SREC, Intel HEX, etc). Quick start guide for UCMote devices v1.2.1 2014.08.21 Unicomp Kft.
Hungary, 8000 Székesfehérvár
Palánkai utca 3. Tel: 36 22 511 130
[email protected]
www.ucmote.com
Installing TinyOS programs
The methods for installing TinyOS programs are the same as above, but some of the steps are automated with the TinyOS make system. Installing with bootloader (recommended)
1. Plug your mote into a computer 2. Run the following command: make <platform> install,[nodeid] avr109,<serial port> The <platform> is your platform (e.g. ucmini or ucprotonb), the <serial port> is the mote’s serial port on the computer (e.g. /dev/ttyUSB0 or COM17), and [nodeid] is the device’s nodeid (not required parameter, if not specified, a default value will be used) 3. Reset the mote when requested by the progam (the make system will try to reset the mote, but sometimes it doesn’t succeed). Installation using JTAG
Please note: Installing with JTAG will wipe the bootloader from the device! Currently only AVR Dragon and JTAG ICE mk2 is supported, but it should be easy to add support for other programmers as long as avrdude supports them. 1. Attach the converter to the mote 2. Plug the 10 pin flat cable (sold with the converter) to both the converter and the JTAG programmer. Please, pay close attention to the pin numbering, as with some programmers, like AVR Dragon, it’s possible to plug the wire with reverse polarity! 3. Plug the JTAG programmer to your computer 4. Power up the mote (plug the cable or install batteries) 5. Run the following command if you want to install with an AVR Dragon: make <platform> install,[nodeid] dragonjtag Or if you have a JTAG ICE mk2: make <platform> install,[nodeid] jtagicemkii,<port> The <platform> is your platform (e.g. ucmini or ucprotonb), [nodeid] is the device’s nodeid (not required parameter, if not given, a default value will be used), and <port> is the serial port of your JTAG ICE mk2 Quick start guide for UCMote devices v1.2.1 2014.08.21