This project is a bare metal example integration of the UNICENS library for the Atmel SAM V71 controller.
Hardware:
- Atmel SAM V71 Xplained Ultra Evaluation Kit
- Atmel SAM-ICE (min. HW-Version 7)
- OS81118 Phy+Board Variant 3 or OS81210/OS81212/OS81214 Phy+Board Variant 3
- Depending on your use case, you can start with any devices of the K2L Slim Board Familiy
Software:
- Microsoft Windows 7 or newer
- Atmel Studio 7
- Git for Windows
To get the source code, enter:
$ git clone --recurse-submodules https://github.com/MicrochipTech/unicens-bare-metal-sam-v71.git- Open Atmel Studio 7
- File -> Open -> Project/Solution... (Ctrl+Shift+O)
- Select [your-projects]\audio-source\SAMV71-UNICENS-example.atsln
- Navigate to Project -> Properties -> Tool and select your connected SAM-ICE.
Use SWD as interface and save the configuration file. - Build the project with F7
- Build the project, flash it to the SAM V71 and start debugging with F5
The configuration of the entire network is done via a single XML file.
It's located at [your-projects]\audio-source\config.xml
Hint: Edit the config.xml file within the Atmel Studio.
It will validate it and help filling the correct tags and attributes by using the XML schema unicens.xsd in the same folder.
Once you edited it, double click the [your-projects]\audio-source\convertXML.bat batch file.
It will interpret the XML file and generate a static C-Source code file at
[your-projects]\audio-source\samv71-ucs\src\default_config.c
After successful conversion, you need to build the project again and download it to the hardware in order to apply the new network configuration.