STM32_Prog_DB_0x461.xml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841
  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>0x461</DeviceID>
  5. <Vendor>STMicroelectronics</Vendor>
  6. <Type>MCU</Type>
  7. <CPU>Cortex-M4</CPU>
  8. <Name>STM32L496xx/STM32L4A6xx</Name>
  9. <Series>STM32L4</Series>
  10. <Description>ARM 32-bit Cortex-M4 based device</Description>
  11. <Configurations>
  12. <!-- JTAG_SWD Interface -->
  13. <Interface name="JTAG_SWD"/>
  14. <!-- Bootloader Interface -->
  15. <Interface name="Bootloader"/>
  16. </Configurations>
  17. <!-- Peripherals -->
  18. <Peripherals>
  19. <!-- Embedded SRAM -->
  20. <Peripheral>
  21. <Name>Embedded SRAM</Name>
  22. <Type>Storage</Type>
  23. <Description/>
  24. <ErasedValue>0x00</ErasedValue>
  25. <Access>RWE</Access>
  26. <!-- 256 KB -->
  27. <Configuration>
  28. <Parameters address="0x20000000" name="SRAM" size="0x40000"/>
  29. <Description/>
  30. <Organization>Single</Organization>
  31. <Bank name="Bank 1">
  32. <Field>
  33. <Parameters address="0x20000000" name="SRAM" occurence="0x1" size="0x50000"/>
  34. </Field>
  35. </Bank>
  36. </Configuration>
  37. </Peripheral>
  38. <!-- Embedded Flash -->
  39. <Peripheral>
  40. <Name>Embedded Flash</Name>
  41. <Type>Storage</Type>
  42. <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>
  43. <ErasedValue>0xFF</ErasedValue>
  44. <Access>RWE</Access>
  45. <FlashSize address="0x1FFF75E0" default="0x100000"/>
  46. <DBGMCU_CR address="0xE0042004" mask="0x007"/>
  47. <DBGMCU_APB1_FZ address="0xE0042008" mask="0x1800"/>
  48. <!-- 1MB dual Bank -->
  49. <Configuration>
  50. <Parameters address="0x08000000" name=" 1 Mbytes Embedded Flash" size="0x100000"/>
  51. <Description/>
  52. <Organization>Dual</Organization>
  53. <Allignement>0x8</Allignement>
  54. <Bank name="Bank 1">
  55. <Field>
  56. <Parameters address="0x08000000" name="sector0" occurence="0x100" size="0x800"/>
  57. </Field>
  58. </Bank>
  59. <Bank name="Bank 2">
  60. <Field>
  61. <Parameters address="0x08080000" name="sector256" occurence="0x100" size="0x800"/>
  62. </Field>
  63. </Bank>
  64. </Configuration>
  65. </Peripheral>
  66. <!-- OTP -->
  67. <Peripheral>
  68. <Name>OTP</Name>
  69. <Type>Storage</Type>
  70. <Description>The Data OTP memory block. It contains the one time programmable bits.</Description>
  71. <ErasedValue>0xFF</ErasedValue>
  72. <Access>RW</Access>
  73. <!-- 1 KBytes single bank -->
  74. <Configuration>
  75. <Parameters address="0x1FFF7000" name=" 1 KBytes Data OTP" size="0x400"/>
  76. <Description/>
  77. <Organization>Single</Organization>
  78. <Allignement>0x4</Allignement>
  79. <Bank name="OTP">
  80. <Field>
  81. <Parameters address="0x1FFF7000" name="OTP" occurence="0x1" size="0x400"/>
  82. </Field>
  83. </Bank>
  84. </Configuration>
  85. </Peripheral>
  86. <!-- Mirror Option Bytes -->
  87. <Peripheral>
  88. <Name>MirrorOptionBytes</Name>
  89. <Type>Storage</Type>
  90. <Description>Mirror Option Bytes contains the extra area.</Description>
  91. <ErasedValue>0xFF</ErasedValue>
  92. <Access>RW</Access>
  93. <!-- 64 Bytes Dual bank -->
  94. <Configuration>
  95. <Parameters address="0x1FFF7800" name=" 64 Bytes Data MirrorOptionBytes" size="0x40"/>
  96. <Description/>
  97. <Organization>Dual</Organization>
  98. <Allignement>0x4</Allignement>
  99. <Bank name="Bank 1">
  100. <Field>
  101. <Parameters address="0x1FFF7800" name="Bank1" occurence="0x1" size="0x24"/>
  102. </Field>
  103. </Bank>
  104. <Bank name="Bank 2">
  105. <Field>
  106. <Parameters address="0x1FFFF808" name="Bank2" occurence="0x1" size="0x1C"/>
  107. </Field>
  108. </Bank>
  109. </Configuration>
  110. </Peripheral>
  111. <!-- Option Bytes -->
  112. <Peripheral>
  113. <Name>Option Bytes</Name>
  114. <Type>Configuration</Type>
  115. <Description/>
  116. <Access>RW</Access>
  117. <Bank interface="JTAG_SWD">
  118. <Parameters address="0x40022020" name="Bank 1" size="0x14"/>
  119. <Category>
  120. <Name>Read Out Protection</Name>
  121. <Field>
  122. <Parameters address="0x40022020" name="FLASH_OPTR" size="0x4"/>
  123. <AssignedBits>
  124. <Bit>
  125. <Name>RDP</Name>
  126. <Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
  127. <BitOffset>0x0</BitOffset>
  128. <BitWidth>0x8</BitWidth>
  129. <Access>RW</Access>
  130. <Values>
  131. <Val value="0xAA">Level 0, no protection</Val>
  132. <Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
  133. <Val value="0xCC">Level 2, chip protection</Val>
  134. </Values>
  135. </Bit>
  136. </AssignedBits>
  137. </Field>
  138. </Category>
  139. <Category>
  140. <Name>BOR Level</Name>
  141. <Field>
  142. <Parameters address="0x40022020" name="FLASH_OPTR" size="0x4"/>
  143. <AssignedBits>
  144. <Bit>
  145. <Name>BOR_LEV</Name>
  146. <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>
  147. <BitOffset>0x8</BitOffset>
  148. <BitWidth>0x3</BitWidth>
  149. <Access>RW</Access>
  150. <Values>
  151. <Val value="0x0">BOR Level 0, reset level threshold is around 1.7 V</Val>
  152. <Val value="0x1">BOR Level 1, reset level threshold is around 2.0 V</Val>
  153. <Val value="0x2">BOR Level 2, reset level threshold is around 2.2 V</Val>
  154. <Val value="0x3">BOR Level 3, reset level threshold is around 2.5 V</Val>
  155. <Val value="0x4">BOR Level 4, reset level threshold is around 2.8 V</Val>
  156. </Values>
  157. </Bit>
  158. </AssignedBits>
  159. </Field>
  160. </Category>
  161. <Category>
  162. <Name>User Configuration</Name>
  163. <Field>
  164. <Parameters address="0x40022020" name="FLASH_OPTR" size="0x4"/>
  165. <AssignedBits>
  166. <Bit>
  167. <Name>nRST_STOP</Name>
  168. <Description/>
  169. <BitOffset>0xC</BitOffset>
  170. <BitWidth>0x1</BitWidth>
  171. <Access>RW</Access>
  172. <Values>
  173. <Val value="0x0">Reset generated when entering Stop mode</Val>
  174. <Val value="0x1">No reset generated when entering Stop mode</Val>
  175. </Values>
  176. </Bit>
  177. <Bit>
  178. <Name>nRST_STDBY</Name>
  179. <Description/>
  180. <BitOffset>0xD</BitOffset>
  181. <BitWidth>0x1</BitWidth>
  182. <Access>RW</Access>
  183. <Values>
  184. <Val value="0x0">Reset generated when entering Standby mode</Val>
  185. <Val value="0x1">No reset generated when entering Standby mode</Val>
  186. </Values>
  187. </Bit>
  188. <Bit>
  189. <Name>nRST_SHDW</Name>
  190. <Description/>
  191. <BitOffset>0xE</BitOffset>
  192. <BitWidth>0x1</BitWidth>
  193. <Access>RW</Access>
  194. <Values>
  195. <Val value="0x0">Reset generated when entering the Shutdown mode</Val>
  196. <Val value="0x1">No reset generated when entering the Shutdown mode</Val>
  197. </Values>
  198. </Bit>
  199. <Bit>
  200. <Name>IWDG_SW</Name>
  201. <Description/>
  202. <BitOffset>0x10</BitOffset>
  203. <BitWidth>0x1</BitWidth>
  204. <Access>RW</Access>
  205. <Values>
  206. <Val value="0x0">Hardware independant watchdog</Val>
  207. <Val value="0x1">Software independant watchdog</Val>
  208. </Values>
  209. </Bit>
  210. <Bit>
  211. <Name>IWDG_STOP</Name>
  212. <Description/>
  213. <BitOffset>0x11</BitOffset>
  214. <BitWidth>0x1</BitWidth>
  215. <Access>RW</Access>
  216. <Values>
  217. <Val value="0x0">Freeze IWDG counter in stop mode</Val>
  218. <Val value="0x1">IWDG counter active in stop mode</Val>
  219. </Values>
  220. </Bit>
  221. <Bit>
  222. <Name>IWDG_STDBY</Name>
  223. <Description/>
  224. <BitOffset>0x12</BitOffset>
  225. <BitWidth>0x1</BitWidth>
  226. <Access>RW</Access>
  227. <Values>
  228. <Val value="0x0">Freeze IWDG counter in standby mode</Val>
  229. <Val value="0x1">IWDG counter active in standby mode</Val>
  230. </Values>
  231. </Bit>
  232. <Bit>
  233. <Name>WWDG_SW</Name>
  234. <Description/>
  235. <BitOffset>0x13</BitOffset>
  236. <BitWidth>0x1</BitWidth>
  237. <Access>RW</Access>
  238. <Values>
  239. <Val value="0x0">Hardware window watchdog</Val>
  240. <Val value="0x1">Software window watchdog</Val>
  241. </Values>
  242. </Bit>
  243. <Bit>
  244. <Name>BFB2</Name>
  245. <Description/>
  246. <BitOffset>0x14</BitOffset>
  247. <BitWidth>0x1</BitWidth>
  248. <Access>RW</Access>
  249. <Values>
  250. <Val value="0x0">Dual-bank boot disable</Val>
  251. <Val value="0x1">Dual-bank boot enable</Val>
  252. </Values>
  253. </Bit>
  254. <Bit>
  255. <Name>nBOOT1</Name>
  256. <Description/>
  257. <BitOffset>0x17</BitOffset>
  258. <BitWidth>0x1</BitWidth>
  259. <Access>RW</Access>
  260. <Values>
  261. <Val value="0x0">Boot from Flash if BOOT0 = 0, otherwise Embedded SRAM1</Val>
  262. <Val value="0x1">Boot from Flash if BOOT0 = 0, otherwise system memory</Val>
  263. </Values>
  264. </Bit>
  265. <Bit>
  266. <Name>SRAM2_PE</Name>
  267. <Description/>
  268. <BitOffset>0x18</BitOffset>
  269. <BitWidth>0x1</BitWidth>
  270. <Access>RW</Access>
  271. <Values>
  272. <Val value="0x0">SRAM2 parity check enable</Val>
  273. <Val value="0x1">SRAM2 parity check disable</Val>
  274. </Values>
  275. </Bit>
  276. <Bit>
  277. <Name>SRAM2_RST</Name>
  278. <Description/>
  279. <BitOffset>0x19</BitOffset>
  280. <BitWidth>0x1</BitWidth>
  281. <Access>RW</Access>
  282. <Values>
  283. <Val value="0x0">SRAM2 erased when a system reset occurs</Val>
  284. <Val value="0x1">SRAM2 is not erased when a system reset occurs</Val>
  285. </Values>
  286. </Bit>
  287. <Bit>
  288. <Name>nSWBOOT0</Name>
  289. <Description/>
  290. <BitOffset>0x1A</BitOffset>
  291. <BitWidth>0x1</BitWidth>
  292. <Access>RW</Access>
  293. <Values>
  294. <Val value="0x0">BOOT0 taken from the option bit nBOOT0</Val>
  295. <Val value="0x1">BOOT0 taken from PH3/BOOT0 pin</Val>
  296. </Values>
  297. </Bit>
  298. <Bit>
  299. <Name>nBOOT0</Name>
  300. <Description>This option bit sets the BOOT0 value only when nSWBOOT0=0</Description>
  301. <BitOffset>0x1B</BitOffset>
  302. <BitWidth>0x1</BitWidth>
  303. <Access>RW</Access>
  304. <Values>
  305. <Val value="0x0">BOOT0 = 1, boot memory depends on nBOOT1 value</Val>
  306. <Val value="0x1">BOOT0 = 0, boot from main flash memory</Val>
  307. </Values>
  308. </Bit>
  309. </AssignedBits>
  310. </Field>
  311. </Category>
  312. <Category>
  313. <Name>PCROP Protection (Bank 1)</Name>
  314. <Field>
  315. <Parameters address="0x40022024" name="FLASH_PCROP1SR" size="0x4"/>
  316. <AssignedBits>
  317. <Bit>
  318. <Name>PCROP1_STRT</Name>
  319. <Description>Flash Bank 1 PCROP start address</Description>
  320. <BitOffset>0x0</BitOffset>
  321. <BitWidth>0x10</BitWidth>
  322. <Access>RW</Access>
  323. <Equation multiplier="0x8" offset="0x08000000"/>
  324. </Bit>
  325. </AssignedBits>
  326. </Field>
  327. <Field>
  328. <Parameters address="0x40022028" name="FLASH_PCROP1ER" size="0x4"/>
  329. <AssignedBits>
  330. <Bit>
  331. <Name>PCROP1_END</Name>
  332. <Description>Flash Bank 1 PCROP End address. Deactivation of PCROP can be done by enabling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  333. <BitOffset>0x0</BitOffset>
  334. <BitWidth>0x10</BitWidth>
  335. <Access>RW</Access>
  336. <Equation multiplier="0x8" offset="0x08000000"/>
  337. </Bit>
  338. <Bit>
  339. <Name>PCROP_RDP</Name>
  340. <Description/>
  341. <BitOffset>0x1F</BitOffset>
  342. <BitWidth>0x1</BitWidth>
  343. <Access>RW</Access>
  344. <Values>
  345. <Val value="0x0">PCROP zone is kept when RDP is decreased</Val>
  346. <Val value="0x1">PCROP zone is erased when RDP is decreased</Val>
  347. </Values>
  348. </Bit>
  349. </AssignedBits>
  350. </Field>
  351. </Category>
  352. <Category>
  353. <Name>Write Protection (Bank 1)</Name>
  354. <Field>
  355. <Parameters address="0x4002202C" name="FLASH_WRP1AR" size="0x4"/>
  356. <AssignedBits>
  357. <Bit>
  358. <Name>WRP1A_STRT</Name>
  359. <Description>The address of the first page of the Bank 1 WRP first area</Description>
  360. <BitOffset>0x0</BitOffset>
  361. <BitWidth>0x8</BitWidth>
  362. <Access>RW</Access>
  363. <Equation multiplier="0x800" offset="0x08000000"/>
  364. </Bit>
  365. <Bit>
  366. <Name>WRP1A_END</Name>
  367. <Description>The address of the last page of the Bank 1 WRP first area</Description>
  368. <BitOffset>0x10</BitOffset>
  369. <BitWidth>0x8</BitWidth>
  370. <Access>RW</Access>
  371. <Equation multiplier="0x800" offset="0x08000000"/>
  372. </Bit>
  373. </AssignedBits>
  374. </Field>
  375. <Field>
  376. <Parameters address="0x40022030" name="FLASH_WRP1BR" size="0x4"/>
  377. <AssignedBits>
  378. <Bit>
  379. <Name>WRP1B_STRT</Name>
  380. <Description>The address of the first page of the Bank 1 WRP second area</Description>
  381. <BitOffset>0x0</BitOffset>
  382. <BitWidth>0x8</BitWidth>
  383. <Access>RW</Access>
  384. <Equation multiplier="0x800" offset="0x08000000"/>
  385. </Bit>
  386. <Bit>
  387. <Name>WRP1B_END</Name>
  388. <Description>The address of the last page of the Bank 1 WRP second area</Description>
  389. <BitOffset>0x10</BitOffset>
  390. <BitWidth>0x8</BitWidth>
  391. <Access>RW</Access>
  392. <Equation multiplier="0x800" offset="0x08000000"/>
  393. </Bit>
  394. </AssignedBits>
  395. </Field>
  396. </Category>
  397. </Bank>
  398. <Bank interface="JTAG_SWD">
  399. <Parameters address="0x40022044" name="Bank 2" size="0x10"/>
  400. <Category>
  401. <Name>PCROP Protection (Bank 2)</Name>
  402. <Field>
  403. <Parameters address="0x40022044" name="FLASH_PCROP2SR" size="0x4"/>
  404. <AssignedBits>
  405. <Bit>
  406. <Name>PCROP2_STRT</Name>
  407. <Description>Flash Bank 2 PCROP start address</Description>
  408. <BitOffset>0x0</BitOffset>
  409. <BitWidth>0x10</BitWidth>
  410. <Access>RW</Access>
  411. <Equation multiplier="0x8" offset="0x08080000"/>
  412. </Bit>
  413. </AssignedBits>
  414. </Field>
  415. <Field>
  416. <Parameters address="0x40022048" name="FLASH_PCROP2ER" size="0x4"/>
  417. <AssignedBits>
  418. <Bit>
  419. <Name>PCROP2_END</Name>
  420. <Description>Flash Bank 2 PCROP End address. Deactivation of PCROP can be done by enabling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  421. <BitOffset>0x0</BitOffset>
  422. <BitWidth>0x10</BitWidth>
  423. <Access>RW</Access>
  424. <Equation multiplier="0x8" offset="0x08080000"/>
  425. </Bit>
  426. </AssignedBits>
  427. </Field>
  428. </Category>
  429. <Category>
  430. <Name>Write Protection (Bank 2)</Name>
  431. <Field>
  432. <Parameters address="0x4002204C" name="FLASH_WRP2AR" size="0x4"/>
  433. <AssignedBits>
  434. <Bit>
  435. <Name>WRP2A_STRT</Name>
  436. <Description>The address of first page of the Bank 2 WRP first area</Description>
  437. <BitOffset>0x0</BitOffset>
  438. <BitWidth>0x8</BitWidth>
  439. <Access>RW</Access>
  440. <Equation multiplier="0x800" offset="0x08080000"/>
  441. </Bit>
  442. <Bit>
  443. <Name>WRP2A_END</Name>
  444. <Description>The address of last page of the Bank 2 WRP first area</Description>
  445. <BitOffset>0x10</BitOffset>
  446. <BitWidth>0x8</BitWidth>
  447. <Access>RW</Access>
  448. <Equation multiplier="0x800" offset="0x08080000"/>
  449. </Bit>
  450. </AssignedBits>
  451. </Field>
  452. <Field>
  453. <Parameters address="0x40022050" name="FLASH_WRP2BR" size="0x4"/>
  454. <AssignedBits>
  455. <Bit>
  456. <Name>WRP2B_STRT</Name>
  457. <Description>The address of first page of the Bank 2 WRP second area</Description>
  458. <BitOffset>0x0</BitOffset>
  459. <BitWidth>0x8</BitWidth>
  460. <Access>RW</Access>
  461. <Equation multiplier="0x800" offset="0x08080000"/>
  462. </Bit>
  463. <Bit>
  464. <Name>WRP2B_END</Name>
  465. <Description>The address of last page of the Bank 2 WRP second area</Description>
  466. <BitOffset>0x10</BitOffset>
  467. <BitWidth>0x8</BitWidth>
  468. <Access>RW</Access>
  469. <Equation multiplier="0x800" offset="0x08080000"/>
  470. </Bit>
  471. </AssignedBits>
  472. </Field>
  473. </Category>
  474. </Bank>
  475. <Bank interface="Bootloader">
  476. <Parameters address="0x1FFF7800" name="Bank 1" size="0x24"/>
  477. <Category>
  478. <Name>Read Out Protection</Name>
  479. <Field>
  480. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  481. <AssignedBits>
  482. <Bit>
  483. <Name>RDP</Name>
  484. <Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
  485. <BitOffset>0x0</BitOffset>
  486. <BitWidth>0x8</BitWidth>
  487. <Access>RW</Access>
  488. <Values>
  489. <Val value="0xAA">Level 0, no protection</Val>
  490. <Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
  491. <Val value="0xCC">Level 2, chip protection</Val>
  492. </Values>
  493. </Bit>
  494. </AssignedBits>
  495. </Field>
  496. </Category>
  497. <Category>
  498. <Name>BOR Level</Name>
  499. <Field>
  500. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  501. <AssignedBits>
  502. <Bit>
  503. <Name>BOR_LEV</Name>
  504. <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>
  505. <BitOffset>0x8</BitOffset>
  506. <BitWidth>0x3</BitWidth>
  507. <Access>RW</Access>
  508. <Values>
  509. <Val value="0x0">BOR Level 0, reset level threshold is around 1.7 V</Val>
  510. <Val value="0x1">BOR Level 1, reset level threshold is around 2.0 V</Val>
  511. <Val value="0x2">BOR Level 2, reset level threshold is around 2.2 V</Val>
  512. <Val value="0x3">BOR Level 3, reset level threshold is around 2.5 V</Val>
  513. <Val value="0x4">BOR Level 4, reset level threshold is around 2.8 V</Val>
  514. </Values>
  515. </Bit>
  516. </AssignedBits>
  517. </Field>
  518. </Category>
  519. <Category>
  520. <Name>User Configuration</Name>
  521. <Field>
  522. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  523. <AssignedBits>
  524. <Bit>
  525. <Name>IWDG_STOP</Name>
  526. <Description/>
  527. <BitOffset>0x11</BitOffset>
  528. <BitWidth>0x1</BitWidth>
  529. <Access>RW</Access>
  530. <Values>
  531. <Val value="0x0">Freeze IWDG counter in stop mode</Val>
  532. <Val value="0x1">IWDG counter active in stop mode</Val>
  533. </Values>
  534. </Bit>
  535. <Bit>
  536. <Name>IWDG_STDBY</Name>
  537. <Description/>
  538. <BitOffset>0x12</BitOffset>
  539. <BitWidth>0x1</BitWidth>
  540. <Access>RW</Access>
  541. <Values>
  542. <Val value="0x0">Freeze IWDG counter in standby mode</Val>
  543. <Val value="0x1">IWDG counter active in standby mode</Val>
  544. </Values>
  545. </Bit>
  546. </AssignedBits>
  547. </Field>
  548. <Field>
  549. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  550. <AssignedBits>
  551. <Bit>
  552. <Name>WWDG_SW</Name>
  553. <Description/>
  554. <BitOffset>0x13</BitOffset>
  555. <BitWidth>0x1</BitWidth>
  556. <Access>RW</Access>
  557. <Values>
  558. <Val value="0x0">Hardware window watchdog</Val>
  559. <Val value="0x1">Software window watchdog</Val>
  560. </Values>
  561. </Bit>
  562. <Bit>
  563. <Name>IWDG_SW</Name>
  564. <Description/>
  565. <BitOffset>0x10</BitOffset>
  566. <BitWidth>0x1</BitWidth>
  567. <Access>RW</Access>
  568. <Values>
  569. <Val value="0x0">Hardware independant watchdog</Val>
  570. <Val value="0x1">Software independant watchdog</Val>
  571. </Values>
  572. </Bit>
  573. <Bit>
  574. <Name>nRST_STOP</Name>
  575. <Description/>
  576. <BitOffset>0xC</BitOffset>
  577. <BitWidth>0x1</BitWidth>
  578. <Access>RW</Access>
  579. <Values>
  580. <Val value="0x0">Reset generated when entering Stop mode</Val>
  581. <Val value="0x1">No reset generated</Val>
  582. </Values>
  583. </Bit>
  584. <Bit>
  585. <Name>nRST_STDBY</Name>
  586. <Description/>
  587. <BitOffset>0xD</BitOffset>
  588. <BitWidth>0x1</BitWidth>
  589. <Access>RW</Access>
  590. <Values>
  591. <Val value="0x0">Reset generated when entering Standby mode</Val>
  592. <Val value="0x1">No reset generated</Val>
  593. </Values>
  594. </Bit>
  595. <Bit>
  596. <Name>nRST_SHDW</Name>
  597. <Description/>
  598. <BitOffset>0xE</BitOffset>
  599. <BitWidth>0x1</BitWidth>
  600. <Access>RW</Access>
  601. <Values>
  602. <Val value="0x0">Reset generated when entering the Shutdown mode</Val>
  603. <Val value="0x1">No reset generated when entering the Shutdown mode</Val>
  604. </Values>
  605. </Bit>
  606. <Bit>
  607. <Name>BFB2</Name>
  608. <Description/>
  609. <BitOffset>0x14</BitOffset>
  610. <BitWidth>0x1</BitWidth>
  611. <Access>RW</Access>
  612. <Values>
  613. <Val value="0x0">Dual-bank boot disable</Val>
  614. <Val value="0x1">Dual-bank boot enable</Val>
  615. </Values>
  616. </Bit>
  617. <Bit>
  618. <Name>nBOOT1</Name>
  619. <Description/>
  620. <BitOffset>0x17</BitOffset>
  621. <BitWidth>0x1</BitWidth>
  622. <Access>RW</Access>
  623. <Values>
  624. <Val value="0x0">Boot from Flash if BOOT0 = 0, otherwise Embedded SRAM1</Val>
  625. <Val value="0x1">Boot from Flash if BOOT0 = 0, otherwise system memory</Val>
  626. </Values>
  627. </Bit>
  628. <Bit>
  629. <Name>SRAM2_PE</Name>
  630. <Description/>
  631. <BitOffset>0x18</BitOffset>
  632. <BitWidth>0x1</BitWidth>
  633. <Access>RW</Access>
  634. <Values>
  635. <Val value="0x0">SRAM2 parity check enable</Val>
  636. <Val value="0x1">SRAM2 parity check disable</Val>
  637. </Values>
  638. </Bit>
  639. <Bit>
  640. <Name>SRAM2_RST</Name>
  641. <Description/>
  642. <BitOffset>0x19</BitOffset>
  643. <BitWidth>0x1</BitWidth>
  644. <Access>RW</Access>
  645. <Values>
  646. <Val value="0x0">SRAM2 erased when a system reset occurs</Val>
  647. <Val value="0x1">SRAM2 is not erased when a system reset occurs</Val>
  648. </Values>
  649. </Bit>
  650. <Bit>
  651. <Name>nSWBOOT0</Name>
  652. <Description/>
  653. <BitOffset>0x1A</BitOffset>
  654. <BitWidth>0x1</BitWidth>
  655. <Access>RW</Access>
  656. <Values>
  657. <Val value="0x0">BOOT0 taken from the option bit nBOOT0</Val>
  658. <Val value="0x1">BOOT0 taken from PH3/BOOT0 pin</Val>
  659. </Values>
  660. </Bit>
  661. <Bit>
  662. <Name>nBOOT0</Name>
  663. <Description>This option bit sets the BOOT0 value only when nSWBOOT0=0</Description>
  664. <BitOffset>0x1B</BitOffset>
  665. <BitWidth>0x1</BitWidth>
  666. <Access>RW</Access>
  667. <Values>
  668. <Val value="0x0">BOOT0 = 1, boot memory depends on nBOOT1 value</Val>
  669. <Val value="0x1">BOOT0 = 0, boot from main flash memory</Val>
  670. </Values>
  671. </Bit>
  672. </AssignedBits>
  673. </Field>
  674. </Category>
  675. <Category>
  676. <Name>PCROP Protection (Bank 1)</Name>
  677. <Field>
  678. <Parameters address="0x1FFF7808" name="FLASH_PCROP1SR" size="0x4"/>
  679. <AssignedBits>
  680. <Bit>
  681. <Name>PCROP1_STRT</Name>
  682. <Description>Flash Bank 1 PCROP start address</Description>
  683. <BitOffset>0x0</BitOffset>
  684. <BitWidth>0x10</BitWidth>
  685. <Access>RW</Access>
  686. <Equation multiplier="0x8" offset="0x08000000"/>
  687. </Bit>
  688. </AssignedBits>
  689. </Field>
  690. <Field>
  691. <Parameters address="0x1FFF7810" name="FLASH_PCROP1ER" size="0x4"/>
  692. <AssignedBits>
  693. <Bit>
  694. <Name>PCROP1_END</Name>
  695. <Description>Flash Bank 1 PCROP End address. Deactivation of PCROP can be done by enabling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  696. <BitOffset>0x0</BitOffset>
  697. <BitWidth>0x10</BitWidth>
  698. <Access>RW</Access>
  699. <Equation multiplier="0x8" offset="0x08000000"/>
  700. </Bit>
  701. <Bit>
  702. <Name>PCROP_RDP</Name>
  703. <Description/>
  704. <BitOffset>0x1F</BitOffset>
  705. <BitWidth>0x1</BitWidth>
  706. <Access>RW</Access>
  707. <Values>
  708. <Val value="0x0">PCROP zone is kept when RDP is decreased</Val>
  709. <Val value="0x1">PCROP zone is erased when RDP is decreased</Val>
  710. </Values>
  711. </Bit>
  712. </AssignedBits>
  713. </Field>
  714. </Category>
  715. <Category>
  716. <Name>Write Protection (Bank 1)</Name>
  717. <Field>
  718. <Parameters address="0x1FFF7818" name="FLASH_WRP1AR" size="0x4"/>
  719. <AssignedBits>
  720. <Bit>
  721. <Name>WRP1A_STRT</Name>
  722. <Description>The address of the first page of the Bank 1 WRP first area</Description>
  723. <BitOffset>0x0</BitOffset>
  724. <BitWidth>0x8</BitWidth>
  725. <Access>RW</Access>
  726. <Equation multiplier="0x800" offset="0x08000000"/>
  727. </Bit>
  728. <Bit>
  729. <Name>WRP1A_END</Name>
  730. <Description>The address of the last page of the Bank 1 WRP first area</Description>
  731. <BitOffset>0x10</BitOffset>
  732. <BitWidth>0x8</BitWidth>
  733. <Access>RW</Access>
  734. <Equation multiplier="0x800" offset="0x08000000"/>
  735. </Bit>
  736. </AssignedBits>
  737. </Field>
  738. <Field>
  739. <Parameters address="0x1FFF7820" name="FLASH_WRP1BR" size="0x4"/>
  740. <AssignedBits>
  741. <Bit>
  742. <Name>WRP1B_STRT</Name>
  743. <Description>The address of the first page of the Bank 1 WRP second area</Description>
  744. <BitOffset>0x0</BitOffset>
  745. <BitWidth>0x8</BitWidth>
  746. <Access>RW</Access>
  747. <Equation multiplier="0x800" offset="0x08000000"/>
  748. </Bit>
  749. <Bit>
  750. <Name>WRP1B_END</Name>
  751. <Description>The address of the last page of the Bank 1 WRP second area</Description>
  752. <BitOffset>0x10</BitOffset>
  753. <BitWidth>0x8</BitWidth>
  754. <Access>RW</Access>
  755. <Equation multiplier="0x800" offset="0x08000000"/>
  756. </Bit>
  757. </AssignedBits>
  758. </Field>
  759. </Category>
  760. </Bank>
  761. <Bank interface="Bootloader">
  762. <Parameters address="0x1FFFF808" name="Bank 2" size="0x1C"/>
  763. <Category>
  764. <Name>PCROP Protection (Bank 2)</Name>
  765. <Field>
  766. <Parameters address="0x1FFFF808" name="FLASH_PCROP2SR" size="0x4"/>
  767. <AssignedBits>
  768. <Bit>
  769. <Name>PCROP2_STRT</Name>
  770. <Description>Flash Bank 2 PCROP start address</Description>
  771. <BitOffset>0x0</BitOffset>
  772. <BitWidth>0x10</BitWidth>
  773. <Access>RW</Access>
  774. <Equation multiplier="0x8" offset="0x08080000"/>
  775. </Bit>
  776. </AssignedBits>
  777. </Field>
  778. <Field>
  779. <Parameters address="0x1FFFF810" name="FLASH_PCROP2ER" size="0x4"/>
  780. <AssignedBits>
  781. <Bit>
  782. <Name>PCROP2_END</Name>
  783. <Description>Flash Bank 2 PCROP End address. Deactivation of PCROP can be done by enabling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  784. <BitOffset>0x0</BitOffset>
  785. <BitWidth>0x10</BitWidth>
  786. <Access>RW</Access>
  787. <Equation multiplier="0x8" offset="0x08080000"/>
  788. </Bit>
  789. </AssignedBits>
  790. </Field>
  791. </Category>
  792. <Category>
  793. <Name>Write Protection (Bank 2)</Name>
  794. <Field>
  795. <Parameters address="0x1FFFF818" name="FLASH_WRP2AR" size="0x4"/>
  796. <AssignedBits>
  797. <Bit>
  798. <Name>WRP2A_STRT</Name>
  799. <Description>The address of first page of the Bank 2 WRP first area</Description>
  800. <BitOffset>0x0</BitOffset>
  801. <BitWidth>0x8</BitWidth>
  802. <Access>RW</Access>
  803. <Equation multiplier="0x800" offset="0x08080000"/>
  804. </Bit>
  805. <Bit>
  806. <Name>WRP2A_END</Name>
  807. <Description>The address of last page of the Bank 2 WRP first area</Description>
  808. <BitOffset>0x10</BitOffset>
  809. <BitWidth>0x8</BitWidth>
  810. <Access>RW</Access>
  811. <Equation multiplier="0x800" offset="0x08080000"/>
  812. </Bit>
  813. </AssignedBits>
  814. </Field>
  815. <Field>
  816. <Parameters address="0x1FFFF820" name="FLASH_WRP2BR" size="0x4"/>
  817. <AssignedBits>
  818. <Bit>
  819. <Name>WRP2B_STRT</Name>
  820. <Description>The address of first page of the Bank 2 WRP second area</Description>
  821. <BitOffset>0x0</BitOffset>
  822. <BitWidth>0x8</BitWidth>
  823. <Access>RW</Access>
  824. <Equation multiplier="0x800" offset="0x08080000"/>
  825. </Bit>
  826. <Bit>
  827. <Name>WRP2B_END</Name>
  828. <Description>The address of last page of the Bank 2 WRP second area</Description>
  829. <BitOffset>0x10</BitOffset>
  830. <BitWidth>0x8</BitWidth>
  831. <Access>RW</Access>
  832. <Equation multiplier="0x800" offset="0x08080000"/>
  833. </Bit>
  834. </AssignedBits>
  835. </Field>
  836. </Category>
  837. </Bank>
  838. </Peripheral>
  839. </Peripherals>
  840. </Device>
  841. </Root>