Skip to content

Commit

Permalink
Update flash_program.c
Browse files Browse the repository at this point in the history
minor comment tweak
  • Loading branch information
kilograham authored Nov 22, 2024
1 parent a835597 commit 4c6f94c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flash/program/flash_program.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ int main() {
// Note that a whole number of sectors must be erased at a time.
printf("\nErasing target region...\n");

// Flash is "execute in place" and so will be in use when any code runs, e.g. an interrupt handler or code running on a different core
// Flash is "execute in place" and so will be in use when any code that is stored in flash runs, e.g. an interrupt handler
// or code running on a different core.
// Calling flash_range_erase or flash_range_program at the same time as flash is running code would cause a crash.
// flash_safe_execute disables interrupts and tries to cooperate with the other core to ensure flash is not in use
// See the documentation for flash_safe_execute and its assumptions and limitations
Expand Down

0 comments on commit 4c6f94c

Please sign in to comment.