Commit 2958738
committed
Fix double-write-after-erase in NVM...WRITEONCE
when wolfBoot_update_trigger is called on a device with NVM_ write-once
workaround, it will cause an illegal second write to flash to set the
UPDATING flag.
Instead, write the flag and the trailer in NVM_CACHE before committing
to the flash.1 parent 2b996f8 commit 2958738
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
| 756 | + | |
756 | 757 | | |
757 | 758 | | |
758 | 759 | | |
| 760 | + | |
759 | 761 | | |
| 762 | + | |
760 | 763 | | |
761 | 764 | | |
762 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
763 | 775 | | |
764 | 776 | | |
765 | 777 | | |
| |||
771 | 783 | | |
772 | 784 | | |
773 | 785 | | |
774 | | - | |
775 | | - | |
776 | 786 | | |
777 | 787 | | |
778 | 788 | | |
| |||
0 commit comments