Apollo2
Contents
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]
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: