aen-cc3501e-bringup
Host-side (Alif M55-HE) bring-up of the on-module TI CC3501E Wi-Fi 6 + BLE 5.4 coprocessor: power it, release reset, and round-trip PING / GET_VERSION over the inter-chip SPI bridge.
Source: examples/aen/aen-cc3501e-bringup/.
What it does
The CC3501E has no power until the Alif drives its enable line high, so this app is what first powers the coprocessor — a J-Link on the CC3501E reads VTref = 0 V until it runs.
- Opens the CC3501E enable + reset GPIOs, and SPI1 (
bus_id = 1, mode 0, 25 MHzCC3501E_BRIDGE_SPI_FREQ_HZ) with the controller's hardware SS0 chip-select — the app passesALP_SPI_NO_CS. Per-phase READY gating is optional and left unwired by default on the current module. cc3501e_reset()— sequences enable + reset and blocks about 905 ms for the boot budget.- Retries
PINGuntil the coprocessor answers. GET_VERSION— checks the wire-protocol version the host accepts. The alp-sdk v0.17.0 host is bilingual across protocol 3 and 4 (see E1M-AEN).GET_DIAG_INFO.- Liveness soak:
PINGevery 500 ms (plusGET_VERSIONevery 8th cycle). The soak loops forever. When the build setsCC3501E_WIFI_SSID(empty by default, so a default build skips it), the soak also attemptsWIFI_CONNECT; only after a successful connect does it runcc3501e_net_probe(), which carries the two demos below — power presets first, thenRECOVERand power off / wake. A default build never runs them.
The cc3501e_net_probe() demos (only with CC3501E_WIFI_SSID set and a successful connect):
- Power presets (new in v0.17.0): walks
PERFORMANCE/LOW_POWER/DEEP_SLEEP/BALANCED, printing each policy's status, theradio_okflag and aPING, then leaves the device onBALANCED. Readradio_ok: aRESP_OKto a power-policy request means queued, not applied, because the firmware defers the work to its own task — soradio_okreports whether the previous radio apply was realised (firmware that predates the flag reports1). - Power off and wake (new in v0.17.0): after
cc3501e_recover(), cuts the supply withcc3501e_power_off(), shows that calls then fail fast withALP_ERR_NOT_READYinstead of timing out, and wakes the device withcc3501e_reset()— the long-idle duty cycle a once-an-hour node would use.
Repeated BLE advertise/stop cycles can wedge the bridge (not power-related — it reproduces with no power policy); cc3501e_recover() clears it.
The companion aen-cc3501e-gpio example drives proxied CC3501E GPIO and the camera-LDO enables over the same bridge — the GPIO proxy is bench-validated on real E8 (pass=8 / fail=0).
board.yaml
som:
sku: E1M-AEN801
preset: e1m-evk
cores:
a32_cluster:
os: "off"
m55_he:
app: ./src
peripherals:
- spi
- gpio
chips:
- cc3501e
diagnostics:
log_level: info
Expected output
Line shapes from the source (values vary per unit and firmware; no captured transcript is reproduced here):
[cc3501e-bringup] GET_DIAG_INFO -> 0
[cc3501e-bringup] diag: fw_version=0x.... reset_cause=. role=. ...
[cc3501e-bringup] soak WIFI_CONNECT -> 0 (only with CC3501E_WIFI_SSID set)
[cc3501e-bringup] POWER PERFORMANCE -> 0 radio_ok=1 PING -> 0 BLE adv 0/0
...
[cc3501e-bringup] RECOVER -> 0
[cc3501e-bringup] POWER OFF -> 0 while-off PING -> <ALP_ERR_NOT_READY> reset -> 0 PING -> 0
...
The bridge does more than this example exercises — Wi-Fi scan + STA connect, BLE, sockets and the GPIO proxy — and the peer firmware now lives in its own repository, alplabai/cc3501e-bridge-firmware. See E1M-AEN — CC3501E coprocessor for the current status, including the open link-wedge issues.