Development On Atsamd21 - Panasonic Grid-EYE User Manual

Hide thumbs Also See for Grid-EYE:
Table of Contents

Advertisement

4.2.2 Development on ATSAMD21

The demonstration software code project for ATSAMD21 is created using ATMEL studio.
The main function of the code is data acquisition and transmission. Both the operating
modes are supported by just one firmware code. So switching between the independent
mode and Arduino mode does not need changing the code in ATSAMD21. The firmware
decides on the mode by the response of the I
There are two ways to download the program to ATSAMD21:
If you have a JTAG debugger, like a J-link, you can download the program with IDE or
other tools
But if you don't have J-link and/or you want to download the program through USB
interface with SAM-BA, the bootloader must be downloaded into the MCU before
downloading application. Thus you need to modify the linker script before building the
project to tell the linker how to allocate the address of the bootloader and Application.
Linker script is located in the following path:
SAMD21_USB_DUART_DEMO/src/ASF/sam0/utils/linker_scripts/samd21/gcc/samd21j18a_
flash.ld
Modify the files as follows:
The ORIGIN value needs to be modified to 0x00002000 to leave a space for bootloader.
Constraints in using SAM-BA with USB/UART requires that the bootloader or any access to
memory in the ATSAM21 series be made from 0x00002000 onwards.
For more details, refer to: Grid_Eye_Source\Atmel\BOOTLOADER\Atmel-42366-SAM-BA-
Bootloader-for-SAM-D21_ApplicationNote_AT07175.pdf
User Manual
2
C interface.
Grid-EYE Evaluation Kit
20

Advertisement

Table of Contents
loading

Table of Contents