STM32_Prog_DB_0x479.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  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>0x479</DeviceID>
  5. <Vendor>STMicroelectronics</Vendor>
  6. <Type>MCU</Type>
  7. <CPU>Cortex-M4</CPU>
  8. <Name>STM32G491xC/E</Name>
  9. <Series>STM32G4</Series>
  10. <Description>Category 3 devices, 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>0xFF</ErasedValue>
  25. <Access>RWE</Access>
  26. <!-- 96 KB -->
  27. <Configuration>
  28. <Parameters address="0x20000000" name="SRAM" size="0x8000"/>
  29. <Description/>
  30. <Organization>Single</Organization>
  31. <Bank>
  32. <Field>
  33. <Parameters address="0x20000000" name="SRAM" occurence="0x1" size="0x8000"/>
  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="0x80000"/>
  46. <!-- single Bank -->
  47. <Configuration>
  48. <Parameters address="0x08000000" name=" 512 Kbyte Embedded Flash" size="0x80000"/>
  49. <Description/>
  50. <Organization>Single</Organization>
  51. <Allignement>0x10</Allignement>
  52. <Bank>
  53. <Field>
  54. <Parameters address="0x08000000" name="sector0" occurence="0x100" 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. <!-- 64 Bytes single bank -->
  87. <Configuration>
  88. <Parameters address="0x1FFF7800" name=" 64 Bytes Data MirrorOptionBytes" size="0x40"/>
  89. <Description/>
  90. <Organization>Single</Organization>
  91. <Allignement>0x4</Allignement>
  92. <Bank name="Bank">
  93. <Field>
  94. <Parameters address="0x1FFF7800" name="Bank" occurence="0x1" size="0x24"/>
  95. </Field>
  96. </Bank>
  97. </Configuration>
  98. </Peripheral>
  99. <!-- Option Bytes -->
  100. <Peripheral>
  101. <Name>Option Bytes</Name>
  102. <Type>Configuration</Type>
  103. <Description/>
  104. <Access>RW</Access>
  105. <Bank interface="JTAG_SWD">
  106. <Parameters address="0x40022020" name="Bank 1" size="0x14"/>
  107. <Category>
  108. <Name>Read Out Protection</Name>
  109. <Field>
  110. <Parameters address="0x40022020" name="FLASH_OPTR" size="0x2"/>
  111. <AssignedBits>
  112. <Bit>
  113. <Name>RDP</Name>
  114. <Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
  115. <BitOffset>0x0</BitOffset>
  116. <BitWidth>0x8</BitWidth>
  117. <Access>RW</Access>
  118. <Values>
  119. <Val value="0xAA">Level 0, no protection</Val>
  120. <Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
  121. <Val value="0xCC">Level 2, no debug</Val>
  122. </Values>
  123. </Bit>
  124. </AssignedBits>
  125. </Field>
  126. </Category>
  127. <Category>
  128. <Name>BOR Level</Name>
  129. <Field>
  130. <Parameters address="0x40022020" name="FLASH_OPTR" size="0x4"/>
  131. <AssignedBits>
  132. <Bit>
  133. <Name>BOR_LEV</Name>
  134. <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>
  135. <BitOffset>0x8</BitOffset>
  136. <BitWidth>0x3</BitWidth>
  137. <Access>RW</Access>
  138. <Values>
  139. <Val value="0x0">BOR Level 0, reset level threshold is around 1.7 V</Val>
  140. <Val value="0x1">BOR Level 1, reset level threshold is around 2.0 V</Val>
  141. <Val value="0x2">BOR Level 2, reset level threshold is around 2.2 V</Val>
  142. <Val value="0x3">BOR Level 3, reset level threshold is around 2.5 V</Val>
  143. <Val value="0x4">BOR Level 4, reset level threshold is around 2.8 V</Val>
  144. </Values>
  145. </Bit>
  146. </AssignedBits>
  147. </Field>
  148. </Category>
  149. <Category>
  150. <Name>User Configuration</Name>
  151. <Field>
  152. <Parameters address="0x40022020" name="FLASH_OPTR" size="0x4"/>
  153. <AssignedBits>
  154. <Bit>
  155. <Name>nRST_STOP</Name>
  156. <Description/>
  157. <BitOffset>0xC</BitOffset>
  158. <BitWidth>0x1</BitWidth>
  159. <Access>RW</Access>
  160. <Values>
  161. <Val value="0x0">Reset generated when entering Stop mode</Val>
  162. <Val value="0x1">No reset generated when entering Stop mode</Val>
  163. </Values>
  164. </Bit>
  165. <Bit>
  166. <Name>nRST_STDBY</Name>
  167. <Description/>
  168. <BitOffset>0xD</BitOffset>
  169. <BitWidth>0x1</BitWidth>
  170. <Access>RW</Access>
  171. <Values>
  172. <Val value="0x0">Reset generated when entering Standby mode</Val>
  173. <Val value="0x1">No reset generated when entering Standby mode</Val>
  174. </Values>
  175. </Bit>
  176. <Bit>
  177. <Name>nRST_SHDW</Name>
  178. <Description/>
  179. <BitOffset>0xE</BitOffset>
  180. <BitWidth>0x1</BitWidth>
  181. <Access>RW</Access>
  182. <Values>
  183. <Val value="0x0">Reset generated when entering the Shutdown mode</Val>
  184. <Val value="0x1">No reset generated when entering the Shutdown mode</Val>
  185. </Values>
  186. </Bit>
  187. <Bit>
  188. <Name>IWDG_SW</Name>
  189. <Description/>
  190. <BitOffset>0x10</BitOffset>
  191. <BitWidth>0x1</BitWidth>
  192. <Access>RW</Access>
  193. <Values>
  194. <Val value="0x0">Hardware independant watchdog</Val>
  195. <Val value="0x1">Software independant watchdog</Val>
  196. </Values>
  197. </Bit>
  198. <Bit>
  199. <Name>IWDG_STOP</Name>
  200. <Description/>
  201. <BitOffset>0x11</BitOffset>
  202. <BitWidth>0x1</BitWidth>
  203. <Access>RW</Access>
  204. <Values>
  205. <Val value="0x0">Freeze IWDG counter in stop mode</Val>
  206. <Val value="0x1">IWDG counter active in stop mode</Val>
  207. </Values>
  208. </Bit>
  209. <Bit>
  210. <Name>IWDG_STDBY</Name>
  211. <Description/>
  212. <BitOffset>0x12</BitOffset>
  213. <BitWidth>0x1</BitWidth>
  214. <Access>RW</Access>
  215. <Values>
  216. <Val value="0x0">Freeze IWDG counter in standby mode</Val>
  217. <Val value="0x1">IWDG counter active in standby mode</Val>
  218. </Values>
  219. </Bit>
  220. <Bit>
  221. <Name>WWDG_SW</Name>
  222. <Description/>
  223. <BitOffset>0x13</BitOffset>
  224. <BitWidth>0x1</BitWidth>
  225. <Access>RW</Access>
  226. <Values>
  227. <Val value="0x0">Hardware window watchdog</Val>
  228. <Val value="0x1">Software window watchdog</Val>
  229. </Values>
  230. </Bit>
  231. <Bit>
  232. <Name>PB4_PUEN</Name>
  233. <Description/>
  234. <BitOffset>0x16</BitOffset>
  235. <BitWidth>0x1</BitWidth>
  236. <Access>RW</Access>
  237. <Values>
  238. <Val value="0x0">USB power delivery dead-battery enabled/ TDI pull-up deactivated</Val>
  239. <Val value="0x1">USB power delivery dead-battery disabled/ TDI pull-up activated</Val>
  240. </Values>
  241. </Bit>
  242. <Bit>
  243. <Name>nBOOT1</Name>
  244. <Description/>
  245. <BitOffset>0x17</BitOffset>
  246. <BitWidth>0x1</BitWidth>
  247. <Access>RW</Access>
  248. <Values>
  249. <Val value="0x0">Boot from Flash if BOOT0 = 0, otherwise Embedded SRAM1</Val>
  250. <Val value="0x1">Boot from Flash if BOOT0 = 0, otherwise system memory</Val>
  251. </Values>
  252. </Bit>
  253. <Bit>
  254. <Name>SRAM_PE</Name>
  255. <Description>SRAM1 and CCM SRAM parity check enable</Description>
  256. <BitOffset>0x18</BitOffset>
  257. <BitWidth>0x1</BitWidth>
  258. <Access>RW</Access>
  259. <Values>
  260. <Val value="0x0">SRAM1 and CCM SRAM parity check enable</Val>
  261. <Val value="0x1">SRAM1 and CCM SRAM parity check disable</Val>
  262. </Values>
  263. </Bit>
  264. <Bit>
  265. <Name>CCMSRAM_RST</Name>
  266. <Description>CCM SRAM Erase when system reset</Description>
  267. <BitOffset>0x19</BitOffset>
  268. <BitWidth>0x1</BitWidth>
  269. <Access>RW</Access>
  270. <Values>
  271. <Val value="0x0">CCM SRAM erased when a system reset occurs</Val>
  272. <Val value="0x1">CCM SRAM is not erased when a system reset occurs</Val>
  273. </Values>
  274. </Bit>
  275. <Bit>
  276. <Name>nSWBOOT0</Name>
  277. <Description>Software BOOT0</Description>
  278. <BitOffset>0x1A</BitOffset>
  279. <BitWidth>0x1</BitWidth>
  280. <Access>RW</Access>
  281. <Values>
  282. <Val value="0x0">BOOT0 taken from the option bit nBOOT0</Val>
  283. <Val value="0x1">BOOT0 taken from PB8/BOOT0 pin</Val>
  284. </Values>
  285. </Bit>
  286. <Bit>
  287. <Name>nBOOT0</Name>
  288. <Description>This option bit sets the BOOT0 value only when nSWBOOT0=0</Description>
  289. <BitOffset>0x1B</BitOffset>
  290. <BitWidth>0x1</BitWidth>
  291. <Access>RW</Access>
  292. <Values>
  293. <Val value="0x0">nBOOT0 = 0</Val>
  294. <Val value="0x1">nBOOT0 = 1</Val>
  295. </Values>
  296. </Bit>
  297. <Bit>
  298. <Name>NRST_MODE</Name>
  299. <Description/>
  300. <BitOffset>0x1C</BitOffset>
  301. <BitWidth>0x2</BitWidth>
  302. <Access>RW</Access>
  303. <Values>
  304. <Val value="0x0">Reserved</Val>
  305. <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>
  306. <Val value="0x2">GPIO: standard GPIO pad functionality, only internal RESET possible</Val>
  307. <Val value="0x3">Bidirectional reset: NRST pin configured in reset input/output mode (legacy mode)</Val>
  308. </Values>
  309. </Bit>
  310. <Bit>
  311. <Name>IRHEN</Name>
  312. <Description>Internal reset holder enable bit</Description>
  313. <BitOffset>0x1E</BitOffset>
  314. <BitWidth>0x1</BitWidth>
  315. <Access>RW</Access>
  316. <Values>
  317. <Val value="0x0">Internal resets are propagated as simple pulse on NRST pin</Val>
  318. <Val value="0x1">Internal resets drives NRST pin low until it is seen as low level</Val>
  319. </Values>
  320. </Bit>
  321. </AssignedBits>
  322. </Field>
  323. </Category>
  324. <Category>
  325. <Name>PCROP Protection</Name>
  326. <Field>
  327. <Parameters address="0x40022024" name="FLASH_PCROP1SR" size="0x4"/>
  328. <AssignedBits>
  329. <Bit>
  330. <Name>PCROP1_STRT</Name>
  331. <Description>Flash PCROP start address</Description>
  332. <BitOffset>0x0</BitOffset>
  333. <BitWidth>0x10</BitWidth>
  334. <Access>RW</Access>
  335. <Equation multiplier="0x8" offset="0x08000000"/>
  336. </Bit>
  337. </AssignedBits>
  338. </Field>
  339. <Field>
  340. <Parameters address="0x40022028" name="FLASH_PCROP1ER" size="0x4"/>
  341. <AssignedBits>
  342. <Bit>
  343. <Name>PCROP1_END</Name>
  344. <Description>Flash PCROP End address(excluded). Deactivation of PCROP can be done by enbaling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  345. <BitOffset>0x0</BitOffset>
  346. <BitWidth>0x10</BitWidth>
  347. <Access>RW</Access>
  348. <Equation multiplier="0x8" offset="0x08000008"/>
  349. </Bit>
  350. <Bit>
  351. <Name>PCROP_RDP</Name>
  352. <Description/>
  353. <BitOffset>0x1F</BitOffset>
  354. <BitWidth>0x1</BitWidth>
  355. <Access>RW</Access>
  356. <Values>
  357. <Val value="0x0">PCROP zone is kept when RDP is decreased</Val>
  358. <Val value="0x1">PCROP zone is erased when RDP is decreased</Val>
  359. </Values>
  360. </Bit>
  361. </AssignedBits>
  362. </Field>
  363. </Category>
  364. <Category>
  365. <Name>Write Protection</Name>
  366. <Field>
  367. <Parameters address="0x4002202C" name="FLASH_WRP1AR" size="0x4"/>
  368. <AssignedBits>
  369. <Bit>
  370. <Name>WRP1A_STRT</Name>
  371. <Description>The address of the first page of WRP first area</Description>
  372. <BitOffset>0x0</BitOffset>
  373. <BitWidth>0x8</BitWidth>
  374. <Access>RW</Access>
  375. <Equation multiplier="0x800" offset="0x08000000"/>
  376. </Bit>
  377. <Bit>
  378. <Name>WRP1A_END</Name>
  379. <Description>The address of the last page of WRP first area</Description>
  380. <BitOffset>0x10</BitOffset>
  381. <BitWidth>0x8</BitWidth>
  382. <Access>RW</Access>
  383. <Equation multiplier="0x800" offset="0x08000000"/>
  384. </Bit>
  385. </AssignedBits>
  386. </Field>
  387. <Field>
  388. <Parameters address="0x40022030" name="FLASH_WRP1BR" size="0x4"/>
  389. <AssignedBits>
  390. <Bit>
  391. <Name>WRP1B_STRT</Name>
  392. <Description>The address of the first page of WRP second area</Description>
  393. <BitOffset>0x0</BitOffset>
  394. <BitWidth>0x8</BitWidth>
  395. <Access>RW</Access>
  396. <Equation multiplier="0x800" offset="0x08000000"/>
  397. </Bit>
  398. <Bit>
  399. <Name>WRP1B_END</Name>
  400. <Description>The address of the last page of WRP second area</Description>
  401. <BitOffset>0x10</BitOffset>
  402. <BitWidth>0x8</BitWidth>
  403. <Access>RW</Access>
  404. <Equation multiplier="0x800" offset="0x08000000"/>
  405. </Bit>
  406. </AssignedBits>
  407. </Field>
  408. </Category>
  409. <Category>
  410. <Name>Secure Protection</Name>
  411. <Field>
  412. <Parameters address="0x40022070" name="FLASH_SECR1" size="0x4"/>
  413. <AssignedBits>
  414. <Bit>
  415. <Name>SEC_SIZE1</Name>
  416. <Description>sets the number of pages used in the bank 1 securable area</Description>
  417. <BitOffset>0x0</BitOffset>
  418. <BitWidth>0x8</BitWidth>
  419. <Access>RW</Access>
  420. </Bit>
  421. <Bit>
  422. <Name>BOOT_LOCK</Name>
  423. <Description>Unique boot entry point</Description>
  424. <BitOffset>0x10</BitOffset>
  425. <BitWidth>0x1</BitWidth>
  426. <Access>RW</Access>
  427. <Values>
  428. <Val value="0x0">This bit can be reset by SW only in level0. In level 1, an RDP level regression will reset this bit, which will force a mass erase of the flash.</Val>
  429. <Val value="0x1">the boot will be done from user flash only, whatever the RDP level</Val>
  430. </Values>
  431. </Bit>
  432. </AssignedBits>
  433. </Field>
  434. </Category>
  435. </Bank>
  436. <Bank interface="Bootloader">
  437. <Parameters address="0x1FFF7800" name="Bank 1" size="0x24"/>
  438. <Category>
  439. <Name>Read Out Protection</Name>
  440. <Field>
  441. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  442. <AssignedBits>
  443. <Bit>
  444. <Name>RDP</Name>
  445. <Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
  446. <BitOffset>0x0</BitOffset>
  447. <BitWidth>0x8</BitWidth>
  448. <Access>RW</Access>
  449. <Values>
  450. <Val value="0xAA">Level 0, no protection</Val>
  451. <Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
  452. <Val value="0xCC">Level 2, no debug</Val>
  453. </Values>
  454. </Bit>
  455. </AssignedBits>
  456. </Field>
  457. </Category>
  458. <Category>
  459. <Name>BOR Level</Name>
  460. <Field>
  461. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  462. <AssignedBits>
  463. <Bit>
  464. <Name>BOR_LEV</Name>
  465. <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>
  466. <BitOffset>0x8</BitOffset>
  467. <BitWidth>0x3</BitWidth>
  468. <Access>RW</Access>
  469. <Values>
  470. <Val value="0x0">BOR Level 0, reset level threshold is around 1.7 V</Val>
  471. <Val value="0x1">BOR Level 1, reset level threshold is around 2.0 V</Val>
  472. <Val value="0x2">BOR Level 2, reset level threshold is around 2.2 V</Val>
  473. <Val value="0x3">BOR Level 3, reset level threshold is around 2.5 V</Val>
  474. <Val value="0x4">BOR Level 4, reset level threshold is around 2.8 V</Val>
  475. </Values>
  476. </Bit>
  477. </AssignedBits>
  478. </Field>
  479. </Category>
  480. <Category>
  481. <Name>User Configuration</Name>
  482. <Field>
  483. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  484. <AssignedBits>
  485. <Bit>
  486. <Name>IWDG_STOP</Name>
  487. <Description/>
  488. <BitOffset>0x11</BitOffset>
  489. <BitWidth>0x1</BitWidth>
  490. <Access>RW</Access>
  491. <Values>
  492. <Val value="0x0">Freeze IWDG counter in stop mode</Val>
  493. <Val value="0x1">IWDG counter active in stop mode</Val>
  494. </Values>
  495. </Bit>
  496. <Bit>
  497. <Name>IWDG_STDBY</Name>
  498. <Description/>
  499. <BitOffset>0x12</BitOffset>
  500. <BitWidth>0x1</BitWidth>
  501. <Access>RW</Access>
  502. <Values>
  503. <Val value="0x0">Freeze IWDG counter in standby mode</Val>
  504. <Val value="0x1">IWDG counter active in standby mode</Val>
  505. </Values>
  506. </Bit>
  507. </AssignedBits>
  508. </Field>
  509. <Field>
  510. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  511. <AssignedBits>
  512. <Bit>
  513. <Name>WWDG_SW</Name>
  514. <Description/>
  515. <BitOffset>0x13</BitOffset>
  516. <BitWidth>0x1</BitWidth>
  517. <Access>RW</Access>
  518. <Values>
  519. <Val value="0x0">Hardware window watchdog</Val>
  520. <Val value="0x1">Software window watchdog</Val>
  521. </Values>
  522. </Bit>
  523. <Bit>
  524. <Name>PB4_PUEN</Name>
  525. <Description/>
  526. <BitOffset>0x16</BitOffset>
  527. <BitWidth>0x1</BitWidth>
  528. <Access>RW</Access>
  529. <Values>
  530. <Val value="0x0">USB power delivery dead-battery enabled/ TDI pull-up deactivated</Val>
  531. <Val value="0x1">USB power delivery dead-battery disabled/ TDI pull-up activated</Val>
  532. </Values>
  533. </Bit>
  534. <Bit>
  535. <Name>IWDG_SW</Name>
  536. <Description/>
  537. <BitOffset>0x10</BitOffset>
  538. <BitWidth>0x1</BitWidth>
  539. <Access>RW</Access>
  540. <Values>
  541. <Val value="0x0">Hardware independant watchdog</Val>
  542. <Val value="0x1">Software independant watchdog</Val>
  543. </Values>
  544. </Bit>
  545. <Bit>
  546. <Name>nRST_STOP</Name>
  547. <Description/>
  548. <BitOffset>0xC</BitOffset>
  549. <BitWidth>0x1</BitWidth>
  550. <Access>RW</Access>
  551. <Values>
  552. <Val value="0x0">Reset generated when entering Stop mode</Val>
  553. <Val value="0x1">No reset generated</Val>
  554. </Values>
  555. </Bit>
  556. <Bit>
  557. <Name>nRST_STDBY</Name>
  558. <Description/>
  559. <BitOffset>0xD</BitOffset>
  560. <BitWidth>0x1</BitWidth>
  561. <Access>RW</Access>
  562. <Values>
  563. <Val value="0x0">Reset generated when entering Standby mode</Val>
  564. <Val value="0x1">No reset generated</Val>
  565. </Values>
  566. </Bit>
  567. <Bit>
  568. <Name>nRST_SHDW</Name>
  569. <Description/>
  570. <BitOffset>0xE</BitOffset>
  571. <BitWidth>0x1</BitWidth>
  572. <Access>RW</Access>
  573. <Values>
  574. <Val value="0x0">Reset generated when entering the Shutdown mode</Val>
  575. <Val value="0x1">No reset generated when entering the Shutdown mode</Val>
  576. </Values>
  577. </Bit>
  578. <Bit>
  579. <Name>BFB2</Name>
  580. <Description/>
  581. <BitOffset>0x14</BitOffset>
  582. <BitWidth>0x1</BitWidth>
  583. <Access>RW</Access>
  584. <Values>
  585. <Val value="0x0">Dual-bank boot disable</Val>
  586. <Val value="0x1">Dual-bank boot enable</Val>
  587. </Values>
  588. </Bit>
  589. <Bit reference="DualBank">
  590. <Name>DBANK</Name>
  591. <Description/>
  592. <BitOffset>0x16</BitOffset>
  593. <BitWidth>0x1</BitWidth>
  594. <Access>RW</Access>
  595. <Values>
  596. <Val value="0x0">Single bank mode with 128 bits data read width</Val>
  597. <Val value="0x1">Dual bank mode with 64 bits data</Val>
  598. </Values>
  599. </Bit>
  600. <Bit>
  601. <Name>nBOOT1</Name>
  602. <Description/>
  603. <BitOffset>0x17</BitOffset>
  604. <BitWidth>0x1</BitWidth>
  605. <Access>RW</Access>
  606. <Values>
  607. <Val value="0x0">Boot from Flash if BOOT0 = 0, otherwise Embedded SRAM1</Val>
  608. <Val value="0x1">Boot from Flash if BOOT0 = 0, otherwise system memory</Val>
  609. </Values>
  610. </Bit>
  611. <Bit>
  612. <Name>SRAM_PE</Name>
  613. <Description>SRAM1 and CCM SRAM parity check enable</Description>
  614. <BitOffset>0x18</BitOffset>
  615. <BitWidth>0x1</BitWidth>
  616. <Access>RW</Access>
  617. <Values>
  618. <Val value="0x0">SRAM1 and CCM SRAM parity check enable</Val>
  619. <Val value="0x1">SRAM1 and CCM SRAM parity check disable</Val>
  620. </Values>
  621. </Bit>
  622. <Bit>
  623. <Name>CCMSRAM_RST</Name>
  624. <Description>CCM SRAM Erase when system reset</Description>
  625. <BitOffset>0x19</BitOffset>
  626. <BitWidth>0x1</BitWidth>
  627. <Access>RW</Access>
  628. <Values>
  629. <Val value="0x0">CCM SRAM erased when a system reset occurs</Val>
  630. <Val value="0x1">CCM SRAM is not erased when a system reset occurs</Val>
  631. </Values>
  632. </Bit>
  633. <Bit>
  634. <Name>nSWBOOT0</Name>
  635. <Description>Software BOOT0</Description>
  636. <BitOffset>0x1A</BitOffset>
  637. <BitWidth>0x1</BitWidth>
  638. <Access>RW</Access>
  639. <Values>
  640. <Val value="0x0">BOOT0 taken from the option bit nBOOT0</Val>
  641. <Val value="0x1">BOOT0 taken from PB8/BOOT0 pin</Val>
  642. </Values>
  643. </Bit>
  644. <Bit>
  645. <Name>nBOOT0</Name>
  646. <Description>This option bit sets the BOOT0 value only when nSWBOOT0=0</Description>
  647. <BitOffset>0x1B</BitOffset>
  648. <BitWidth>0x1</BitWidth>
  649. <Access>RW</Access>
  650. <Values>
  651. <Val value="0x0">nBOOT0 = 0</Val>
  652. <Val value="0x1">nBOOT0 = 1</Val>
  653. </Values>
  654. </Bit>
  655. <Bit>
  656. <Name>NRST_MODE</Name>
  657. <Description/>
  658. <BitOffset>0x1C</BitOffset>
  659. <BitWidth>0x2</BitWidth>
  660. <Access>RW</Access>
  661. <Values>
  662. <Val value="0x0">Reserved</Val>
  663. <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>
  664. <Val value="0x2">GPIO: standard GPIO pad functionality, only internal RESET possible</Val>
  665. <Val value="0x3">Bidirectional reset: NRST pin configured in reset input/output mode (legacy mode)</Val>
  666. </Values>
  667. </Bit>
  668. <Bit>
  669. <Name>IRHEN</Name>
  670. <Description>Internal reset holder enable bit</Description>
  671. <BitOffset>0x1E</BitOffset>
  672. <BitWidth>0x1</BitWidth>
  673. <Access>RW</Access>
  674. <Values>
  675. <Val value="0x0">Internal resets are propagated as simple pulse on NRST pin</Val>
  676. <Val value="0x1">Internal resets drives NRST pin low until it is seen as low level</Val>
  677. </Values>
  678. </Bit>
  679. </AssignedBits>
  680. </Field>
  681. </Category>
  682. <Category>
  683. <Name>PCROP Protection</Name>
  684. <Field>
  685. <Parameters address="0x1FFF7808" name="FLASH_PCROP1SR" size="0x4"/>
  686. <AssignedBits>
  687. <Bit>
  688. <Name>PCROP1_STRT</Name>
  689. <Description>Flash Bank 1 PCROP start address</Description>
  690. <BitOffset>0x0</BitOffset>
  691. <BitWidth>0x10</BitWidth>
  692. <Access>RW</Access>
  693. <Equation multiplier="0x10" offset="0x08000000"/>
  694. </Bit>
  695. </AssignedBits>
  696. </Field>
  697. <Field>
  698. <Parameters address="0x1FFF7810" name="FLASH_PCROP1ER" size="0x4"/>
  699. <AssignedBits>
  700. <Bit>
  701. <Name>PCROP1_END</Name>
  702. <Description>Flash Bank 1 PCROP End address(excluded). Deactivation of PCROP can be done by enbaling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  703. <BitOffset>0x0</BitOffset>
  704. <BitWidth>0x10</BitWidth>
  705. <Access>RW</Access>
  706. <Equation multiplier="0x10" offset="0x08000008"/>
  707. </Bit>
  708. <Bit>
  709. <Name>PCROP_RDP</Name>
  710. <Description/>
  711. <BitOffset>0x1F</BitOffset>
  712. <BitWidth>0x1</BitWidth>
  713. <Access>RW</Access>
  714. <Values>
  715. <Val value="0x0">PCROP zone is kept when RDP is decreased</Val>
  716. <Val value="0x1">PCROP zone is erased when RDP is decreased</Val>
  717. </Values>
  718. </Bit>
  719. </AssignedBits>
  720. </Field>
  721. </Category>
  722. <Category>
  723. <Name>Write Protection</Name>
  724. <Field>
  725. <Parameters address="0x1FFF7818" name="FLASH_WRP1AR" size="0x4"/>
  726. <AssignedBits>
  727. <Bit config="0">
  728. <Name>WRP1A_STRT</Name>
  729. <Description>The address of the first page of the Bank 1 WRP first area</Description>
  730. <BitOffset>0x0</BitOffset>
  731. <BitWidth>0x7</BitWidth>
  732. <Access>RW</Access>
  733. <Equation multiplier="0x1000" offset="0x08000000"/>
  734. </Bit>
  735. </AssignedBits>
  736. </Field>
  737. <Field>
  738. <Parameters address="0x1FFF7820" name="FLASH_WRP1BR" size="0x4"/>
  739. <AssignedBits>
  740. <Bit>
  741. <Name>WRP1B_STRT</Name>
  742. <Description>The address of the first page of the Bank 1 WRP second area</Description>
  743. <BitOffset>0x0</BitOffset>
  744. <BitWidth>0x7</BitWidth>
  745. <Access>RW</Access>
  746. <Equation multiplier="0x1000" offset="0x08000000"/>
  747. </Bit>
  748. </AssignedBits>
  749. </Field>
  750. <Field>
  751. <Parameters address="0x1FFF7828" name="FLASH_SECR1" size="0x4"/>
  752. <AssignedBits>
  753. <Bit>
  754. <Name>SEC_SIZE1</Name>
  755. <Description>sets the number of pages used in the bank 1 securable area</Description>
  756. <BitOffset>0x0</BitOffset>
  757. <BitWidth>0x8</BitWidth>
  758. <Access>RW</Access>
  759. </Bit>
  760. <Bit>
  761. <Name>BOOT_LOCK</Name>
  762. <Description>Unique boot entry point</Description>
  763. <BitOffset>0x10</BitOffset>
  764. <BitWidth>0x1</BitWidth>
  765. <Access>RW</Access>
  766. <Values>
  767. <Val value="0x0">This bit can be reset by SW only in level0. In level 1, an RDP level regression will reset this bit, which will force a mass erase of the flash.</Val>
  768. <Val value="0x1">the boot will be done from user flash only, whatever the RDP level</Val>
  769. </Values>
  770. </Bit>
  771. </AssignedBits>
  772. </Field>
  773. </Category>
  774. </Bank>
  775. </Peripheral>
  776. </Peripherals>
  777. </Device>
  778. </Root>