Atmega256RFR2 rss2

Support for the Radio Sensors Atmega256RFR2 rss2 board. More...

Detailed Description

Support for the Radio Sensors Atmega256RFR2 rss2 board.

General information

Document version V1.4 2019-11-10
Board is based AtMega256RFR2 with additional HW, EUI64 chip, HW comparator, RTC XTAL, BME280

Board Features

USART

The board has one USART via the 6-pin TTL-USB adapter, The default baudrate is 115200 bps. It's possible to use higher speeds as is 250k and 500k baud which gives 0% Error with 16MHz clock. (An additional USART is on the chip but as default used by interrupt pins. Needs HW mod to be used)

Toolchain

The Atmel toolchain is available in most operating systems. For a full toolchain and easy installation on Ubuntu:

apt-get install gcc-avr avr-libc avrdude

Otherwise if OS toolchain packages do not support the AtMega256RfR2 MCU, another option is to download the C compiler toolchain from Microchip.

For Linux and MacOS

  1. Download the proper 8-bit C compiler AVR toolchain, 32 or 64-bit, from Microchip.
  2. Unpack under /usr/local
  3. Add to your search PATH. For example add to .bashrc:
    export PATH=$PATH:/usr/local/avr8-gnu-toolchain-linux_x86_64/bin (64-bit)
    export PATH=$PATH:/usr/local/avr8-gnu-toolchain-linux_x86/bin (32-bit)
  4. For flash programming, you need avrdude. On Ubuntu Linux, it can be installed with the command
apt-get install avrdude

For MacOS, there is a HomeBrewpackage that can be installed with the command:

brew install avrdude

RIOT build

make BOARD=avr-rss2

Flashing/Programming hardware

Programming using avrdude using serial bootloader using a TTL-USB cable. Press the RESET button. The bootloader with wait for boot commands for 3 seconds. Program with:

avrdude -p m256rfr2 -c stk500v2 -P /dev/ttyUSB0 -b 115200 -e -U flash:w:bin/rss2-mega256rfr2/hello-world.elf

Board approvals

Summary: CE approved Radio Equipment Directive (RED) 2014/53/EU Rev 2.4

Commercial availability

Through vendor and though resellers. Note board is will only available were CE approval is covered. This may be further restricted by WEEE. Contact vendor. For research legislation is more relaxed in most countries.

References

Board (Rev2.4) anatomy with connectors

Files

file  board.h
 Board definitions for the rss2 256rfr2 board.
 
file  gpio_params.h
 Configuration of SAUL mapped GPIO pins.
 
file  periph_conf.h
 Peripheral MCU configuration for the rss2 AtMega256rfr2 board.