From ffb00cf6ad36f4d13dd85833950e50b355a95288 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 28 Nov 2024 16:14:14 +0800 Subject: [PATCH] turns out it helps if you put explicit pull-ups on the I/Os reverting this change --- libs/xous-bio-bdma/src/bio_tests/i2c.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/xous-bio-bdma/src/bio_tests/i2c.rs b/libs/xous-bio-bdma/src/bio_tests/i2c.rs index d4fe67cdd..635bf63e3 100644 --- a/libs/xous-bio-bdma/src/bio_tests/i2c.rs +++ b/libs/xous-bio-bdma/src/bio_tests/i2c.rs @@ -22,7 +22,7 @@ pub fn i2c_test() -> usize { // configure & run the 0th machine // 400kHz clock -> 100kHz toggle rate = 0x7D0_0000 @ 800MHz rate FCLK // 1600kHz clock -> 400kHz toggle rate = 0x1F4_0000 @ 800MHz rate FCLK - bio_ss.bio.wo(utra::bio_bdma::SFR_QDIV0, 0x7D0_0000); + bio_ss.bio.wo(utra::bio_bdma::SFR_QDIV0, 0x1F4_0000); // clear all events bio_ss.bio.wfo(utra::bio_bdma::SFR_EVENT_CLR_SFR_EVENT_CLR, 0xFFFF_FF);