STM32_Prog_DB_0x461.xml 29 KB

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