Skip to content

Commit c86b6a0

Browse files
bors[bot]matticorichardeoin
authored
Merge #554
554: Update STM32H7 SVDs and add H73X/H72X device family r=adamgreig a=mattico WIP due to the large number of changes in the SVD files. Co-authored-by: Matt Ickstadt <mattico8@gmail.com> Co-authored-by: Richard Meadows <962920+richardeoin@users.noreply.github.com>
2 parents 071a2b4 + 7c8144f commit c86b6a0

25 files changed

+1915
-548
lines changed

devices/common_patches/dma/bdma_v2_new.yaml

Lines changed: 1101 additions & 0 deletions
Large diffs are not rendered by default.

devices/common_patches/h7_common_dualcore.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -748,16 +748,3 @@ _copy:
748748
from: TIM2
749749
TIM14:
750750
from: TIM2
751-
752-
SYSCFG:
753-
_add:
754-
PWRCR:
755-
description: SYSCFG Power Control Register
756-
addressOffset: 0x2C
757-
access: read-write
758-
resetValue: 0x00000000
759-
fields:
760-
ODEN:
761-
description: Overdrive enable, this bit allows to activate the LDO regulator overdrive mode. This bit must be written only in VOS1 voltage scaling mode
762-
bitOffset: 0
763-
bitWidth: 1

devices/common_patches/h7_common_highmemory.yaml

Lines changed: 115 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ _modify:
1212
name: FDCAN2
1313
DAC:
1414
name: DAC1
15+
OCTOSPI1_CONTROL_REGISTER:
16+
name: OCTOSPI1
1517

1618
# The SVD is just quite different to the RM for all these registers.
1719
# We'll go with the RM convention even though it is inconsistent too.
@@ -314,6 +316,10 @@ AXI:
314316

315317
_delete:
316318
- DMA2
319+
- UART4
320+
- UART5
321+
- UART7
322+
- UART8
317323
- USART9
318324
- USART10
319325

@@ -346,16 +352,38 @@ _add:
346352
DMA2_STR7:
347353
value: 70
348354
description: DMA2 Stream7
349-
UART9:
355+
UART4:
350356
derivedFrom: USART1
351-
baseAddress: 0x40018000
357+
baseAddress: 0x40004C00
358+
interrupts:
359+
UART4:
360+
description: UART4 global interrupt
361+
value: 52
362+
UART5:
363+
derivedFrom: USART1
364+
baseAddress: 0x40005000
365+
interrupts:
366+
UART5:
367+
description: UART5 global interrupt
368+
value: 53
369+
UART7:
370+
derivedFrom: USART1
371+
baseAddress: 0x40007800
352372
interrupts:
353373
UART7:
354374
description: UART7 global interrupt
355375
value: 82
376+
UART8:
377+
derivedFrom: USART1
378+
baseAddress: 0x40007C00
379+
interrupts:
356380
UART8:
357381
description: UART8 global interrupt
358382
value: 83
383+
UART9:
384+
derivedFrom: USART1
385+
baseAddress: 0x40018000
386+
interrupts:
359387
UART9:
360388
description: UART9 global interrupt
361389
value: 140
@@ -466,96 +494,9 @@ RCC:
466494
bitOffset: 0
467495
bitWidth: 1
468496

469-
CDCCIPR:
470-
_delete:
471-
- "QSPI*"
472-
_add:
473-
OCTOSPISEL:
474-
description: "OCTOSPI kernel clock source selection"
475-
bitOffset: 4
476-
bitWidth: 2
477-
_modify:
478-
CKPERSRC:
479-
name: CKPERSEL
480-
SDMMCSRC:
481-
name: SDMMCSEL
482-
FMCSRC:
483-
name: FMCSEL
484-
CDCCIP1R:
485-
_delete:
486-
- "SAI23*"
487-
_add:
488-
SAI2ASEL:
489-
description: "SAI2 kernel clock source A source selection"
490-
bitOffset: 6
491-
bitWidth: 3
492-
SAI2BSEL:
493-
description: "SAI2 kernel clock source B source selection"
494-
bitOffset: 9
495-
bitWidth: 3
496-
_modify:
497-
SWPSRC:
498-
name: SWPSEL
499-
FDCANSRC:
500-
name: FDCANSEL
501-
DFSDM1SRC:
502-
name: DFSDM1SEL
503-
SPDIFSRC:
504-
name: SPDIFRXSEL
505-
SPI45SRC:
506-
name: SPI45SEL
507-
SPI123SRC:
508-
name: SPI123SEL
509-
SAI1SRC:
510-
name: SAI1SEL
511-
CDCCIP2R:
512-
_modify:
513-
LPTIM1SRC:
514-
name: LPTIM1SEL
515-
CECSRC:
516-
name: CECSEL
517-
USBSRC:
518-
name: USBSEL
519-
I2C123SRC:
520-
name: I2C123SEL
521-
RNGSRC:
522-
name: RNGSEL
523-
USART16SRC:
524-
name: USART16910SEL
525-
description: "USART1, 6, 9 and 10 kernel clock source selection"
526-
USART234578SRC:
527-
name: USART234578SEL
528-
SRDCCIPR:
529-
_delete:
530-
- "SAI4*"
531-
_add:
532-
DFSDM2SEL:
533-
description: "DFSDM2 kernel clock source selection"
534-
bitOffset: 27
535-
bitWidth: 1
536-
_modify:
537-
SPI6SRC:
538-
name: SPI6SEL
539-
ADCSRC:
540-
name: ADCSEL
541-
LPTIM345SRC:
542-
name: LPTIM3SEL # LPTIM3 only
543-
LPTIM2SRC:
544-
name: LPTIM2SEL
545-
I2C4SRC:
546-
name: I2C4SEL
547-
LPUART1SRC:
548-
name: LPUART1SEL
549-
550-
D3CFGR:
551-
_delete: "*"
552-
_add:
553-
D3PPRE:
554-
description: D3 domain APB4 prescaler
555-
bitOffset: 4
556-
bitWidth: 3
557-
558497
CR:
498+
_clear:
499+
"*"
559500
_modify:
560501
RC48ON:
561502
name: HSI48ON
@@ -566,12 +507,16 @@ RCC:
566507
RC48CAL:
567508
name: HSI48CAL
568509
CFGR:
510+
_clear:
511+
"*"
569512
_modify:
570513
MCO1SEL:
571514
name: MCO1
572515
MCO2SEL:
573516
name: MCO2
574517
CIER:
518+
_clear:
519+
"*"
575520
_modify:
576521
RC48RDYIE:
577522
name: HSI48RDYIE
@@ -580,16 +525,23 @@ RCC:
580525
RC48RDYF:
581526
name: HSI48RDYF
582527
CICR:
528+
_clear:
529+
"*"
583530
_modify:
584531
RC48RDYC:
585532
name: HSI48RDYC
586533
BDCR:
534+
_clear:
535+
"*"
587536
_modify:
588-
VSWRST:
589-
name: BDRST
590537
RTCSRC:
591538
name: RTCSEL
539+
CSR:
540+
_clear:
541+
"*"
592542
PLL2DIVR:
543+
_clear:
544+
"*"
593545
_modify:
594546
DIVR1:
595547
name: DIVR2
@@ -599,6 +551,15 @@ RCC:
599551
name: DIVP2
600552
DIVN1:
601553
name: DIVN2
554+
"A?B?RSTR,A?B??RSTR":
555+
_clear:
556+
"*RST"
557+
"A?B?ENR,A?B??ENR,C1_A?B?ENR,C1_A?B??ENR":
558+
_clear:
559+
"*EN"
560+
"A?B?LPENR,A?B??LPENR,C1_A?B?LPENR,C1_A?B??LPENR":
561+
_clear:
562+
"*LPEN"
602563
APB1LRSTR:
603564
_modify:
604565
USART7RST:
@@ -670,6 +631,27 @@ RCC:
670631
FLITFLPEN:
671632
name: FLASHPREN
672633
description: "Flash interface clock enable during csleep mode"
634+
RSR:
635+
_clear:
636+
"*RSTF"
637+
PLLCKSELR,PLLCFGR,PLL1DIVR,CDCFGR?,CDCCIPR,CDCCIP?R:
638+
_clear:
639+
"*"
640+
SRDAMR,SRDCCIPR:
641+
_clear:
642+
"*"
643+
644+
645+
SYSCFG:
646+
_modify:
647+
SYSCFG_BRK_LOCKUPR:
648+
name: CFGR
649+
addressOffset: 0x18
650+
PMCR:
651+
_delete: # Functionality not available on these parts
652+
- BOOSTE
653+
- EPIS
654+
673655

674656
TIM1,TIM8:
675657
DMAR:
@@ -752,22 +734,6 @@ PWR:
752734
- PWR_
753735
_delete:
754736
_interrupts: WWDG1_RST # Doesn't exist at all on these parts
755-
CR3:
756-
# Annoyingly RM0455 names these fields differently to RM0399 whilst
757-
# they have the same function
758-
_add:
759-
SMPSEXTRDY:
760-
description: SMPS step-down converter external supply ready
761-
bitOffset: 16
762-
bitWidth: 1
763-
SMPSLEVEL:
764-
description: Step-down converter voltage output level selection
765-
bitOffset: 4
766-
bitWidth: 2
767-
SMPSEXTHP:
768-
description: Step-down converter forced ON and in High Power MR mode
769-
bitOffset: 3
770-
bitWidth: 1
771737

772738
RAMECC:
773739
_add:
@@ -827,14 +793,53 @@ IWDG:
827793
_strip:
828794
- IWDG_
829795

830-
"USART*":
796+
USART2:
797+
_add:
798+
_interrupts:
799+
USART2:
800+
description: USART2 global interrupt
801+
value: 38
802+
USART3:
803+
_add:
804+
_interrupts:
805+
USART3:
806+
description: USART3 global interrupt
807+
value: 39
808+
USART6:
809+
_add:
810+
_interrupts:
811+
USART6:
812+
description: USART6 global interrupt
813+
value: 71
814+
815+
"USART*,UART*":
831816
BRR:
832817
_modify:
833818
BRR_4_15:
834819
name: BRR4
835820
BRR_0_3:
836821
name: BRR0
837822
_merge: ["BRR*"]
823+
CR1:
824+
_merge:
825+
- "DEAT*"
826+
- "DEDT*"
827+
CR2:
828+
_modify:
829+
TAINV:
830+
name: DATAINV
831+
_merge:
832+
- "ABRMOD*"
833+
834+
"UART*":
835+
CR2:
836+
_modify:
837+
ADD0_3:
838+
name: ADD0R
839+
ADD4_7:
840+
name: ADD4R
841+
_merge:
842+
- "ADD*R"
838843

839844
# TIM3, TIM4, TIM12, TIM13, TIM14 are 16-bit, whilst TIM2 is 32-bit
840845
_copy:

devices/common_patches/h7_common_singlecore.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -351,24 +351,6 @@ DMA1:
351351
description: DMA1 Stream6
352352
# DMA1_STR7 is correct
353353

354-
Ethernet_DMA:
355-
DMAMR:
356-
_modify:
357-
INTM:
358-
bitWidth: 2
359-
PR:
360-
access: read-write
361-
TXPR:
362-
access: read-write
363-
DA:
364-
access: read-write
365-
DMASBMR:
366-
_modify:
367-
RB:
368-
access: read-write
369-
MB:
370-
access: read-write
371-
372354
RCC:
373355
_modify:
374356
CIFR:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy