Programming ATSAME54: Difference between revisions
(3 intermediate revisions by the same user not shown) | |||
Line 22: | Line 22: | ||
==== Atmel Studio ==== | ==== Atmel Studio ==== | ||
<br /> | <br /> | ||
===== Setting up | ===== Setting up USB Access in VirtualBox ===== | ||
These instructions apply when you have installed Atmel Studio in a VirtualBox container with Windows 7 client OS and Ubuntu host OS. | These instructions apply when you have installed Atmel Studio in a VirtualBox container with Windows 7 as client OS and Ubuntu being the host OS. | ||
<br /> | <br /> | ||
In order for Atmel Studio to recognize the Xplained Pro board when a USB cable is connected to the "Debug USB" port, you need to | In order for Atmel Studio to recognize the Xplained Pro board when a USB cable is connected to the "Debug USB" port, you need to | ||
* allow the VirtualBox instance access to the USB connection with the Xplained Pro board, | * allow the VirtualBox instance access to the USB connection with the Xplained Pro board, | ||
Line 44: | Line 43: | ||
<br /> | <br /> | ||
<br /> | <br /> | ||
To allow the client OS (Windows) to access the USB connections you will need to select the correct USB controller and | To allow the client OS (Windows) to access the USB connections you will need to select the correct USB controller (OHCI vs EHCI vs xHCI) and add a filter for each device that needs to accessed. The filter, which I named "SAME54 XPlained Pro", enables access to all USB device with vendor ID ''03eb'' and product ID ''2111'', which are hexadecimal numbers. | ||
<br /> | |||
[[ File:Programming-ATSAME54-virtualbox_usb_settings.png | 400px ]] | |||
<br /> |
Latest revision as of 2019-08-17T12:21:49
Introduction
The Atmel SAM E54 is a microcontroller based on the Arm Cortex M4 processor architecture. Atmel/Microchip provides the SAM E54 Xplained Pro development board for getting your feet wet in programming this MCU.
There are four variants of the E54 that differ in Flash memory capacity and pin numbers. The Xplained Pro board uses the ATSAME54P20A with 1 MB Flash memory.
Documentation Links
Setting up your Software Stack
ASF4 and FreeRTOS
Mbed OS
Not supported officially.
Development Tools
Atmel Studio
Setting up USB Access in VirtualBox
These instructions apply when you have installed Atmel Studio in a VirtualBox container with Windows 7 as client OS and Ubuntu being the host OS.
In order for Atmel Studio to recognize the Xplained Pro board when a USB cable is connected to the "Debug USB" port, you need to
- allow the VirtualBox instance access to the USB connection with the Xplained Pro board,
- set up the VirtualBox instance to allow Windows to access the USB port.
To allow VirtualBox instances that were started from you user account to access USB connections your user needs to be in the vboxusers group.
You can check which groups your user is a member of by typing
id <your login name>
You can add yourself to the vboxusers group by typing
sudo usermod -aG vboxusers <your login name>
which will become effective only after logging out (or rebooting) and logging in again.
To allow the client OS (Windows) to access the USB connections you will need to select the correct USB controller (OHCI vs EHCI vs xHCI) and add a filter for each device that needs to accessed. The filter, which I named "SAME54 XPlained Pro", enables access to all USB device with vendor ID 03eb and product ID 2111, which are hexadecimal numbers.