diff --git a/loader/src/platform/cramium/cramium.rs b/loader/src/platform/cramium/cramium.rs index 939395cdd..bcf5ebf65 100644 --- a/loader/src/platform/cramium/cramium.rs +++ b/loader/src/platform/cramium/cramium.rs @@ -68,7 +68,7 @@ pub const FLASH_BASE: usize = utralib::generated::HW_RERAM_MEM; // location of kernel, as offset from the base of ReRAM. This needs to match up with what is in link.x. // exclusive of the signature block offset -pub const KERNEL_OFFSET: usize = 0x4_0000; +pub const KERNEL_OFFSET: usize = 0x5_0000; #[cfg(feature = "cramium-soc")] pub fn early_init() -> u32 { @@ -344,6 +344,13 @@ pub fn early_init() -> u32 { i2c.i2c_await(Some(&mut ldo), false).unwrap(); crate::println!("LDO result - last value should be 0xe: {:x?}", ldo); + //------------- test USB --------------- + crate::platform::cramium::usb::init_usb(); + // this does not return if USB is initialized correctly... + unsafe { + crate::platform::cramium::usb::test_usb(); + } + //------------- test OV2640 ------------ let (pid, mid) = cam.read_id(&mut i2c); crate::println!("Camera pid {:x}, mid {:x}", pid, mid);