Skip to content

Commit fb46b49

Browse files
authored
Fix emulator MCU SRAM size (#3975)
1 parent 1c70118 commit fb46b49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sw-emulator/lib/periph/src/dma/axi_root_bus.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub type AxiAddr = u64;
3131

3232
const TEST_SRAM_SIZE: usize = 4 * 1024;
3333
const EXTERNAL_TEST_SRAM_SIZE: usize = 1024 * 1024;
34-
const MCU_SRAM_SIZE: usize = 384 * 1024;
34+
const MCU_SRAM_SIZE: usize = 512 * 1024;
3535

3636
pub struct AxiRootBus {
3737
pub reg: u32,
@@ -69,7 +69,7 @@ impl AxiRootBus {
6969
*SS_MCI_OFFSET + 0xc0_0000
7070
}
7171
pub fn mcu_sram_end() -> AxiAddr {
72-
Self::mcu_sram_offset() + 2 * 1024 * 1024 - 1
72+
Self::mcu_sram_offset() + MCU_SRAM_SIZE as u64 - 1
7373
}
7474
pub fn mcu_mbox0_sram_offset() -> AxiAddr {
7575
*SS_MCI_OFFSET + 0x40_0000

0 commit comments

Comments
 (0)