Skip to content

Commit 643a925

Browse files
committed
Add error message when no firmware partition is found
1 parent f20b302 commit 643a925

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rp2_common/pico_cyw43_driver/cyw43_driver.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ bool cyw43_driver_init(async_context_t *context) {
186186
cyw43_wifi_fw_len = *(uint32_t*)(XIP_NOCACHE_NOALLOC_NOTRANSLATE_BASE + saddr);
187187
cyw43_clm_len = *(uint32_t*)(XIP_NOCACHE_NOALLOC_NOTRANSLATE_BASE + saddr + 4);
188188
fw_data = XIP_NOCACHE_NOALLOC_NOTRANSLATE_BASE + saddr + 8;
189+
} else {
190+
CYW43_DEBUG("No CYW43 firmware partition found, so cannot get firmware from partition\n");
191+
return false;
189192
}
190193
} else {
191194
CYW43_DEBUG("No partition table, so cannot get firmware from partition - get_partition_table_info returned %d\n", ret);

0 commit comments

Comments
 (0)