Difference between revisions of "Apollo2"

From SEGGER Wiki
Jump to: navigation, search
(Clock source)
Line 29: Line 29:
   
 
'''Note:''' When selecting the CPU frequency in IDEs for J-Link SWO usage, select 48 MHz for the Ambiq Apollo2 series devices.
 
'''Note:''' When selecting the CPU frequency in IDEs for J-Link SWO usage, select 48 MHz for the Ambiq Apollo2 series devices.
  +
  +
== Sample projects ==
  +
Sample projects that demonstrate SWO usage are available for the following eval boards:
  +
* [[Apollo2 EVB]]

Revision as of 12:13, 8 March 2018

SWO

On the Apollo2 series devices from Ambiq Micro, SWO is supported. However, a few device specifics apply which are described in the following.

Clock source

For most devices, the SWO clock is derived from the current MCU clock. This is not the case for the Apollo2 series devices. On these devices, the SWO clock is derived from the internal 48 MHz High Frequency RC Oscillator (HFRC).

The SWO clock provided to the CoreSight SWO/trace units is not 1:1 the speed of the HFRC, but can be configured via the Apollo2 device specific register MCUCTRL.TPIUCTRL[CLKSEL]

CLKSEL meaning
Value Meaning
1 SWOClock == HFRC / 2
2 SWOClock == HFRC / 8
3 SWOClock == HFRC / 16
4 SWOClock == HFRC / 32

Note: J-Link handles the current setting of this register automatically when calculating the SWO speed to be used.

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

Sample projects

Sample projects that demonstrate SWO usage are available for the following eval boards: