openmv/tools/st/cubeprog/Data_Base/STM32_Prog_DB_0x417.xml
iabdalkader f9ee15bf46 tools/st: Add cubeprog.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-02-11 17:22:20 +01:00

577 lines
21 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SCHVerif.xsd">
<Device>
<DeviceID>0x417</DeviceID>
<Vendor>STMicroelectronics</Vendor>
<Type>MCU</Type>
<CPU>Cortex-M0+</CPU>
<Name>STM32L05x/L06x/L010</Name>
<Series>STM32L0</Series>
<Description>ARM 32-bit Cortex-M0+ based device</Description>
<Configurations>
<!-- JTAG_SWD Interface -->
<Interface name="JTAG_SWD">
<Configuration number="0x0"> <!-- WRPx control the write protection of user sector-->
<WPRMOD reference="0x1">
<ReadRegister address="0x4002201C" mask="0x000000100" value="0x0"/>
</WPRMOD>
</Configuration>
<Configuration number="0x1"> <!-- WRPx control the read/write protection PcROP-->
<WPRMOD reference="0x0">
<ReadRegister address="0x4002201C" mask="0x000000100" value="0x100"/>
</WPRMOD>
</Configuration>
</Interface>
<!-- Bootloader Interface -->
<Interface name="Bootloader">
<Configuration number="0x0"> <!-- WRPx control the write protection of user sector-->
<WPRMOD reference="0x1">
<ReadRegister address="0x1FF80000" mask="0x00000100" value="0x0"/>
</WPRMOD>
</Configuration>
<Configuration number="0x1"> <!-- WRPx control the read/write protection PcROP-->
<WPRMOD reference="0x0">
<ReadRegister address="0x1FF80000" mask="0x00000100" value="0x100"/>
</WPRMOD>
</Configuration>
</Interface>
</Configurations>
<!-- Peripherals -->
<Peripherals>
<!-- Embedded SRAM -->
<Peripheral>
<Name>Embedded SRAM</Name>
<Type>Storage</Type>
<Description/>
<ErasedValue>0x00</ErasedValue>
<Access>RWE</Access>
<!-- 16 KB -->
<Configuration>
<Parameters address="0x20000000" name="SRAM" size="0x2000"/>
<Description/>
<Organization>Single</Organization>
<Bank name="Bank 1">
<Field>
<Parameters address="0x20000000" name="SRAM" occurrence="0x1" size="0x2000"/>
</Field>
</Bank>
</Configuration>
</Peripheral>
<!-- Embedded Flash -->
<Peripheral>
<Name>Embedded Flash</Name>
<Type>Storage</Type>
<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>0x00</ErasedValue>
<Access>RWE</Access>
<FlashSize address="0x1FF8007C" default="0x10000"/>
<BootloaderVersion address="0x1FF00FFE"/>
<!-- 128KB single Bank -->
<Configuration>
<Parameters address="0x08000000" name="64 Kbytes Embedded Flash" size="0x10000"/>
<Description/>
<Organization>Single</Organization>
<Alignment>0x4</Alignment>
<Bank name="Bank 1">
<Field>
<Parameters address="0x08000000" name="sector0" occurrence="0x200" size="0x80"/>
</Field>
</Bank>
<Bank name="EEPROM1">
<Field>
<Parameters address="0x08080000" name="sector65281" occurrence="0x1" size="0x800"/>
</Field>
</Bank>
</Configuration>
</Peripheral>
<!-- Data EEPROM -->
<Peripheral>
<Name>Data EEPROM</Name>
<Type>Storage</Type>
<Description>The Data EEPROM memory block. It contains user data.</Description>
<ErasedValue>0x00</ErasedValue>
<Access>RWE</Access>
<!-- 1KB single Bank -->
<Configuration>
<Parameters address="0x08080000" name=" 2 Kbytes Data EEPROM" size="0x800"/>
<Description/>
<Organization>Single</Organization>
<Alignment>0x4</Alignment>
<Bank name="Bank 1">
<Field>
<Parameters address="0x08080000" name="EEPROM1" occurrence="0x1" size="0x800"/>
</Field>
</Bank>
</Configuration>
</Peripheral>
<!-- Mirror Option Bytes -->
<Peripheral>
<Name>MirrorOptionBytes</Name>
<Type>Storage</Type>
<Description>Mirror Option Bytes contains the extra area.</Description>
<ErasedValue>0xFF</ErasedValue>
<Access>RW</Access>
<!-- 20 Bytes single bank -->
<Configuration>
<Parameters address="0x1FF80000" name=" 20 Bytes Data MirrorOptionBytes" size="0x14"/>
<Description/>
<Organization>Single</Organization>
<Alignment>0x4</Alignment>
<Bank name="MirrorOptionBytes">
<Field>
<Parameters address="0x1FF80000" name="MirrorOptionBytes" occurrence="0x1" size="0x14"/>
</Field>
</Bank>
</Configuration>
</Peripheral>
<!-- Option Bytes -->
<Peripheral>
<Name>Option Bytes</Name>
<Type>Configuration</Type>
<Description/>
<Access>RW</Access>
<Bank interface="JTAG_SWD">
<Parameters address="0x4002201C" name="Bank 1" size="0x68"/>
<Category>
<Name>Read Out Protection</Name>
<Field>
<Parameters address="0x4002201C" name="FLASH_OBR" size="0x4"/>
<AssignedBits>
<Bit>
<Name>RDP</Name>
<Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
<BitOffset>0x0</BitOffset>
<BitWidth>0x8</BitWidth>
<Access>R</Access>
<Values>
<Val value="0xAA">Level 0, no protection</Val>
<Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
<Val value="0xCC">Level 2, chip protection</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>PCROP Protection</Name>
<Field>
<Parameters address="0x4002201C" name="FLASH_OBR" size="0x4"/>
<AssignedBits>
<Bit reference="SPRMode">
<Name>WPRMOD</Name>
<Description>Sector protection mode selection option byte.</Description>
<BitOffset>0x8</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>R</Access>
<Values>
<Val value="0x0">WRPx bit defines sector write protection</Val>
<Val value="0x1">WRPx bit defines sector read/write (PCROP) protection</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>BOR Level</Name>
<Field>
<Parameters address="0x4002201C" name="FLASH_OBR" size="0x4"/>
<AssignedBits>
<Bit>
<Name>BOR_LEV</Name>
<Description>These bits contain the supply level threshold that activates/releases the reset. They can be written to program a new BOR level value into Flash memory</Description>
<BitOffset>0x10</BitOffset>
<BitWidth>0x4</BitWidth>
<Access>R</Access>
<Values>
<Val value="0x0">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x1">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x2">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x3">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x4">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x5">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x6">BOR Level OFF, reset level threshold for 1.45 V-1.55 V</Val>
<Val value="0x7">BOR Level OFF, reset level threshold for 1.45 V-1.55 V</Val>
<Val value="0x8">BOR Level 1, reset level threshold for 1.69 V-1.8 V</Val>
<Val value="0x9">BOR Level 2, reset level threshold for 1.94 V-2.1 V</Val>
<Val value="0xA">BOR Level 3, reset level threshold for 2.3 V-2.49 V</Val>
<Val value="0xB">BOR Level 4, reset level threshold for 2.54 V-2.74 V</Val>
<Val value="0xC">BOR Level 5, reset level threshold for 2.77 V-3.0 V</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>User Configuration</Name>
<Field>
<Parameters address="0x4002201C" name="FLASH_OBR" size="0x4"/>
<AssignedBits>
<Bit>
<Name>IWDG_SW</Name>
<Description/>
<BitOffset>0x14</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>R</Access>
<Values>
<Val value="0x0">Hardware independent watchdog</Val>
<Val value="0x1">Software independent watchdog</Val>
</Values>
</Bit>
<Bit>
<Name>nRST_STOP</Name>
<Description/>
<BitOffset>0x15</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>R</Access>
<Values>
<Val value="0x0">Reset generated when entering Stop mode</Val>
<Val value="0x1">No reset generated</Val>
</Values>
</Bit>
<Bit>
<Name>nRST_STDBY</Name>
<Description/>
<BitOffset>0x16</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>R</Access>
<Values>
<Val value="0x0">Reset generated when entering Standby mode</Val>
<Val value="0x1">No reset generated</Val>
</Values>
</Bit>
<Bit>
<Name>nBOOT1</Name>
<Description/>
<BitOffset>0x1F</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>R</Access>
<Values>
<Val value="0x0">Boot from Flash if BOOT0 = 0, otherwise Embedded SRAM1</Val>
<Val value="0x1">Boot from Flash if BOOT0 = 0, otherwise system memory</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>Write Protection</Name>
<Field>
<Parameters address="0x40022020" name="FLASH_WRPR1" size="0x4"/>
<AssignedBits>
<Bit config="0">
<Name>WRPOT1</Name>
<Description/>
<BitOffset>0x0</BitOffset>
<BitWidth>0x10</BitWidth>
<Access>R</Access>
<Values ByBit="true">
<Val value="0x0">Write protection not active</Val>
<Val value="0x1">Write protection active</Val>
</Values>
</Bit>
<Bit config="1">
<Name>WRPOT1</Name>
<Description/>
<BitOffset>0x0</BitOffset>
<BitWidth>0x10</BitWidth>
<Access>R</Access>
<Values ByBit="true">
<Val value="0x0">read/Write protection active</Val>
<Val value="0x1">read/Write protection not active</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
</Bank>
<Bank interface="JTAG_SWD">
<Parameters address="0x1FF80000" name="Bank 1" size="0x14"/>
<Category>
<Name>Read Out Protection</Name>
<Field>
<Parameters address="0x1FF80000" name="RDP" size="0x4"/>
<AssignedBits>
<Bit>
<Name>RDP</Name>
<Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
<BitOffset>0x0</BitOffset>
<BitWidth>0x8</BitWidth>
<Access>W</Access>
<Values>
<Val value="0xAA">Level 0, no protection</Val>
<Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
<Val value="0xCC">Level 2, chip protection</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>PCROP Protection</Name>
<Field>
<Parameters address="0x1FF80000" name="FLASH_OBR" size="0x4"/>
<AssignedBits>
<Bit reference="SPRMode">
<Name>WPRMOD</Name>
<Description>Sector protection mode selection option byte.</Description>
<BitOffset>0x8</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>W</Access>
<Values>
<Val value="0x0">WRPx bit defines sector write protection</Val>
<Val value="0x1">WRPx bit defines sector read/write (PCROP) protection</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>BOR Level</Name>
<Field>
<Parameters address="0x1FF80004" name="USER" size="0x4"/>
<AssignedBits>
<Bit>
<Name>BOR_LEV</Name>
<Description>These bits contain the supply level threshold that activates/releases the reset. They can be written to program a new BOR level value into Flash memory</Description>
<BitOffset>0x0</BitOffset>
<BitWidth>0x4</BitWidth>
<Access>W</Access>
<Values>
<Val value="0x0">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x1">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x2">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x3">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x4">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x5">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x6">BOR Level OFF, reset level threshold for 1.45 V-1.55 V</Val>
<Val value="0x7">BOR Level OFF, reset level threshold for 1.45 V-1.55 V</Val>
<Val value="0x8">BOR Level 1, reset level threshold for 1.69 V-1.8 V</Val>
<Val value="0x9">BOR Level 2, reset level threshold for 1.94 V-2.1 V</Val>
<Val value="0xA">BOR Level 3, reset level threshold for 2.3 V-2.49 V</Val>
<Val value="0xB">BOR Level 4, reset level threshold for 2.54 V-2.74 V</Val>
<Val value="0xC">BOR Level 5, reset level threshold for 2.77 V-3.0 V</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>User Configuration</Name>
<Field>
<Parameters address="0x1FF80004" name="USER" size="0x4"/>
<AssignedBits>
<Bit>
<Name>IWDG_SW</Name>
<Description/>
<BitOffset>0x4</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>W</Access>
<Values>
<Val value="0x0">Hardware independent watchdog</Val>
<Val value="0x1">Software independent watchdog</Val>
</Values>
</Bit>
<Bit>
<Name>nRST_STOP</Name>
<Description/>
<BitOffset>0x5</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>W</Access>
<Values>
<Val value="0x0">Reset generated when entering Stop mode</Val>
<Val value="0x1">No reset generated</Val>
</Values>
</Bit>
<Bit>
<Name>nRST_STDBY</Name>
<Description/>
<BitOffset>0x6</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>W</Access>
<Values>
<Val value="0x0">Reset generated when entering Standby mode</Val>
<Val value="0x1">No reset generated</Val>
</Values>
</Bit>
<Bit>
<Name>nBOOT1</Name>
<Description/>
<BitOffset>0x0F</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>W</Access>
<Values>
<Val value="0x0">Boot from Flash if BOOT0 = 0, otherwise Embedded SRAM1</Val>
<Val value="0x1">Boot from Flash if BOOT0 = 0, otherwise system memory</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>Write Protection</Name>
<Field>
<Parameters address="0x1FF80008" name="WRP1" size="0x8"/>
<AssignedBits>
<Bit>
<Name>WRPOT1</Name>
<Description/>
<BitOffset>0x0</BitOffset>
<BitWidth>0x10</BitWidth>
<Access>W</Access>
<Values ByBit="true">
<Val value="0x0">Write protection not active</Val>
<Val value="0x1">Write protection active</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
</Bank>
<Bank interface="Bootloader">
<Parameters address="0x1FF80000" name="Bank 2" size="0x14"/>
<Category>
<Name>Read Out Protection</Name>
<Field>
<Parameters address="0x1FF80000" name="RDP" size="0x4"/>
<AssignedBits>
<Bit>
<Name>RDP</Name>
<Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
<BitOffset>0x0</BitOffset>
<BitWidth>0x8</BitWidth>
<Access>RW</Access>
<Values>
<Val value="0xAA">Level 0, no protection</Val>
<Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
<Val value="0xCC">Level 2, chip protection</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>PCROP Protection</Name>
<Field>
<Parameters address="0x1FF80000" name="FLASH_OBR" size="0x4"/>
<AssignedBits>
<Bit reference="SPRMode">
<Name>WPRMOD</Name>
<Description>Sector protection mode selection option byte.</Description>
<BitOffset>0x8</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>RW</Access>
<Values>
<Val value="0x0">WRPx bit defines sector write protection</Val>
<Val value="0x1">WRPx bit defines sector read/write (PCROP) protection</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>BOR Level</Name>
<Field>
<Parameters address="0x1FF80004" name="USER" size="0x4"/>
<AssignedBits>
<Bit>
<Name>BOR_LEV</Name>
<Description>These bits contain the supply level threshold that activates/releases the reset. They can be written to program a new BOR level value into Flash memory</Description>
<BitOffset>0x0</BitOffset>
<BitWidth>0x4</BitWidth>
<Access>RW</Access>
<Values>
<Val value="0x0">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x1">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x2">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x3">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x4">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x5">BOR Level OFF, reset level threshold the 1.45 V-1.55 V</Val>
<Val value="0x6">BOR Level OFF, reset level threshold for 1.45 V-1.55 V</Val>
<Val value="0x7">BOR Level OFF, reset level threshold for 1.45 V-1.55 V</Val>
<Val value="0x8">BOR Level 1, reset level threshold for 1.69 V-1.8 V</Val>
<Val value="0x9">BOR Level 2, reset level threshold for 1.94 V-2.1 V</Val>
<Val value="0xA">BOR Level 3, reset level threshold for 2.3 V-2.49 V</Val>
<Val value="0xB">BOR Level 4, reset level threshold for 2.54 V-2.74 V</Val>
<Val value="0xC">BOR Level 5, reset level threshold for 2.77 V-3.0 V</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>User Configuration</Name>
<Field>
<Parameters address="0x1FF80004" name="USER" size="0x4"/>
<AssignedBits>
<Bit>
<Name>IWDG_SW</Name>
<Description/>
<BitOffset>0x4</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>RW</Access>
<Values>
<Val value="0x0">Hardware independent watchdog</Val>
<Val value="0x1">Software independent watchdog</Val>
</Values>
</Bit>
<Bit>
<Name>nRST_STOP</Name>
<Description/>
<BitOffset>0x5</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>RW</Access>
<Values>
<Val value="0x0">Reset generated when entering Stop mode</Val>
<Val value="0x1">No reset generated</Val>
</Values>
</Bit>
<Bit>
<Name>nRST_STDBY</Name>
<Description/>
<BitOffset>0x6</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>RW</Access>
<Values>
<Val value="0x0">Reset generated when entering Standby mode</Val>
<Val value="0x1">No reset generated</Val>
</Values>
</Bit>
<Bit>
<Name>nBOOT1</Name>
<Description/>
<BitOffset>0x0F</BitOffset>
<BitWidth>0x1</BitWidth>
<Access>RW</Access>
<Values>
<Val value="0x0">Boot from Flash if BOOT0 = 0, otherwise Embedded SRAM1</Val>
<Val value="0x1">Boot from Flash if BOOT0 = 0, otherwise system memory</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
<Category>
<Name>Write Protection</Name>
<Field>
<Parameters address="0x1FF80008" name="WRP1" size="0x8"/>
<AssignedBits>
<Bit>
<Name>WRPOT1</Name>
<Description/>
<BitOffset>0x0</BitOffset>
<BitWidth>0x10</BitWidth>
<Access>RW</Access>
<Values ByBit="true">
<Val value="0x0">Write protection not active</Val>
<Val value="0x1">Write protection active</Val>
</Values>
</Bit>
</AssignedBits>
</Field>
</Category>
</Bank>
</Peripheral>
</Peripherals>
</Device>
</Root>