mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
fw: adjust for 2 KB of FW_RAM
Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
parent
c1fffcb70b
commit
425fdb4b90
@ -197,7 +197,7 @@ int main()
|
||||
// clang-format off
|
||||
asm volatile(
|
||||
"li a0, 0xd0000000;" // FW_RAM
|
||||
"li a1, 0xd0000400;" // End of FW_RAM
|
||||
"li a1, 0xd0000800;" // End of 2 KB FW_RAM (just past the end)
|
||||
"loop:;"
|
||||
"sw zero, 0(a0);"
|
||||
"addi a0, a0, 4;"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 - Tillitis AB
|
||||
* Copyright (C) 2022, 2023 - Tillitis AB
|
||||
* SPDX-License-Identifier: GPL-2.0-only
|
||||
*/
|
||||
|
||||
@ -49,7 +49,7 @@ clear:
|
||||
/*
|
||||
* Init stack at top of fw_ram. Leave 16 byte for entering our first function
|
||||
*/
|
||||
li sp, 0xd00003f0 // 1 kiB - 16 byte in FW_RAM
|
||||
li sp, 0xd00007f0 // 2 kiB (TK1_MMIO_FW_RAM_SIZE) minus 16 byte
|
||||
|
||||
call main
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user