ATSAME70

From SEGGER Wiki
Jump to: navigation, search

SWO

On the ATSAME70 series devices from Microchip SWO is supported. However, a few device specifics apply which are described in the following section.

Clock source

For most devices, the SWO clock is derived from the current MCU clock. This is also the case for the ATSAME70 series devices. However on these devices, the SWO clock source is disabled after reset and multiple sources and dividers can be selected.

Note: J-Link handles the current setting of this register automatically when calculating the SWO speed to be used. J-Link software version V6.32a or later is required.

The following settings are used:

  • SWO clock source is MCK
  • SWO clock divider is set to 14+1 assuming MCK is 150 MHz after reset and is not changed by application.

Note: The settings are applied by a compiled .JLinkScriptfile that is implemented in J-Link software, should you need the original source, please get in touch with SEGGER directly via our support system: https://www.segger.com/ticket/.

Note: When selecting the CPU frequency in IDEs for J-Link SWO usage, select 300 MHz for the ATSAME70 series devices.

RAM specifics

The ATSAME70 device series gives the user the option to reallocate the RAM section, usually starting at 0x20400000, to other memory areas as TCM memory. Per default the RAM section is one block ranging from 256 - 384 KiB in size (depending on which specific device is used). To reallocate the RAM the so called General Purpose NVM Bits can be used. More information can be found in the corresponding family user guide.

Note: This setting needs to be taken into account when linking your application in the IDE as not all available RAM is necessarily in one memory region.