Add new pico_flash library with flash_safe_execute(func) #1412

Merged
kilograham merged 3 commits from pico_flash into develop 2023-06-06 11:19:27 -05:00
kilograham commented 2023-06-04 18:27:52 -05:00 (Migrated from github.com)

Add flash_safe_execute(func) method to help with preventing IRQs and other core accessing flash with pico_multicore or FreeRTOS SMP

fixes #1406

Add flash_safe_execute(func) method to help with preventing IRQs and other core accessing flash with pico_multicore or FreeRTOS SMP fixes #1406
Wren6991 (Migrated from github.com) reviewed 2023-06-04 18:27:52 -05:00
liamfraser (Migrated from github.com) reviewed 2023-06-04 18:27:52 -05:00
andygpz11 (Migrated from github.com) reviewed 2023-06-04 18:27:52 -05:00
peterharperuk (Migrated from github.com) reviewed 2023-06-06 05:01:49 -05:00
peterharperuk (Migrated from github.com) left a comment

Some minor comments

Some minor comments
peterharperuk (Migrated from github.com) commented 2023-06-06 04:41:03 -05:00

todo needs to be removed? Maybe just define PICO_FLASH_BANK_TIMEOUT?

todo needs to be removed? Maybe just define PICO_FLASH_BANK_TIMEOUT?
peterharperuk (Migrated from github.com) commented 2023-06-06 04:41:08 -05:00

ditto

ditto
@ -0,0 +1,229 @@
/*
peterharperuk (Migrated from github.com) commented 2023-06-06 04:42:06 -05:00

2023 :)

2023 :)
peterharperuk (Migrated from github.com) commented 2023-06-06 04:52:31 -05:00

nit "and has it" -> "and have it"

nit "and has it" -> "and have it"
peterharperuk commented 2023-06-06 07:03:03 -05:00 (Migrated from github.com)

Been playing with this for a bit and pairing still works. I don't have any BT code to actually test multicore use unfortunately

Been playing with this for a bit and pairing still works. I don't have any BT code to actually test multicore use unfortunately
kilograham (Migrated from github.com) reviewed 2023-06-06 07:38:33 -05:00
kilograham (Migrated from github.com) commented 2023-06-06 07:38:33 -05:00

yes, this was really left for you - i don't know what makes sense in this context as a default

yes, this was really left for you - i don't know what makes sense in this context as a default
peterharperuk (Migrated from github.com) reviewed 2023-06-06 08:10:34 -05:00
peterharperuk (Migrated from github.com) commented 2023-06-06 08:10:33 -05:00

It'll probably have to stay (very large) and or we'll have to get btstack to change erase to be able to return an error

It'll probably have to stay (very large) and or we'll have to get btstack to change erase to be able to return an error
liamfraser commented 2023-06-06 10:38:56 -05:00 (Migrated from github.com)

I will leave it to @peterharperuk to approve this one as he has already made some comments

I will leave it to @peterharperuk to approve this one as he has already made some comments
peterharperuk (Migrated from github.com) approved these changes 2023-06-06 11:13:07 -05:00
peterharperuk (Migrated from github.com) left a comment

Nice work!

Nice work!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!1412
No description provided.