aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-05-25 22:20:05 +0200
committerRasmus Melchior Jacobsen <[email protected]>2023-05-25 22:20:05 +0200
commit8528455a75aa33cf774d72ba6b35a4298bca511e (patch)
treee95074934cfde6ac9b3c68f0fde265e9066967ba /embassy-stm32
parent344e28360ff55771379202ecd06eb0cb1db38a29 (diff)
Errata if _not_ pa12 out low
Diffstat (limited to 'embassy-stm32')
-rw-r--r--embassy-stm32/src/flash/f4.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/flash/f4.rs b/embassy-stm32/src/flash/f4.rs
index 5e0e96204..8c9c93696 100644
--- a/embassy-stm32/src/flash/f4.rs
+++ b/embassy-stm32/src/flash/f4.rs
@@ -463,7 +463,7 @@ pub(crate) fn assert_not_corrupted_read() {
463 feature = "stm32f439vi", 463 feature = "stm32f439vi",
464 feature = "stm32f439zi", 464 feature = "stm32f439zi",
465 ))] 465 ))]
466 if unsafe { pac::DBGMCU.idcode().read().rev_id() < REVISION_3 && pa12_is_output_pull_low() } { 466 if unsafe { pac::DBGMCU.idcode().read().rev_id() < REVISION_3 && !pa12_is_output_pull_low() } {
467 panic!("Read corruption for stm32f42xxI and stm32f43xxI when PA12 is in use for chips below revision 3, see errata 2.2.11"); 467 panic!("Read corruption for stm32f42xxI and stm32f43xxI when PA12 is in use for chips below revision 3, see errata 2.2.11");
468 } 468 }
469 469
@@ -490,7 +490,7 @@ pub(crate) fn assert_not_corrupted_read() {
490 if unsafe { 490 if unsafe {
491 pac::FLASH.optcr().read().db1m() 491 pac::FLASH.optcr().read().db1m()
492 && pac::DBGMCU.idcode().read().rev_id() < REVISION_3 492 && pac::DBGMCU.idcode().read().rev_id() < REVISION_3
493 && pa12_is_output_pull_low() 493 && !pa12_is_output_pull_low()
494 } { 494 } {
495 panic!("Read corruption for stm32f42xxG and stm32f43xxG in dual bank mode when PA12 is in use for chips below revision 3, see errata 2.2.11"); 495 panic!("Read corruption for stm32f42xxG and stm32f43xxG in dual bank mode when PA12 is in use for chips below revision 3, see errata 2.2.11");
496 } 496 }