STM32_Prog_DB_0x421.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SCHVerif.xsd">
  3. <Device>
  4. <DeviceID>0x421</DeviceID>
  5. <Vendor>STMicroelectronics</Vendor>
  6. <Type>MCU</Type>
  7. <CPU>Cortex-M4</CPU>
  8. <Name>STM32F446xx</Name>
  9. <Series>STM32F4</Series>
  10. <Description>ARM 32-bit Cortex-M4 based device</Description>
  11. <Configurations>
  12. <!-- JTAG_SWD Interface -->
  13. <Interface name="JTAG_SWD">
  14. <Configuration number="0x0">
  15. <SPRMode reference="0x0"> <ReadRegister address="0x40023C14" mask="0x80000000" value="0x0"/> </SPRMode>
  16. </Configuration>
  17. <Configuration number="0x1">
  18. <SPRMode reference="0x1"> <ReadRegister address="0x40023C14" mask="0x80000000" value="0x80000000"/> </SPRMode>
  19. </Configuration>
  20. </Interface>
  21. <!-- Bootloader Interface -->
  22. <Interface name="Bootloader">
  23. <Configuration number="0x0">
  24. <SPRMode reference="0x0"> <ReadRegister address="0x1FFFC008" mask="0x8000" value="0x0"/> </SPRMode>
  25. </Configuration>
  26. <Configuration number="0x1">
  27. <SPRMode reference="0x1"> <ReadRegister address="0x1FFFC008" mask="0x8000" value="0x8000"/> </SPRMode>
  28. </Configuration>
  29. </Interface>
  30. </Configurations>
  31. <!-- Peripherals -->
  32. <Peripherals>
  33. <!-- Embedded SRAM -->
  34. <Peripheral>
  35. <Name>Embedded SRAM</Name>
  36. <Type>Storage</Type>
  37. <Description/>
  38. <ErasedValue>0x00</ErasedValue>
  39. <Access>RWE</Access>
  40. <!-- 128 KB 0x20000-->
  41. <Configuration>
  42. <Parameters address="0x20000000" name="SRAM" size="0x20000"/>
  43. <Description/>
  44. <Organization>Single</Organization>
  45. <Bank name="Bank 1">
  46. <Field>
  47. <Parameters address="0x20000000" name="SRAM" occurence="0x1" size="0x20000"/>
  48. </Field>
  49. </Bank>
  50. </Configuration>
  51. </Peripheral>
  52. <!-- Embedded Flash -->
  53. <Peripheral>
  54. <Name>Embedded Flash</Name>
  55. <Type>Storage</Type>
  56. <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>
  57. <ErasedValue>0xFF</ErasedValue>
  58. <Access>RWE</Access>
  59. <FlashSize address="0x1FFF7A22" default="0x80000"/>
  60. <!-- 512KB Single Bank -->
  61. <Configuration>
  62. <Parameters address="0x08000000" name=" 512 Kbytes Embedded Flash" size="0x80000"/>
  63. <Description/>
  64. <Organization>Single</Organization>
  65. <Allignement>0x4</Allignement>
  66. <Bank name="Bank 1">
  67. <Field>
  68. <Parameters address="0x08000000" name="sector0" occurence="0x4" size="0x4000"/>
  69. </Field>
  70. <Field>
  71. <Parameters address="0x08010000" name="sector4" occurence="0x1" size="0x10000"/>
  72. </Field>
  73. <Field>
  74. <Parameters address="0x08020000" name="sector5" occurence="0x3" size="0x20000"/>
  75. </Field>
  76. </Bank>
  77. </Configuration>
  78. </Peripheral>
  79. <!-- OTP -->
  80. <Peripheral>
  81. <Name>OTP</Name>
  82. <Type>Storage</Type>
  83. <Description>The Data OTP memory block. It contains the one time programmable bits.</Description>
  84. <ErasedValue>0xFF</ErasedValue>
  85. <Access>RW</Access>
  86. <!-- 512 Bytes single bank -->
  87. <Configuration>
  88. <Parameters address="0x1FFF7800" name=" 512 Bytes Data OTP" size="0x210"/>
  89. <Description/>
  90. <Organization>Single</Organization>
  91. <Allignement>0x4</Allignement>
  92. <Bank name="OTP">
  93. <Field>
  94. <Parameters address="0x1FFF7800" name="OTP" occurence="0x1" size="0x210"/>
  95. </Field>
  96. </Bank>
  97. </Configuration>
  98. </Peripheral>
  99. <!-- Mirror Option Bytes -->
  100. <Peripheral>
  101. <Name>MirrorOptionBytes</Name>
  102. <Type>Storage</Type>
  103. <Description>Mirror Option Bytes contains the extra area.</Description>
  104. <ErasedValue>0xFF</ErasedValue>
  105. <Access>RW</Access>
  106. <!-- 16 Bytes single bank -->
  107. <Configuration>
  108. <Parameters address="0x1FFFC000" name=" 16 Bytes Data MirrorOptionBytes" size="0x10"/>
  109. <Description/>
  110. <Organization>Single</Organization>
  111. <Allignement>0x4</Allignement>
  112. <Bank name="MirrorOptionBytes">
  113. <Field>
  114. <Parameters address="0x1FFFC000" name="MirrorOptionBytes" occurence="0x1" size="0x10"/>
  115. </Field>
  116. </Bank>
  117. </Configuration>
  118. </Peripheral>
  119. <!-- Option Bytes -->
  120. <Peripheral>
  121. <Name>Option Bytes</Name>
  122. <Type>Configuration</Type>
  123. <Description/>
  124. <Access>RW</Access>
  125. <Bank interface="JTAG_SWD">
  126. <Parameters address="0x40023C14" name="Bank 1" size="0x4"/>
  127. <Category>
  128. <Name>Read Out Protection</Name>
  129. <Field>
  130. <Parameters address="0x40023C14" name="RDP" size="0x4"/>
  131. <AssignedBits>
  132. <Bit>
  133. <Name>RDP</Name>
  134. <Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
  135. <BitOffset>0x8</BitOffset>
  136. <BitWidth>0x8</BitWidth>
  137. <Access>RW</Access>
  138. <Values>
  139. <Val value="0xAA">Level 0, no protection</Val>
  140. <Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
  141. <Val value="0xCC">Level 2, chip protection</Val>
  142. </Values>
  143. </Bit>
  144. </AssignedBits>
  145. </Field>
  146. </Category>
  147. <Category>
  148. <Name>PCROP Protection</Name>
  149. <Field>
  150. <Parameters address="0x40023C14" name="FLASH_OPTCR" size="0x4"/>
  151. <AssignedBits>
  152. <Bit reference="SPRMode">
  153. <Name>SPRMOD</Name>
  154. <Description>Selection of protection mode for nWPRi bits.</Description>
  155. <BitOffset>0x1F</BitOffset>
  156. <BitWidth>0x1</BitWidth>
  157. <Access>RW</Access>
  158. <Values>
  159. <Val value="0x0">PCROP disabled. nWPRi bits used for Write protection on sector i</Val>
  160. <Val value="0x1">PCROP enabled. nWPRi bits used for PCROP protection on sector i</Val>
  161. </Values>
  162. </Bit>
  163. </AssignedBits>
  164. </Field>
  165. </Category>
  166. <Category>
  167. <Name>BOR Level</Name>
  168. <Field>
  169. <Parameters address="0x40023C14" name="FLASH_OPTCR" size="0x4"/>
  170. <AssignedBits>
  171. <Bit>
  172. <Name>BOR_LEV</Name>
  173. <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>
  174. <BitOffset>0x2</BitOffset>
  175. <BitWidth>0x2</BitWidth>
  176. <Access>RW</Access>
  177. <Values>
  178. <Val value="0x0">BOR Level 3 reset threshold level from 2.70 to 3.60 V</Val>
  179. <Val value="0x1">BOR Level 2 reset threshold level from 2.40 to 2.70 V</Val>
  180. <Val value="0x2">BOR Level 1 reset threshold level from 2.10 to 2.40 V</Val>
  181. <Val value="0x3">BOR OFF reset threshold level from 1.80 to 2.10 V</Val>
  182. </Values>
  183. </Bit>
  184. </AssignedBits>
  185. </Field>
  186. </Category>
  187. <Category>
  188. <Name>User Configuration</Name>
  189. <Field>
  190. <Parameters address="0x40023C14" name="FLASH_OPTCR" size="0x4"/>
  191. <AssignedBits>
  192. <Bit>
  193. <Name>WDG_SW</Name>
  194. <Description/>
  195. <BitOffset>0x5</BitOffset>
  196. <BitWidth>0x1</BitWidth>
  197. <Access>RW</Access>
  198. <Values>
  199. <Val value="0x0">Hardware watchdog</Val>
  200. <Val value="0x1">Software watchdog</Val>
  201. </Values>
  202. </Bit>
  203. <Bit>
  204. <Name>nRST_STOP</Name>
  205. <Description/>
  206. <BitOffset>0x6</BitOffset>
  207. <BitWidth>0x1</BitWidth>
  208. <Access>RW</Access>
  209. <Values>
  210. <Val value="0x0">Reset generated when entering Stop mode</Val>
  211. <Val value="0x1">No reset generated</Val>
  212. </Values>
  213. </Bit>
  214. <Bit>
  215. <Name>nRST_STDBY</Name>
  216. <Description/>
  217. <BitOffset>0x7</BitOffset>
  218. <BitWidth>0x1</BitWidth>
  219. <Access>RW</Access>
  220. <Values>
  221. <Val value="0x0">Reset generated when entering Standby mode</Val>
  222. <Val value="0x1">No reset generated</Val>
  223. </Values>
  224. </Bit>
  225. </AssignedBits>
  226. </Field>
  227. </Category>
  228. <Category>
  229. <Name>Write Protection</Name>
  230. <Field>
  231. <Parameters address="0x40023C14" name="FLASH_OPTCR" size="0x4"/>
  232. <AssignedBits>
  233. <Bit config="0">
  234. <Name>WRP0</Name>
  235. <Description/>
  236. <BitOffset>0x10</BitOffset>
  237. <BitWidth>0x8</BitWidth>
  238. <Access>RW</Access>
  239. <Values ByBit="true">
  240. <Val value="0x0">Write protection active</Val>
  241. <Val value="0x1">Write protection not active</Val>
  242. </Values>
  243. </Bit>
  244. <Bit config="1">
  245. <Name>WRP0</Name>
  246. <Description/>
  247. <BitOffset>0x10</BitOffset>
  248. <BitWidth>0x8</BitWidth>
  249. <Access>RW</Access>
  250. <Values ByBit="true">
  251. <Val value="0x0">PCROP protection not active on sector i</Val>
  252. <Val value="0x1">PCROP protection active on sector i</Val>
  253. </Values>
  254. </Bit>
  255. </AssignedBits>
  256. </Field>
  257. </Category>
  258. </Bank>
  259. <Bank interface="Bootloader">
  260. <Parameters address="0x1FFFC000" name="Bank 1" size="0x10"/>
  261. <Category>
  262. <Name>Read Out Protection</Name>
  263. <Field>
  264. <Parameters address="0x1FFFC000" name="RDP" size="0x4"/>
  265. <AssignedBits>
  266. <Bit>
  267. <Name>RDP</Name>
  268. <Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
  269. <BitOffset>0x8</BitOffset>
  270. <BitWidth>0x8</BitWidth>
  271. <Access>RW</Access>
  272. <Values>
  273. <Val value="0xAA">Level 0, no protection</Val>
  274. <Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
  275. <Val value="0xCC">Level 2, chip protection</Val>
  276. </Values>
  277. </Bit>
  278. </AssignedBits>
  279. </Field>
  280. </Category>
  281. <Category>
  282. <Name>PCROP Protection</Name>
  283. <Field>
  284. <Parameters address="0x1FFFC008" name="FLASH_OPTCR" size="0x4"/>
  285. <AssignedBits>
  286. <Bit reference="SPRMode">
  287. <Name>SPRMOD</Name>
  288. <Description>Selection of protection mode for nWPRi bits.</Description>
  289. <BitOffset>0xF</BitOffset>
  290. <BitWidth>0x1</BitWidth>
  291. <Access>RW</Access>
  292. <Values>
  293. <Val value="0x0">PCROP disabled. nWPRi bits used for Write protection on sector i</Val>
  294. <Val value="0x1">PCROP enabled. nWPRi bits used for PCROP protection on sector i</Val>
  295. </Values>
  296. </Bit>
  297. </AssignedBits>
  298. </Field>
  299. </Category>
  300. <Category>
  301. <Name>BOR Level</Name>
  302. <Field>
  303. <Parameters address="0x1FFFC000" name="USER" size="0x4"/>
  304. <AssignedBits>
  305. <Bit>
  306. <Name>BOR_LEV</Name>
  307. <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>
  308. <BitOffset>0x2</BitOffset>
  309. <BitWidth>0x2</BitWidth>
  310. <Access>RW</Access>
  311. <Values>
  312. <Val value="0x0">BOR Level 3 reset threshold level from 2.70 to 3.60 V</Val>
  313. <Val value="0x1">BOR Level 2 reset threshold level from 2.40 to 2.70 V</Val>
  314. <Val value="0x2">BOR Level 1 reset threshold level from 2.10 to 2.40 V</Val>
  315. <Val value="0x3">BOR OFF reset threshold level from 1.80 to 2.10 V</Val>
  316. </Values>
  317. </Bit>
  318. </AssignedBits>
  319. </Field>
  320. </Category>
  321. <Category>
  322. <Name>User Configuration</Name>
  323. <Field>
  324. <Parameters address="0x1FFFC000" name="USER" size="0x4"/>
  325. <AssignedBits>
  326. <Bit>
  327. <Name>WDG_SW</Name>
  328. <Description/>
  329. <BitOffset>0x5</BitOffset>
  330. <BitWidth>0x1</BitWidth>
  331. <Access>RW</Access>
  332. <Values>
  333. <Val value="0x0">Hardware watchdog</Val>
  334. <Val value="0x1">Software watchdog</Val>
  335. </Values>
  336. </Bit>
  337. <Bit>
  338. <Name>nRST_STOP</Name>
  339. <Description/>
  340. <BitOffset>0x6</BitOffset>
  341. <BitWidth>0x1</BitWidth>
  342. <Access>RW</Access>
  343. <Values>
  344. <Val value="0x0">Reset generated when entering Stop mode</Val>
  345. <Val value="0x1">No reset generated</Val>
  346. </Values>
  347. </Bit>
  348. <Bit>
  349. <Name>nRST_STDBY</Name>
  350. <Description/>
  351. <BitOffset>0x7</BitOffset>
  352. <BitWidth>0x1</BitWidth>
  353. <Access>RW</Access>
  354. <Values>
  355. <Val value="0x0">Reset generated when entering Standby mode</Val>
  356. <Val value="0x1">No reset generated</Val>
  357. </Values>
  358. </Bit>
  359. </AssignedBits>
  360. </Field>
  361. </Category>
  362. <Category>
  363. <Name>Write Protection</Name>
  364. <Field>
  365. <Parameters address="0x1FFFC008" name="WRP1" size="0x4"/>
  366. <AssignedBits>
  367. <Bit config="0">
  368. <Name>WRP0</Name>
  369. <Description/>
  370. <BitOffset>0x0</BitOffset>
  371. <BitWidth>0x8</BitWidth>
  372. <Access>RW</Access>
  373. <Values ByBit="true">
  374. <Val value="0x0">Write protection active</Val>
  375. <Val value="0x1">Write protection not active</Val>
  376. </Values>
  377. </Bit>
  378. <Bit config="1">
  379. <Name>WRP0</Name>
  380. <Description/>
  381. <BitOffset>0x0</BitOffset>
  382. <BitWidth>0x8</BitWidth>
  383. <Access>RW</Access>
  384. <Values ByBit="true">
  385. <Val value="0x0">PCROP protection not active on sector i</Val>
  386. <Val value="0x1">PCROP protection active on sector i</Val>
  387. </Values>
  388. </Bit>
  389. </AssignedBits>
  390. </Field>
  391. </Category>
  392. </Bank>
  393. </Peripheral>
  394. </Peripherals>
  395. </Device>
  396. </Root>