Initial commit.

This commit is contained in:
imi415 2022-06-20 23:32:04 +08:00
commit d26b8e2c05
Signed by: imi415
GPG Key ID: 885EC2B5A8A6F8A7
1 changed files with 19 additions and 0 deletions

19
Boot.md Normal file
View File

@ -0,0 +1,19 @@
# STi7105 hardware boot procedure
## What we have learned
* STi7105 starts execution at address `0x0000_0000`, in little endian mode.
* Boot from SPI flash: the flash is mapped to EMI address space at `0x0000_0000`, determined by hardware pins.
* The initialization process configures a bunch of registers, incl. clock and peripherals.
* SH-4 CPU has two address modes, either 29bits or 32bits. The memory mapping for both modes is different.
* As on-chip RAM is never found in documentation, we can assume that LMI DDR2 SDRAM is initialized before execution starts
* ...which probably initialized by hardware or BootROM.
* The LMI is mapped at `0x0C00_0000` in 29bit mode, `0x4000_0000` in 32bit mode.
* The Github repo contains board support for this specific board(GB620)
* Red LED is `P0_4`, Green LED is `P0_5`
## TODO
* Proper lds for bare metal testing
* Proper assembly startup for bare metal testing
## Supplementary files
[Check Here](https://cloud.imi.moe/s/AFzsnEKNfxQYjjC)