Skip to content

Commit

Permalink
Merge pull request #135 from K-Society/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
maniglia authored Mar 20, 2024
2 parents 71dc139 + 1fa983e commit aae7ac6
Show file tree
Hide file tree
Showing 109 changed files with 22,637 additions and 966 deletions.
48 changes: 46 additions & 2 deletions Data_Base/STM32_Prog_DB_0x413.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
<Description>ARM 32-bit Cortex-M4 based device</Description>
<Configurations>
<!-- JTAG_SWD Interface -->
<Interface name="JTAG_SWD"/>

<Interface name="JTAG_SWD">
<!-- 1MB -->
<Configuration number="0x0">
<DBANK reference="0x0"> <ReadRegister address="0x1FFF7A22" mask="0x000FFF" value="0x400"/> </DBANK>
</Configuration>
<!-- 512kB -->
<Configuration number="0x1">
<DBANK reference="0x0"> <ReadRegister address="0x1FFF7A22" mask="0x000FFF" value="0x200"/> </DBANK>
</Configuration>
</Interface>
<!-- Bootloader Interface -->
<Interface name="Bootloader"/>
</Configurations>
Expand Down Expand Up @@ -42,9 +52,43 @@
<Description>The Flash memory interface manages CPU AHB I-Code and D-Code accesses to the Flash memory. It implements the erase and program Flash memory operations and the read and write protection mechanisms</Description>
<ErasedValue>0xFF</ErasedValue>
<Access>RWE</Access>
<FlashSize address="0x1FFFF7CC" default="0x100000"/>
<FlashSize address="0x1FFF7A22" default="0x100000"/>
<BootloaderVersion address="0x1FFF77DE"/>
<!-- 1024KB Single Bank -->
<Configuration config="0">
<Parameters address="0x08000000" name=" 1024 Kbytes Embedded Flash" size="0x100000"/>
<Description/>
<Organization>Single</Organization>
<Alignment>0x4</Alignment>
<Bank name="Bank 1">
<Field>
<Parameters address="0x08000000" name="sector0" occurrence="0x4" size="0x4000"/>
</Field>
<Field>
<Parameters address="0x08010000" name="sector4" occurrence="0x1" size="0x10000"/>
</Field>
<Field>
<Parameters address="0x08020000" name="sector5" occurrence="0x7" size="0x20000"/>
</Field>
</Bank>
</Configuration>
<Configuration config="1">
<Parameters address="0x08000000" name=" 512 Kbytes Embedded Flash" size="0x80000"/>
<Description/>
<Organization>Single</Organization>
<Alignment>0x4</Alignment>
<Bank name="Bank 1">
<Field>
<Parameters address="0x08000000" name="sector0" occurrence="0x4" size="0x4000"/>
</Field>
<Field>
<Parameters address="0x08010000" name="sector4" occurrence="0x1" size="0x10000"/>
</Field>
<Field>
<Parameters address="0x08020000" name="sector5" occurrence="0x3" size="0x20000"/>
</Field>
</Bank>
</Configuration>
<Configuration>
<Parameters address="0x08000000" name=" 1024 Kbytes Embedded Flash" size="0x100000"/>
<Description/>
Expand Down
44 changes: 27 additions & 17 deletions Data_Base/STM32_Prog_DB_0x451.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,40 @@
<Configurations>
<!-- JTAG_SWD Interface -->
<Interface name="JTAG_SWD">
<!-- 2MB Single Bank-->
<!-- 1MB Single Bank-->
<Configuration number="0x0">
<DualBank>
<ReadRegister address="0x40023C14" mask="0x20000000" value="0x20000000"/>
</DualBank>
<FlashSize>
<ReadRegister address="0x1FF0F442" mask="0x0000FFFF" value="0x0800"/>
<ReadRegister address="0x1FF0F442" mask="0x0000FFFF" value="0x0400"/>
</FlashSize>
</Configuration>
<!-- 2MB Dual Bank-->
<!-- 1MB Dual Bank-->
<Configuration number="0x1">
<DualBank>
<ReadRegister address="0x40023C14" mask="0x20000000" value="0x0"/>
</DualBank>
<FlashSize>
<ReadRegister address="0x1FF0F442" mask="0x0000FFFF" value="0x0800"/>
<ReadRegister address="0x1FF0F442" mask="0x0000FFFF" value="0x0400"/>
</FlashSize>
</Configuration>
<!-- 1MB Single Bank-->
<!-- 2MB Single Bank-->
<Configuration number="0x2">
<DualBank>
<ReadRegister address="0x40023C14" mask="0x20000000" value="0x20000000"/>
</DualBank>
<FlashSize>
<ReadRegister address="0x1FF0F442" mask="0x0000FFFF" value="0x0400"/>
<ReadRegister address="0x1FF0F442" mask="0x0000FFFF" value="0x0800"/>
</FlashSize>
</Configuration>
<!-- 1MB Dual Bank-->
<!-- 2MB Dual Bank-->
<Configuration number="0x3">
<DualBank>
<ReadRegister address="0x40023C14" mask="0x20000000" value="0x0"/>
</DualBank>
<FlashSize>
<ReadRegister address="0x1FF0F442" mask="0x0000FFFF" value="0x0400"/>
<ReadRegister address="0x1FF0F442" mask="0x0000FFFF" value="0x0800"/>
</FlashSize>
</Configuration>
<!-- Dummy Config Dual bank-->
Expand All @@ -62,13 +62,23 @@
</Interface>
<!-- Bootloader Interface -->
<Interface name="Bootloader">
<Configuration number="0x0"> <!-- 2MB Single Bank-->
<Configuration number="0x0"> <!-- 1MB Single Bank-->
<DualBank reference="0x1">
<ReadRegister address="0x1FFF0008" mask="0x2000" value="0x2000"/>
<ReadRegister address="0x1FFF0008" mask="1000EFFF" value="1000EFFF"/>
</DualBank>
</Configuration>
<Configuration number="0x1"> <!-- 2MB Dual Bank-->
<Configuration number="0x1"> <!-- 1MB Dual Bank-->
<DualBank reference="0x0">
<ReadRegister address="0x1FFF0008" mask="3000CFFF" value="3000CFFF"/>
</DualBank>
</Configuration>
<Configuration number="0x2"> <!-- 2MB Single Bank-->
<DualBank reference="0x1">
<ReadRegister address="0x1FFF0008" mask="0x2000" value="0x2000"/>
</DualBank>
</Configuration>
<Configuration number="0x3"> <!-- 2MB Single Bank-->
<DualBank reference="0x1">
<ReadRegister address="0x1FFF0008" mask="0x2000" value="0x0"/>
</DualBank>
</Configuration>
Expand Down Expand Up @@ -105,7 +115,7 @@
<FlashSize address="0x1FF0F442" default="0x200000"/>
<BootloaderVersion address="0x1FF0EDBE"/>
<!-- 2MB Single Bank -->
<Configuration config="0,5">
<Configuration config="2,5">
<Parameters address="0x08000000" name=" 2 Mbytes single bank Embedded Flash" size="0x200000"/>
<Description/>
<Organization>Single</Organization>
Expand All @@ -123,7 +133,7 @@
</Bank>
</Configuration>
<!-- 2MB Dual Bank -->
<Configuration config="1,4">
<Configuration config="3,4">
<Parameters address="0x08000000" name=" 2 Mbytes dual bank Embedded Flash" size="0x200000"/>
<Description/>
<Organization>Dual</Organization>
Expand Down Expand Up @@ -152,7 +162,7 @@
</Bank>
</Configuration>
<!-- 1MB Single Bank -->
<Configuration config="2">
<Configuration config="0">
<Parameters address="0x08000000" name=" 1 Mbyte single bank Embedded Flash" size="0x100000"/>
<Description/>
<Organization>Single</Organization>
Expand All @@ -170,7 +180,7 @@
</Bank>
</Configuration>
<!-- 1MB Dual Bank -->
<Configuration config="3">
<Configuration config="1">
<Parameters address="0x08000000" name=" 1 Mbyte dual bank Embedded Flash" size="0x100000"/>
<Description/>
<Organization>Dual</Organization>
Expand Down Expand Up @@ -207,7 +217,7 @@
<ErasedValue>0xFF</ErasedValue>
<Access>RWE</Access>
<!-- 2MB Single Bank -->
<Configuration config="0,5">
<Configuration config="0,2,5">
<Parameters address="0x00200000" name=" 2 Mbytes single bank Embedded Flash" size="0x200000"/>
<Description/>
<Organization>Single</Organization>
Expand All @@ -225,7 +235,7 @@
</Bank>
</Configuration>
<!-- 2MB Dual Bank -->
<Configuration config="1,4">
<Configuration config="1,3,4">
<Parameters address="0x00200000" name=" 2 Mbytes dual bank Embedded Flash" size="0x200000"/>
<Description/>
<Organization>Dual</Organization>
Expand Down
2 changes: 1 addition & 1 deletion Data_Base/STM32_Prog_DB_0x456.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Vendor>STMicroelectronics</Vendor>
<Type>MCU</Type>
<CPU>Cortex-M0+</CPU>
<Name>STM32G051/STM32G061</Name>
<Name>STM32G05x/STM32G06x</Name>
<Series>STM32G0</Series>
<Description>ARM 32-bit Cortex-M0+ based device</Description>
<Configurations>
Expand Down
Loading

0 comments on commit aae7ac6

Please sign in to comment.