summaryrefslogtreecommitdiff
path: root/platforms/stm32/f3.yaml
blob: 6586a7d3ec87cbc147fe17370caa682c26ab09ae (plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
- match:
    mem: 6
  mem:
    flash:
      size: 32k
    ram:
      size: 12k
    ccm:
      size: 4k

- match:
    mem: 8
  mem:
    flash:
      size: 64k
    ram:
      size: 12k
    ccm:
      size: 4k

- match:
    mem: b
  mem:
    flash:
      size: 128k
    ram:
      size: 32k
    ccm:
      size: 8k

- match:
    mem: c
  mem:
    flash:
      size: 256k
    ram:
      size: 40k
    ccm:
      size: 8k

- match:
    mem: d
  mem:
    flash:
      size: 384k
    ram:
      size: 64k
    ccm:
      size: 16k

- match:
    mem: e
  mem:
    flash:
      size: 512k
    ram:
      size: 64k
    ccm:
      size: 16k

- mem:
    flash:
      origin: 0x08000000
    ram:
      origin: 0x20000000
    ccm:
      origin: 0x10000000

  periph:
    stm32_dma:
      DMA1:
        type: v1
        offset: 0x40020000
      DMA2:
        type: v1
        offset: 0x40020400

    stm32_flash:
      FLASH:
        type: f1
        offset: 0x40022000

    stm32_gpio:
      GPIOA:
        offset: 0x48000000
      GPIOB:
        offset: 0x48000400
      GPIOC:
        offset: 0x48000800
      GPIOD:
        offset: 0x48000c00
      GPIOE:
        offset: 0x48001000
      GPIOF:
        offset: 0x48001400

    stm32_timer:
      TIM1:
        offset: 0x40012c00
      TIM2:
        offset: 0x40000000
      TIM3:
        offset: 0x40000400
      TIM4:
        offset: 0x40000800
      TIM5:
        offset: 0x40000c00
      TIM6:
        offset: 0x40001000
      TIM7:
        offset: 0x40001400
      TIM8:
        offset: 0x40013400

    rcc:
      RCC:
        offset: 0x40021000
        type: f3
        bus:
          AHB:
            DMA1: 0
            DMA2: 1
            SRAM: 2
            FLITF: 4
            FSMC: 5
            CRC: 6
            GPIOH: 16
            GPIOA: 17
            GPIOB: 18
            GPIOC: 19
            GPIOD: 20
            GPIOE: 21
            GPIOF: 22
            GPIOG: 23
            TSC: 24
            ADC1: 28
            ADC2: 28
            ADC12: 28
            ADC3: 29
            ADC4: 29
            ADC34: 29

          APB1:
            TIM2: 0
            TIM3: 1
            TIM4: 2
            TIM6: 4
            TIM7: 5
            WWDG: 11
            SPI2: 14
            SPI3: 15
            USART2: 17
            USART3: 18
            UART4: 19
            UART5: 20
            I2C1: 21
            I2C2: 22
            USB: 23
            CAN: 25
            DAC2: 26
            PWR: 28
            DAC1: 29
            I2C3: 30

          APB2:
            SYSCFG: 0
            TIM1: 11
            SPI1: 12
            TIM8: 13
            USART1: 14
            SPI4: 15
            TIM15: 16
            TIM16: 17
            TIM17: 18
            TIM10: 20

  interrupt:
    irq:
      0: WWDG
      1: PVD
      2: TAMP_STAMP
      3: RTC_WKUP
      4: FLASH
      5: RCC
      6: EXTI0
      7: EXTI1
      8: EXTI2_TS
      9: EXTI3
      10: EXTI4
      11: DMA1_CH1
      12: DMA1_CH2
      13: DMA1_CH3
      14: DMA1_CH4
      15: DMA1_CH5
      16: DMA1_CH6
      17: DMA1_CH7
      18: ADC12
      19: USB_HP_CAN_TX
      20: USB_LP_CAN_RX0
      21: CAN_RX1
      22: CAN_SCE
      23: EXTI9_5
      24: TIM1_BRK_TIM15
      25: TIM1_UP_TIM16
      26: TIM1_TRG_COM_TIM17
      27: TIM1_CC
      28: TIM2
      29: TIM3
      30: TIM4
      31: I2C1_EV
      32: I2C1_ER
      33: I2C2_EV
      34: I2C2_ER
      35: SPI1
      36: SPI2
      37: USART1
      38: USART2
      39: USART3
      40: EXTI15_10
      41: RTC_Alarm
      42: USB_WKUP
      43: TIM8_BRK
      44: TIM8_UP
      45: TIM8_TRG_COM
      46: TIM8_CC
      47: ADC3
      48: FSMC
      51: SPI3
      52: UART4
      53: UART5
      54: TIM6_DAC1
      55: TIM7_DAC2
      56: DMA2_CH1
      57: DMA2_CH2
      58: DMA2_CH3
      59: DMA2_CH4
      60: DMA2_CH5
      61: ADC4
      64: COMP1_2_3
      65: COMP4_5_6
      66: COMP7
      72: I2C3_EV
      73: I2C3_ER
      74: USB_HP_2
      75: USB_LP_2
      76: USB_WKUP_2
      77: TIM20_BRK
      78: TIM20_UP
      79: TIM20_TRG_COM
      80: TIM20_CC
      81: FPU
      84: SPI4
      57: DMA2_Stream1
      58: DMA2_Stream2
      59: DMA2_Stream3
      60: DMA2_Stream4
      61: ETH
      62: ETH_WKUP
      63: CAN2_TX
      64: CAN2_RX0
      65: CAN2_RX1

  define:
    - STM32F3

  meta:
    cpu: cortex-m4f