STM32_Prog_DB_0x466.xml 26 KB

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