Skip to content

Commit 712a79e

Browse files
committed
Add "remap" item in stm32 config
1 parent 2ceb6c5 commit 712a79e

File tree

18 files changed

+132
-18
lines changed

18 files changed

+132
-18
lines changed

qiling/extensions/mcu/stm32f4/stm32f401.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,20 @@
5757
"struct": "STM32F4xxExti",
5858
"type": "peripheral"
5959
},
60+
"CODE": {
61+
"base": 0x08000000,
62+
"size": 0x10000,
63+
"alias": 0x0,
64+
"type": "remap"
65+
},
66+
"CODE": {
67+
"base": 0x08000000,
68+
"size": 0x80000,
69+
"alias": 0x0,
70+
"type": "remap"
71+
},
6072
"FLASH": {
61-
"base": 0x8000000,
73+
"base": 0x08000000,
6274
"size": 0x80000,
6375
"type": "memory"
6476
},

qiling/extensions/mcu/stm32f4/stm32f405.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,14 @@
9494
"struct": "STM32F4xxExti",
9595
"type": "peripheral"
9696
},
97+
"CODE": {
98+
"base": 0x08000000,
99+
"size": 0x100000,
100+
"alias": 0x0,
101+
"type": "remap"
102+
},
97103
"FLASH": {
98-
"base": 0x8000000,
104+
"base": 0x08000000,
99105
"size": 0x100000,
100106
"type": "memory"
101107
},

qiling/extensions/mcu/stm32f4/stm32f407.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,14 @@
111111
"struct": "STM32F4xxExti",
112112
"type": "peripheral"
113113
},
114+
"CODE": {
115+
"base": 0x08000000,
116+
"size": 0x100000,
117+
"alias": 0x0,
118+
"type": "remap"
119+
},
114120
"FLASH": {
115-
"base": 0x8000000,
121+
"base": 0x08000000,
116122
"size": 0x100000,
117123
"type": "memory"
118124
},

qiling/extensions/mcu/stm32f4/stm32f410.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,14 @@
6262
"struct": "STM32F4xxExti",
6363
"type": "peripheral"
6464
},
65+
"CODE": {
66+
"base": 0x08000000,
67+
"size": 0x20000,
68+
"alias": 0x0,
69+
"type": "remap"
70+
},
6571
"FLASH": {
66-
"base": 0x8000000,
72+
"base": 0x08000000,
6773
"size": 0x20000,
6874
"type": "memory"
6975
},

qiling/extensions/mcu/stm32f4/stm32f411.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,14 @@
5757
"struct": "STM32F4xxExti",
5858
"type": "peripheral"
5959
},
60+
"CODE": {
61+
"base": 0x08000000,
62+
"size": 0x80000,
63+
"alias": 0x0,
64+
"type": "remap"
65+
},
6066
"FLASH": {
61-
"base": 0x8000000,
67+
"base": 0x08000000,
6268
"size": 0x80000,
6369
"type": "memory"
6470
},

qiling/extensions/mcu/stm32f4/stm32f412.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,14 @@
7979
"struct": "STM32F4xxExti",
8080
"type": "peripheral"
8181
},
82+
"CODE": {
83+
"base": 0x08000000,
84+
"size": 0x100000,
85+
"alias": 0x0,
86+
"type": "remap"
87+
},
8288
"FLASH": {
83-
"base": 0x8000000,
89+
"base": 0x08000000,
8490
"size": 0x100000,
8591
"type": "memory"
8692
},

qiling/extensions/mcu/stm32f4/stm32f413.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,14 @@
9595
"struct": "STM32F4xxExti",
9696
"type": "peripheral"
9797
},
98+
"CODE": {
99+
"base": 0x08000000,
100+
"size": 0x180000,
101+
"alias": 0x0,
102+
"type": "remap"
103+
},
98104
"FLASH": {
99-
"base": 0x8000000,
105+
"base": 0x08000000,
100106
"size": 0x180000,
101107
"type": "memory"
102108
},

qiling/extensions/mcu/stm32f4/stm32f415.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,14 @@
102102
"struct": "STM32F4xxExti",
103103
"type": "peripheral"
104104
},
105+
"CODE": {
106+
"base": 0x08000000,
107+
"size": 0x100000,
108+
"alias": 0x0,
109+
"type": "remap"
110+
},
105111
"FLASH": {
106-
"base": 0x8000000,
112+
"base": 0x08000000,
107113
"size": 0x100000,
108114
"type": "memory"
109115
},

qiling/extensions/mcu/stm32f4/stm32f417.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,14 @@
119119
"struct": "STM32F4xxExti",
120120
"type": "peripheral"
121121
},
122+
"CODE": {
123+
"base": 0x08000000,
124+
"size": 0x100000,
125+
"alias": 0x0,
126+
"type": "remap"
127+
},
122128
"FLASH": {
123-
"base": 0x8000000,
129+
"base": 0x08000000,
124130
"size": 0x100000,
125131
"type": "memory"
126132
},

qiling/extensions/mcu/stm32f4/stm32f423.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,14 @@
103103
"struct": "STM32F4xxExti",
104104
"type": "peripheral"
105105
},
106+
"CODE": {
107+
"base": 0x08000000,
108+
"size": 0x180000,
109+
"alias": 0x0,
110+
"type": "remap"
111+
},
106112
"FLASH": {
107-
"base": 0x8000000,
113+
"base": 0x08000000,
108114
"size": 0x180000,
109115
"type": "memory"
110116
},

0 commit comments

Comments
 (0)