-
Notifications
You must be signed in to change notification settings - Fork 40
/
config.yaml
80 lines (80 loc) · 1.67 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
cpu:
svd: stm32f407.svd
vector_table: 0x08020000
#id: 0x1234_5678_BABE_1234_5678_BABE
regions:
#- name: NULL_forgiveness
#start: 0x00000000
#size: 4096
- name: ROM
start: 0x08020000
load: saturn-v4.4.3-pj-v5.bin
size: 0x80000
- name: RAM-CCM
start: 0x10000000
size: 0x18000
- name: RAM
start: 0x20000000
size: 0x20000
framebuffers:
- name: Touchscreen
width: 480
height: 320
mode: rgb565
sdl: true
#image:
# file: framebuffer.png
#- name: LCD
# width: 3840
# height: 2400
# mode: gray8
# sdl: true
peripherals:
software_spi:
- name: SW_SPI_LCD
cs: PA15
clk: PC7
miso: PC6
mosi: PG3
devices:
spi_flash:
- peripheral: SPI3
jedec_id: 0xef4016
file: ext-flash.bin
size: 0x400000
touchscreen:
- peripheral: SPI2
framebuffer: Touchscreen
swap_x_y: true
flip_x: true
scale_down: 2
usart_probe:
- peripheral: USART1
display:
- peripheral: FSMC.BANK1
framebuffer: Touchscreen
cmd_addr_bit: 0x2000
replies:
- cmd: 0xd3 # id4
data: [0x00, 0x00, 0x94, 0x88]
- cmd: 0xa1
data: [0x00, 0x93, 0x30, 0x93]
- cmd: 0x04 # device id
data: [0x30, 0x54, 0x80, 0x66]
#lcd:
# - peripheral: SW_SPI_LCD
# framebuffer: LCD
patches:
# Generate these with ./asm.py
# NOP a delay_us()
- start: 0x08051e98
data: [0x70, 0x47]
# NOP systick delay
- start: 0x08051ee8
data: [0x70, 0x47]
# Nop the fpga not being there
#- start: 0x08041F92
# data: [0x00, 0xbf]
# Skip bad eeprom data. Go to main menu
#- start: 0x08034058
# data: [0x48, 0xb1]