Skip to content

cpu/esp32: fix 6LoWPAN over BLE issue for ESP32-C3#21988

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
gschorcht:cpu/esp32c3/fix_bourder_router_ble_downlink
Jan 14, 2026
Merged

cpu/esp32: fix 6LoWPAN over BLE issue for ESP32-C3#21988
benpicco merged 1 commit intoRIOT-OS:masterfrom
gschorcht:cpu/esp32c3/fix_bourder_router_ble_downlink

Conversation

@gschorcht
Copy link
Copy Markdown
Contributor

@gschorcht gschorcht commented Jan 13, 2026

Contribution description

This PR fixes the issue 6LoWPAN over BLE issue for ESP32-C3 described in issue #19319.

A number of symbols of the BLE PHY that have to be used from ROM to ensure that they can be called when the SPI Flash cache is disabled were placed in IROM by mistake. Adding an additional ld script solves this issue.

Testing procedure

Compile and flash the boarder router example with BLE downlink on any ESP32-C3 board, for example:

WIFI_SSID="ssid" WIFI_PASS="pass" UPLINK=wifi DOWNLINK=ble \
BOARD=esp32c3-devkit make -C examples/networking/gnrc/border_router flash term

Without the PR the example will crash shortly after connecting to the WiFi AP. With the PR, the example should work as expected.

Issues/PRs references

Fixes #19319

A number of symbols of BLE PHY that have to be used from ROM to ensure that they can be called when the SPI Flash cache is disabled were placed in IROM. Adding an additional ld script solves this issue.
@github-actions github-actions bot added Platform: ESP Platform: This PR/issue effects ESP-based platforms Area: cpu Area: CPU/MCU ports labels Jan 13, 2026
@gschorcht gschorcht added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jan 13, 2026
@gschorcht gschorcht requested a review from benpicco January 13, 2026 17:46
@riot-ci
Copy link
Copy Markdown

riot-ci commented Jan 13, 2026

Murdock results

✔️ PASSED

7dd7c56 cpu/esp32c3: fix boarder_router problem with BLE downlink

Success Failures Total Runtime
11000 0 11001 15m:09s

Artifacts

@benpicco benpicco enabled auto-merge January 13, 2026 21:22
@benpicco benpicco added this pull request to the merge queue Jan 13, 2026
Merged via the queue into RIOT-OS:master with commit 5d3ef5c Jan 14, 2026
28 checks passed
@gschorcht
Copy link
Copy Markdown
Contributor Author

@benpicco Thanks.

@gschorcht gschorcht deleted the cpu/esp32c3/fix_bourder_router_ble_downlink branch January 14, 2026 19:05
@leandrolanzieri leandrolanzieri added this to the Release 2026.01 milestone Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

examples/gnrc_border_router: esp_wifi_init failed with return value 257 on ESP32-C3 with nimble_rpble

4 participants