firmware: match simplesoc memory addresses
This commit is contained in:
parent
ad4f00e93d
commit
2cfafcdf20
@ -1,5 +1,5 @@
|
|||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH : ORIGIN = 0x80000000, LENGTH = 16M
|
FLASH : ORIGIN = 0x00000000, LENGTH = 16K
|
||||||
RAM : ORIGIN = 0x81000000, LENGTH = 16K
|
RAM : ORIGIN = 0x0004000, LENGTH = 16K
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ fn main() -> ! {
|
|||||||
let foo = "hello world\n";
|
let foo = "hello world\n";
|
||||||
loop {
|
loop {
|
||||||
for c in foo.chars() {
|
for c in foo.chars() {
|
||||||
let mem = 0x1001_3000 as *mut u8;
|
let mem = 0x00400000 as *mut u8;
|
||||||
unsafe { *mem = c as u8 }
|
unsafe { *mem = c as u8 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user