aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/lib.rs
diff options
context:
space:
mode:
authorMatthew Tran <[email protected]>2025-11-23 23:37:48 -0600
committerMatthew Tran <[email protected]>2025-11-23 23:37:48 -0600
commitdf119ba155ffde03503e8072dc9371010e71d105 (patch)
treebd14665d894673f58add42a7ed9ab2dff3ff766a /embassy-nrf/src/lib.rs
parent989efb9852c193d80e57d224a45f8080e5042267 (diff)
embassy-nrf: add workaround for anomaly 66 on nrf52
Diffstat (limited to 'embassy-nrf/src/lib.rs')
-rw-r--r--embassy-nrf/src/lib.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs
index 2f5ad352f..28d2119ae 100644
--- a/embassy-nrf/src/lib.rs
+++ b/embassy-nrf/src/lib.rs
@@ -776,6 +776,30 @@ pub fn init(config: config::Config) -> Peripherals {
776 } 776 }
777 } 777 }
778 778
779 // Workaround for anomaly 66
780 #[cfg(feature = "_nrf52")]
781 {
782 let ficr = pac::FICR;
783 let temp = pac::TEMP;
784 temp.a(0).write_value(ficr.temp().a0().read().0);
785 temp.a(1).write_value(ficr.temp().a1().read().0);
786 temp.a(2).write_value(ficr.temp().a2().read().0);
787 temp.a(3).write_value(ficr.temp().a3().read().0);
788 temp.a(4).write_value(ficr.temp().a4().read().0);
789 temp.a(5).write_value(ficr.temp().a5().read().0);
790 temp.b(0).write_value(ficr.temp().b0().read().0);
791 temp.b(1).write_value(ficr.temp().b1().read().0);
792 temp.b(2).write_value(ficr.temp().b2().read().0);
793 temp.b(3).write_value(ficr.temp().b3().read().0);
794 temp.b(4).write_value(ficr.temp().b4().read().0);
795 temp.b(5).write_value(ficr.temp().b5().read().0);
796 temp.t(0).write_value(ficr.temp().t0().read().0);
797 temp.t(1).write_value(ficr.temp().t1().read().0);
798 temp.t(2).write_value(ficr.temp().t2().read().0);
799 temp.t(3).write_value(ficr.temp().t3().read().0);
800 temp.t(4).write_value(ficr.temp().t4().read().0);
801 }
802
779 // GLITCHDET is only accessible for secure code 803 // GLITCHDET is only accessible for secure code
780 #[cfg(all(feature = "_nrf54l", feature = "_s"))] 804 #[cfg(all(feature = "_nrf54l", feature = "_s"))]
781 { 805 {