Skip to content

Commit

Permalink
Put back the Lock() command on the H7xx flash write routines, seems t…
Browse files Browse the repository at this point in the history
…he data corruption issue no longer appears with the latest version of the HAL
  • Loading branch information
Emilie Gillet committed Nov 22, 2019
1 parent 0de6de5 commit a1e5bac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/sector_storage_h7xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class ChunkStorage {
HAL_FLASH_Unlock();
WriteChunk(next_state_chunk_index_, state_data_);
next_state_chunk_index_++;
HAL_FLASH_Lock();
}
}

Expand All @@ -153,6 +154,7 @@ class ChunkStorage {
WriteChunk(0, persistent_data_);
WriteChunk(1, state_data_);
next_state_chunk_index_ = 2;
HAL_FLASH_Lock();
}

template<typename T>
Expand Down

0 comments on commit a1e5bac

Please sign in to comment.