SWO is supported on the Apollo2 EVB.
In order to make SWO working correctly, min. J-Link software V6.30g is required. Previous versions are not guaranteed to work correctly with SWO.
Pin used on MCU
On the Apollo2 EVB, PAD41 has been wired by Ambiq Micro as SWO output pin.
The following sample projects that demonstrate SWO on the Apollo2 EVB are available:
This example project does not require any extra settings by the user. The SWO stream can be viewed with e.g. JLinkSWOViewer which is included in the J-Link software and documentation package and is available for free. This project has been created with Embedded Studio V3.40.
- IAR EWARM sample project
- Note: IAR does not handle the special setup needed for this particular target device automatically so the project setting "CPU clock" must be set to CPUClock/8. Any other value will not output the SWO printf stream.