AmbiqMicro Apollo4
The AmbiqMicro Apollo4 are ultra-low power, Cortex-M4 based.
Internal Flash
Supported Regions
The internal flash is divided into 2 different regions:
- Reserved by boot code (0x00000 - 0x17FFF), not accesible.
- Program Flash (0x18000 - 0x1FFFFFF)
J-Link supports the program flash space. The boot code area is not accessible and cannot be erased or programmed.
This device supports program without erase. More information can be found here.
Evaluation Boards
- Ambiq Micro Apollo4 blue evaluation board: AmbiqMicro Apollo4 Plus EVB
Example Project
The following example project was created with the SEGGER Embedded Studio project wizard and runs out-of-the-box on the NXP JN5189-DK006. It is a simple Hello World sample linked into the internal flash. SETUP
- J-Link software: V6.95c
- Embedded Studio: V5.34
- Hardware: Ambiq Micro Apollo4 Blue (AMA4B2EVB)
- Link: File:AmbiqMicro Apollo4 IntFlash TestProject ES V534.zip
SWO
This device supports SWO tracing out of the box. J-Link software version V9.32 or later is required.
The following example project can be used with Ozone or Embedded Studio: AmbiqMicro_Apollo4_SWOExample.zip
This example uses Pin79 as the SWO pin. If you are using a different pin, you can initialise it by adjusting the SWO_EnableTarget() function in the J-Link script file PCode_Device_AmbiqMicro_Apollo4.JLinkScript.
Recovering unresponsive devices
It is possible to put an Apollo4 device into an unresponsive state in which debug probes cannot establish a debug connection to the target device anymore.
This could be achieved by downloading an application which resets the device early in user code, causing the device to continuously reset itself.
An AMAP4BEVB board with an unresponsive device may be recovered by rewriting on-chip security configuration for the boot options. However, due to the confidentiality of the security implementation, you need to get in touch in Ambiq for details.