STM32_Prog_DB_0x456.xml 29 KB

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