Skip to content

Pico-W Flash Hang Under FreeRTOS #2665

@tjquillan

Description

@tjquillan

When attempting to do flash writes (erase the flash) under FreeRTOS, I appear to encounter an unrecoverable hang.

For additional context, I am using the Bluetooth functionality through the provided BTStack. I believe this may have something to do with the problem, but am not sure, as I see the btstack logs interacting with flash at startup. Here are the logs from an execution of the program:

[00:00:01.054] LOG -- btstack_tlv_flash_bank.c.548: found bank 0
[00:00:01.055] LOG -- btstack_tlv_flash_bank.c.239: test erased: bank 0, offset 56
[00:00:01.057] LOG -- btstack_tlv_flash_bank.c.583: Flash clean after last found tag
[00:00:01.058] LOG -- btstack_tlv_flash_bank.c.598: write offset 38
[00:00:01.059] LOG -- btstack_tlv.c.48: TLV Instance 1001B810
[00:00:01.060] LOG -- le_device_db_tlv.c.159: num valid le device entries 0
Version: 7.95.61 (abcd531 CY) CRC: 4528a809 Date: Wed 2023-01-11 10:29:38 PST Ucode Ver: 1043.2169 FWID 01-7afb0879
cyw43 loaded ok, mac 28:cd:c1:08:f5:35
Flash not initialized, setting to default values

Reproduction Repo: https://github.com/tjquillan/picow_freertos_flash_write_hang_repro
Reproduction repo was created using the VSCode extension.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions