diff options
| -rw-r--r-- | embassy-stm32/src/flash/f4.rs | 4 |
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 | } |
