Atmel SAMA5D4 CPU Support Package

This package contains project templates and system files for the Atmel SAMA5D4.

CrossWorks Version 4 Installation Instructions

This package can only be installed if you have the following CrossWorks license bolt-ons:

To install this support package
  1. Click the Tools > Package Manager menu option to open the package manager window.
  2. Right click on the Atmel SAMA5D4 CPU Support Package entry and select Install Selected Packages.
  3. Click Next to take you to the summary page.
  4. Click Next to install the package.
  5. Click Finish to close the package manager window.
  6. Click the Tools > Show Installed Packages.
  7. Click on the Atmel SAMA5D4 CPU Support Package link to view the package and its contents.
To manually install this support package
  1. If you have not done so already, follow the CrossWorks Tasking Library Package installation instructions.
  2. Download the file SAMA5D4.hzq using your web browser.
  3. Click the Tools > Manually Install Packages menu option.
  4. Select the file you have just downloaded to install the package.
  5. Click the Tools > Show Installed Packages.
  6. Click on the Atmel SAMA5D4 CPU Support Package link to view the package and its contents.
To install this support package using other versions

Release Notes

3.0

Documentation

Creating SAMA5D4 Projects

To create a new SAMA5D4 project
To build and debug an application the runs in Internal SRAM

SAMA5D4 Project Specifics

Target Processor

Once a project has been created you can select different target processors from the selected set by right clicking on the project node in the project explorer and selecting the Target property.

Selecting the target processor will specify the memory map that is used for the build and debug. You can view the selected memory map by right clicking on the project node in the project explorer and selecting Edit Memory Map. In the memory map files the memory segments defining the names, sizes and access types of the external memories are specified using macros which can be set using the Memory Map Macros project property.

Section Placement

CrossStudio for ARM supports SAMA5D4 projects running applications in a number of different memory configurations. You can select the memory configuration you require by right clicking on the project node in the project explorer and selecting the Placement property.

For SAMA5D4 projects the set of placements are:

Target Startup Code

The startup code SAMA5D4_Startup.s is common to all SAMA5D4 processors there are a set of preprocessor defines that configure the startup code and are documented in the startup file itself.

Target Reset Script

The reset script SAMA5D4_Target.js resets the target under debug control using the NSRST signal connected to the debug port.

CTL support

The file SAMA5D4_ctl.c implements the ctl_set_isr, ctl_unmask_isr and ctl_mask_isr functions by programming the AIC register group. The vector parameter to these functions corresponds to the peripheral identifier as defined in the appropriate device user manual. The priority parameter to the ctl_set_isr is between 0 and 7 then an ARM IRQ exception is generated. If nested interrupts are enabled on the irq_handler then the priority is a pre-emption priority i.e. interrupt handlers can be interrupted by higher priority interrupt handlers. The startup code SAMA5D4_Startup.s implements the irq_handler exception handler.

Header and Library Files

The Atmel libchip_SAMA5D4x header and library files are provided.