tillitis-key/hw/application_fpga/fw/tk1
Jonas Thörnblad 8f2f312531
fpga/fw: Resize ROM and FW_RAM, add RESETINFO partition
In order to be able to leave data for firmware signalling the
intention with a reset or to leave data for the next app in a chain of
apps, we introduce a part of FW_RAM that can be used to store this
data. In order to do this, we:

- Change size of ROM from 6 KB to 8 KB.
- Change size of FW_RAM, from 2 KB to 4 KB.
- Add RESETINFO memory partition inside FW_RAM.
- Add generation of map file.
- Change CFLAGS from using -O2 to using -Os.
- Update address ranges for valid access to ROM and FW_RAM.
- Move stack to be located before data+bss and the RESETINFO data
  above them. This also means we introduce hardware stack overflow
  protection through the Security Monitor.
- Revise firmware README to the new use of FW_RAM.
2025-02-21 11:15:34 +01:00
..
blake2s Rename to TK1 2022-10-26 09:20:02 +02:00
assert.c fw: Remove unused header includes 2024-03-26 13:09:06 +01:00
assert.h fw: clang-tidy and splint: New make target: check 2023-03-22 11:05:32 +01:00
firmware.lds fpga/fw: Resize ROM and FW_RAM, add RESETINFO partition 2025-02-21 11:15:34 +01:00
led.c fw: Remove unusued forever_redflash() 2024-03-18 16:19:59 +01:00
led.h fw: Remove unusued forever_redflash() 2024-03-18 16:19:59 +01:00
lib.c fw: remove warning of missing prototypes when building with QEMU console 2024-09-19 16:52:04 +02:00
lib.h fw: remove warning of missing prototypes when building with QEMU console 2024-09-19 16:52:04 +02:00
main.c fpga/fw: Resize ROM and FW_RAM, add RESETINFO partition 2025-02-21 11:15:34 +01:00
Makefile fw: Move LED defines and function to own files 2023-03-14 10:25:01 +01:00
proto.c fw: Minimal CDC implementation of new framing protocol 2025-02-11 13:50:03 +01:00
proto.h ch552: Add new USB debug pipe (TKEYCTRL) 2025-02-11 13:50:05 +01:00
start.S fpga/fw: Resize ROM and FW_RAM, add RESETINFO partition 2025-02-21 11:15:34 +01:00
state.h fw: Simplify logic 2023-03-14 11:31:47 +01:00
types.h fw: Introduce an explicit state machine - changes protocol! 2022-11-28 16:17:19 +01:00