---
title: "CC3501E Bring-up"
description: "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: https://docs.alplab.ai/sdk/examples/aen/aen-cc3501e-bringup
---

# `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/`](https://github.com/alplabai/alp-sdk/tree/main/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.

1. Opens the CC3501E enable + reset GPIOs, and SPI1 (`bus_id = 1`, mode 0, 25 MHz `CC3501E_BRIDGE_SPI_FREQ_HZ`) with the controller's **hardware SS0** chip-select — the app passes `ALP_SPI_NO_CS`. Per-phase READY gating is optional and left unwired by default on the current module.
2. `cc3501e_reset()` — sequences enable + reset and blocks about 905 ms for the boot budget.
3. Retries `PING` until the coprocessor answers.
4. `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](https://docs.alplab.ai/e1m/e1m-aen#cc3501e-coprocessor)).
5. `GET_DIAG_INFO`.
6. Liveness soak: `PING` every 500 ms (plus `GET_VERSION` every 8th cycle). **The soak loops forever.** When the build sets `CC3501E_WIFI_SSID` (empty by default, so a default build skips it), the soak also attempts `WIFI_CONNECT`; only after a successful connect does it run `cc3501e_net_probe()`, which carries the two demos below — power presets first, then `RECOVER` and 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, the `radio_ok` flag and a `PING`, then leaves the device on `BALANCED`. Read `radio_ok`: a `RESP_OK` to a power-policy request means *queued*, not applied, because the firmware defers the work to its own task — so `radio_ok` reports whether the *previous* radio apply was realised (firmware that predates the flag reports `1`).
- **Power off and wake** (new in v0.17.0): after `cc3501e_recover()`, cuts the supply with `cc3501e_power_off()`, shows that calls then fail fast with `ALP_ERR_NOT_READY` instead of timing out, and wakes the device with `cc3501e_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`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/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`

```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`](https://github.com/alplabai/cc3501e-bridge-firmware). See [E1M-AEN — CC3501E coprocessor](https://docs.alplab.ai/e1m/e1m-aen#cc3501e-coprocessor) for the current status, including the open link-wedge issues.

## See also

- [E1M-AEN — CC3501E coprocessor](https://docs.alplab.ai/e1m/e1m-aen#cc3501e-coprocessor)
- [`<alp/chips/cc3501e.h>`](https://docs.alplab.ai/sdk/chips) — host driver
- [Bridge protocol `<alp/protocol/cc3501e.h>`](https://github.com/alplabai/alp-sdk/blob/main/include/alp/protocol/cc3501e.h)
