mirror of
https://github.com/im-tomu/foboot.git
synced 2024-09-19 18:30:17 +00:00
Adjust doc, suggest different address for RAM LOAD. Issue #198.
Signed-off-by: Tim Callahan <tcal@google.com>
This commit is contained in:
parent
e928b868f5
commit
e05d875ad6
@ -51,9 +51,9 @@ During development, it may be inconvenient to load a program onto SPI flash. Or
|
||||
|
||||
If the DFU bootloader encounters the magic number `0x17ab0f23` within the first 56 bytes, then it will enable *RAM boot* mode. In this mode, the SPI flash won't be erased, and the program will be loaded to RAM.
|
||||
|
||||
Note that the value following the magic number indicates the offset where the program will be loaded to. This should be somewhere in RAM. `0x10001000` is a good value, and is guaranteed to not interfere with Foboot itself.
|
||||
Note that the value following the magic number indicates the offset where the program will be loaded to. This should be somewhere in RAM. `0x10002000` is a good value, and is guaranteed to not interfere with Foboot itself.
|
||||
|
||||
When using a Makefile as in `examples/riscv-blink` you can provide the offset as in `make LOAD_RAM_ADDR=0x10001000`. This makes sure that the linker links the binary as one block.
|
||||
When using a Makefile as in `examples/riscv-blink` you can provide the offset as in `make LOAD_RAM_ADDR=0x10002000`. This makes sure that the linker links the binary as one block.
|
||||
|
||||
## Magic Numbers
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user