STM32_Prog_DB_0x466.xml 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146
  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. <Configuration number="0x0">
  15. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0xFF"/> </ValueLine>
  16. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x20"/> </ValueLine>
  17. </Configuration>
  18. <Configuration number="0x1">
  19. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0x30"/> </ValueLine>
  20. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x20"/> </ValueLine>
  21. </Configuration>
  22. <Configuration number="0x2">
  23. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0x31"/> </ValueLine> <!-- 32 kb-->
  24. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x20"/> </ValueLine>
  25. </Configuration>
  26. <Configuration number="0x3">
  27. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0xFF"/> </ValueLine>
  28. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x40"/> </ValueLine>
  29. </Configuration>
  30. <Configuration number="0x4">
  31. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0x30"/> </ValueLine>
  32. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x40"/> </ValueLine>
  33. </Configuration>
  34. <Configuration number="0x5">
  35. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0x31"/> </ValueLine>
  36. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x40"/> </ValueLine>
  37. </Configuration>
  38. </Interface>
  39. <!-- Bootloader Interface -->
  40. <Interface name="Bootloader">
  41. <Configuration number="0x0">
  42. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0xFF"/> </ValueLine>
  43. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x20"/> </ValueLine>
  44. </Configuration>
  45. <Configuration number="0x1">
  46. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0x30"/> </ValueLine>
  47. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x20"/> </ValueLine>
  48. </Configuration>
  49. <Configuration number="0x2">
  50. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0x31"/> </ValueLine>
  51. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x20"/> </ValueLine>
  52. </Configuration>
  53. <Configuration number="0x3">
  54. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0xFF"/> </ValueLine>
  55. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x40"/> </ValueLine>
  56. </Configuration>
  57. <Configuration number="0x4">
  58. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0x30"/> </ValueLine>
  59. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x40"/> </ValueLine>
  60. </Configuration>
  61. <Configuration number="0x5">
  62. <ValueLine> <ReadRegister address="0x1FFF77DD" mask="0xFF" value="0x31"/> </ValueLine>
  63. <ValueLine> <ReadRegister address="0x1FFF75E0" mask="0xFF" value="0x40"/> </ValueLine>
  64. </Configuration>
  65. </Interface>
  66. </Configurations>
  67. <!-- Peripherals -->
  68. <Peripherals>
  69. <!-- Embedded SRAM -->
  70. <Peripheral>
  71. <Name>Embedded SRAM</Name>
  72. <Type>Storage</Type>
  73. <Description/>
  74. <ErasedValue>0x00</ErasedValue>
  75. <Access>RWE</Access>
  76. <!-- 96 KB -->
  77. <Configuration>
  78. <Parameters address="0x20000000" name="SRAM" size="0x2000"/>
  79. <Description/>
  80. <Organization>Single</Organization>
  81. <Bank name="Bank 1">
  82. <Field>
  83. <Parameters address="0x20000000" name="SRAM" occurence="0x1" size="0x2000"/>
  84. </Field>
  85. </Bank>
  86. </Configuration>
  87. </Peripheral>
  88. <!-- Embedded Flash -->
  89. <Peripheral>
  90. <Name>Embedded Flash</Name>
  91. <Type>Storage</Type>
  92. <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>
  93. <ErasedValue>0xFF</ErasedValue>
  94. <Access>RWE</Access>
  95. <FlashSize address="0x1FFF75E0" default="0x10000"/>
  96. <!-- Single Bank -->
  97. <configuration config="0,1,2">
  98. <Parameters address="0x08000000" name=" 64 KB Embedded Flash" size="0x10000"/>
  99. <Description/>
  100. <Organization>Single</Organization>
  101. <Allignement>0x8</Allignement>
  102. <Bank name="Bank 1">
  103. <Field>
  104. <Parameters address="0x08000000" name="sector0" occurence="0x10" size="0x800"/>
  105. </Field>
  106. </Bank>
  107. </configuration>
  108. <configuration config="3,4,5">
  109. <Parameters address="0x08000000" name=" 64 KB Embedded Flash" size="0x10000"/>
  110. <Description/>
  111. <Organization>Single</Organization>
  112. <Allignement>0x8</Allignement>
  113. <Bank name="Bank 1">
  114. <Field>
  115. <Parameters address="0x08000000" name="sector0" occurence="0x20" size="0x800"/>
  116. </Field>
  117. </Bank>
  118. </configuration>
  119. </Peripheral>
  120. <!-- OTP -->
  121. <Peripheral>
  122. <Name>OTP</Name>
  123. <Type>Storage</Type>
  124. <Description>The Data OTP memory block. It contains the one time programmable bits.</Description>
  125. <ErasedValue>0xFF</ErasedValue>
  126. <Access>RW</Access>
  127. <!-- 1 KBytes single bank -->
  128. <Configuration>
  129. <Parameters address="0x1FFF7000" name=" 1 KBytes Data OTP" size="0x400"/>
  130. <Description/>
  131. <Organization>Single</Organization>
  132. <Allignement>0x4</Allignement>
  133. <Bank name="OTP">
  134. <Field>
  135. <Parameters address="0x1FFF7000" name="OTP" occurence="0x1" size="0x400"/>
  136. </Field>
  137. </Bank>
  138. </Configuration>
  139. </Peripheral>
  140. <!-- Mirror Option Bytes -->
  141. <Peripheral>
  142. <Name>MirrorOptionBytes</Name>
  143. <Type>Storage</Type>
  144. <Description>Mirror Option Bytes contains the extra area.</Description>
  145. <ErasedValue>0xFF</ErasedValue>
  146. <Access>RW</Access>
  147. <!-- 56 Bytes Dual bank -->
  148. <Configuration>
  149. <Parameters address="0x1FFF7800" name=" 56 Bytes Data MirrorOptionBytes" size="0x38"/>
  150. <Description/>
  151. <Organization>Dual</Organization>
  152. <Allignement>0x4</Allignement>
  153. <Bank name="Bank 1">
  154. <Field>
  155. <Parameters address="0x1FFF7800" name="Bank1" occurence="0x1" size="0x34"/>
  156. </Field>
  157. </Bank>
  158. <Bank name="Bank 2">
  159. <Field>
  160. <Parameters address="0x1FFF7870" name="Bank2" occurence="0x1" size="0x4"/>
  161. </Field>
  162. </Bank>
  163. </Configuration>
  164. </Peripheral>
  165. <!-- Option Bytes -->
  166. <Peripheral>
  167. <Name>Option Bytes</Name>
  168. <Type>Configuration</Type>
  169. <Description/>
  170. <Access>RW</Access>
  171. <Bank interface="JTAG_SWD">
  172. <Parameters address="0x40022020" name="Bank 1" size="0x6C"/>
  173. <Category>
  174. <Name>Read Out Protection</Name>
  175. <Field>
  176. <Parameters address="0x40022020" name="FLASH_OPTR" size="0x4"/>
  177. <AssignedBits>
  178. <Bit>
  179. <Name>RDP</Name>
  180. <Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
  181. <BitOffset>0x0</BitOffset>
  182. <BitWidth>0x8</BitWidth>
  183. <Access>RW</Access>
  184. <Values>
  185. <Val value="0xAA">Level 0, no protection</Val>
  186. <Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
  187. <Val value="0xCC">Level 2, chip protection</Val>
  188. </Values>
  189. </Bit>
  190. </AssignedBits>
  191. </Field>
  192. </Category>
  193. <Category>
  194. <Name>BOR Level</Name>
  195. <Field>
  196. <Parameters name="FLASH_OPTR" size="0x4" address="0x40022020"/>
  197. <AssignedBits>
  198. <Bit config="0,2,3,5">
  199. <Name>BOR_EN</Name>
  200. <Description/>
  201. <BitOffset>0x8</BitOffset>
  202. <BitWidth>0x1</BitWidth>
  203. <Access>RW</Access>
  204. <Values>
  205. <Val value="0x0">Configurable brown out reset disabled, power-on reset defined by POR/PDR levels</Val>
  206. <Val value="0x1">Configurable brown out reset enabled, values of BORR_LEV and BORF_LEV taken into account</Val>
  207. </Values>
  208. </Bit>
  209. <Bit config="0,2,3,5">
  210. <Name>BORF_LEV</Name>
  211. <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>
  212. <BitOffset>0xB</BitOffset>
  213. <BitWidth>0x2</BitWidth>
  214. <Access>RW</Access>
  215. <Values>
  216. <Val value="0x0">BOR falling level 1 with threshold around 2.0 V</Val>
  217. <Val value="0x1">BOR falling level 2 with threshold around 2.2 V</Val>
  218. <Val value="0x2">BOR falling level 3 with threshold around 2.5 V</Val>
  219. <Val value="0x3">BOR falling level 4 with threshold around 2.8 V</Val>
  220. </Values>
  221. </Bit>
  222. <Bit config="0,2,3,5">
  223. <Name>BORR_LEV</Name>
  224. <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>
  225. <BitOffset>0x9</BitOffset>
  226. <BitWidth>0x2</BitWidth>
  227. <Access>RW</Access>
  228. <Values>
  229. <Val value="0x0">BOR rising level 1 with threshold around 2.1 V</Val>
  230. <Val value="0x1">BOR rising level 2 with threshold around 2.3 V</Val>
  231. <Val value="0x2">BOR rising level 3 with threshold around 2.6 V</Val>
  232. <Val value="0x3">BOR rising level 4 with threshold around 2.9 V</Val>
  233. </Values>
  234. </Bit>
  235. </AssignedBits>
  236. </Field>
  237. </Category>
  238. <Category>
  239. <Name>User Configuration</Name>
  240. <Field>
  241. <Parameters address="0x40022020" name="FLASH_OPTR" size="0x4"/>
  242. <AssignedBits>
  243. <Bit>
  244. <Name>nRST_STOP</Name>
  245. <Description/>
  246. <BitOffset>0xD</BitOffset>
  247. <BitWidth>0x1</BitWidth>
  248. <Access>RW</Access>
  249. <Values>
  250. <Val value="0x0">Reset generated when entering Stop mode</Val>
  251. <Val value="0x1">No reset generated when entering Stop mode</Val>
  252. </Values>
  253. </Bit>
  254. <Bit>
  255. <Name>nRST_STDBY</Name>
  256. <Description/>
  257. <BitOffset>0xE</BitOffset>
  258. <BitWidth>0x1</BitWidth>
  259. <Access>RW</Access>
  260. <Values>
  261. <Val value="0x0">Reset generated when entering Standby mode</Val>
  262. <Val value="0x1">No reset generated when entering Standby mode</Val>
  263. </Values>
  264. </Bit>
  265. <Bit config="0,2,3,5">
  266. <Name>nRST_SHDW</Name>
  267. <BitOffset>0xF</BitOffset>
  268. <BitWidth>0x1</BitWidth>
  269. <Access>RW</Access>
  270. <Values>
  271. <Val value="0x0">Reset generated when entering the Shutdown mode</Val>
  272. <Val value="0x1">No reset generated when entering the Shutdown mode</Val>
  273. </Values>
  274. </Bit>
  275. <Bit>
  276. <Name>IWDG_SW</Name>
  277. <Description/>
  278. <BitOffset>0x10</BitOffset>
  279. <BitWidth>0x1</BitWidth>
  280. <Access>RW</Access>
  281. <Values>
  282. <Val value="0x0">Hardware independant watchdog</Val>
  283. <Val value="0x1">Software independant watchdog</Val>
  284. </Values>
  285. </Bit>
  286. <Bit>
  287. <Name>IWDG_STOP</Name>
  288. <Description/>
  289. <BitOffset>0x11</BitOffset>
  290. <BitWidth>0x1</BitWidth>
  291. <Access>RW</Access>
  292. <Values>
  293. <Val value="0x0">Freeze IWDG counter in stop mode</Val>
  294. <Val value="0x1">IWDG counter active in stop mode</Val>
  295. </Values>
  296. </Bit>
  297. <Bit>
  298. <Name>IWDG_STDBY</Name>
  299. <Description/>
  300. <BitOffset>0x12</BitOffset>
  301. <BitWidth>0x1</BitWidth>
  302. <Access>RW</Access>
  303. <Values>
  304. <Val value="0x0">Freeze IWDG counter in standby mode</Val>
  305. <Val value="0x1">IWDG counter active in standby mode</Val>
  306. </Values>
  307. </Bit>
  308. <Bit>
  309. <Name>WWDG_SW</Name>
  310. <Description/>
  311. <BitOffset>0x13</BitOffset>
  312. <BitWidth>0x1</BitWidth>
  313. <Access>RW</Access>
  314. <Values>
  315. <Val value="0x0">Hardware window watchdog</Val>
  316. <Val value="0x1">Software window watchdog</Val>
  317. </Values>
  318. </Bit>
  319. <Bit>
  320. <Name>RAM_PARITY_CHECK</Name>
  321. <Description/>
  322. <BitOffset>0x16</BitOffset>
  323. <BitWidth>0x1</BitWidth>
  324. <Access>RW</Access>
  325. <Values>
  326. <Val value="0x0">SRAM parity check enable</Val>
  327. <Val value="0x1">SRAM parity check disable</Val>
  328. </Values>
  329. </Bit>
  330. <Bit>
  331. <Name>nBOOT_SEL</Name>
  332. <Description/>
  333. <BitOffset>0x18</BitOffset>
  334. <BitWidth>0x1</BitWidth>
  335. <Access>RW</Access>
  336. <Values>
  337. <Val value="0x0">BOOT0 signal is defined by BOOT0 pin value (legacy mode)</Val>
  338. <Val value="0x1">BOOT0 signal is defined by nBOOT0 option bit</Val>
  339. </Values>
  340. </Bit>
  341. <Bit>
  342. <Name>nBOOT1</Name>
  343. <Description/>
  344. <BitOffset>0x19</BitOffset>
  345. <BitWidth>0x1</BitWidth>
  346. <Access>RW</Access>
  347. <Values>
  348. <Val value="0x0">Boot from Flash if BOOT0 = 1, otherwise Embedded SRAM1</Val>
  349. <Val value="0x1">Boot from Flash if BOOT0 = 1, otherwise system memory</Val>
  350. </Values>
  351. </Bit>
  352. <Bit>
  353. <Name>nBOOT0</Name>
  354. <Description/>
  355. <BitOffset>0x1A</BitOffset>
  356. <BitWidth>0x1</BitWidth>
  357. <Access>RW</Access>
  358. <Values>
  359. <Val value="0x0">nBOOT0=0</Val>
  360. <Val value="0x1">nBOOT0=1</Val>
  361. </Values>
  362. </Bit>
  363. <Bit config="0,2,3,5">
  364. <Name>NRST_MODE</Name>
  365. <BitOffset>0x1B</BitOffset>
  366. <BitWidth>0x2</BitWidth>
  367. <Access>RW</Access>
  368. <Values>
  369. <Val value="0x0">Reserved</Val>
  370. <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>
  371. <Val value="0x2">GPIO: standard GPIO pad functionality, only internal RESET possible</Val>
  372. <Val value="0x3">Bidirectional reset: NRST pin configured in reset input/output mode (legacy mode)</Val>
  373. </Values>
  374. </Bit>
  375. <Bit config="0,2,3,5">
  376. <Name>IRHEN</Name>
  377. <Description>Internal reset holder enable bit</Description>
  378. <BitOffset>0x1D</BitOffset>
  379. <BitWidth>0x1</BitWidth>
  380. <Access>RW</Access>
  381. <Values>
  382. <Val value="0x0">Internal resets are propagated as simple pulse on NRST pin</Val>
  383. <Val value="0x1">Internal resets drives NRST pin low until it is seen as low level</Val>
  384. </Values>
  385. </Bit>
  386. <Bit>
  387. <Name>nSWAP_BANK</Name>
  388. <Description>This bit selects the bank that is the subject of empty check upon boot</Description>
  389. <BitOffset>0x14</BitOffset>
  390. <BitWidth>0x1</BitWidth>
  391. <Access>R</Access>
  392. <Values>
  393. <Val value="0x0">Bank 1</Val>
  394. <Val value="0x1">Bank 2</Val>
  395. </Values>
  396. </Bit>
  397. <Bit>
  398. <Name>DUAL_BANK</Name>
  399. <Description>Dual-bank on 512Kbytes Flash memory devices</Description>
  400. <BitOffset>0x15</BitOffset>
  401. <BitWidth>0x1</BitWidth>
  402. <Access>R</Access>
  403. <Values>
  404. <Val value="0x0">512Kbytes single-bank Flash memory, contiguous addresses in Bank 1</Val>
  405. <Val value="0x1">512Kbytes dual-bank Flash memory</Val>
  406. </Values>
  407. </Bit>
  408. </AssignedBits>
  409. </Field>
  410. </Category>
  411. <Category>
  412. <Name>PCROP Protection</Name>
  413. <Field>
  414. <Parameters address="0x40022024" name="FLASH_PCROP1SR" size="0x4"/>
  415. <AssignedBits>
  416. <Bit config="0,2,3,5">
  417. <Name>PCROP1A_STRT</Name>
  418. <Description>Flash Area A in Bank1 PCROP start address</Description>
  419. <BitOffset>0x0</BitOffset>
  420. <BitWidth>0x8</BitWidth>
  421. <Access>RW</Access>
  422. <Equation multiplier="0x200" offset="0x08000000"/>
  423. </Bit>
  424. </AssignedBits>
  425. </Field>
  426. <Field>
  427. <Parameters address="0x40022028" name="FLASH_PCROP1ER" size="0x4"/>
  428. <AssignedBits>
  429. <Bit config="0,2,3,5">
  430. <Name>PCROP1A_END</Name>
  431. <Description>Flash Area A in Bank1 PCROP End address(excluded). Deactivation of PCROP can be done by enabling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  432. <BitOffset>0x0</BitOffset>
  433. <BitWidth>0x8</BitWidth>
  434. <Access>RW</Access>
  435. <Equation multiplier="0x200" offset="0x08000200"/>
  436. </Bit>
  437. <Bit config="0,2,3,5">
  438. <Name>PCROP_RDP</Name>
  439. <Description/>
  440. <BitOffset>0x1F</BitOffset>
  441. <BitWidth>0x1</BitWidth>
  442. <Access>RW</Access>
  443. <Values>
  444. <Val value="0x0">PCROP zone is kept when RDP is decreased</Val>
  445. <Val value="0x1">PCROP zone is erased when RDP is decreased</Val>
  446. </Values>
  447. </Bit>
  448. </AssignedBits>
  449. </Field>
  450. <Field>
  451. <Parameters address="0x40022044" name="FLASH_PCROP2ASR" size="0x4"/>
  452. <AssignedBits>
  453. <Bit config="0,2,3,5">
  454. <Name>PCROP2A_STRT</Name>
  455. <Description>Flash Area A in Bank 2 PCROP start address</Description>
  456. <BitOffset>0x0</BitOffset>
  457. <BitWidth>0x8</BitWidth>
  458. <Access>RW</Access>
  459. <Equation multiplier="0x200" offset="0x08000000"/>
  460. </Bit>
  461. </AssignedBits>
  462. </Field>
  463. <Field>
  464. <Parameters address="0x40022048" name="FLASH_PCROP2AER" size="0x4"/>
  465. <AssignedBits>
  466. <Bit config="0,2,3,5">
  467. <Name>PCROP2A_END</Name>
  468. <Description>Flash Area A in Bank 2 PCROP end address</Description>
  469. <BitOffset>0x0</BitOffset>
  470. <BitWidth>0x8</BitWidth>
  471. <Access>RW</Access>
  472. <Equation multiplier="0x200" offset="0x08000000"/>
  473. </Bit>
  474. </AssignedBits>
  475. </Field>
  476. <Field>
  477. <Parameters address="0x40022034" name="FLASH_PCROP1BSR" size="0x4"/>
  478. <AssignedBits>
  479. <Bit config="0,2,3,5">
  480. <Name>PCROP1B_STRT</Name>
  481. <Description>Flash Area B in Bank1 PCROP start address</Description>
  482. <BitOffset>0x0</BitOffset>
  483. <BitWidth>0x8</BitWidth>
  484. <Access>RW</Access>
  485. <Equation multiplier="0x200" offset="0x08000000"/>
  486. </Bit>
  487. </AssignedBits>
  488. </Field>
  489. <Field>
  490. <Parameters address="0x40022038" name="FLASH_PCROP1BER" size="0x4"/>
  491. <AssignedBits>
  492. <Bit config="0,2,3,5">
  493. <Name>PCROP1B_END</Name>
  494. <Description>Flash Area B in Bank1 PCROP End address(excluded). Deactivation of PCROP can be done by enabling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  495. <BitOffset>0x0</BitOffset>
  496. <BitWidth>0x8</BitWidth>
  497. <Access>RW</Access>
  498. <Equation multiplier="0x200" offset="0x08000200"/>
  499. </Bit>
  500. </AssignedBits>
  501. </Field>
  502. <Field>
  503. <Parameters address="0x40022054" name="FLASH_PCROP2BSR" size="0x4"/>
  504. <AssignedBits>
  505. <Bit config="0,2,3,5">
  506. <Name>PCROP2B_STRT</Name>
  507. <Description>Flash Area B in Bank 2 PCROP start address</Description>
  508. <BitOffset>0x0</BitOffset>
  509. <BitWidth>0x8</BitWidth>
  510. <Access>RW</Access>
  511. <Equation multiplier="0x200" offset="0x08000000"/>
  512. </Bit>
  513. </AssignedBits>
  514. </Field>
  515. <Field>
  516. <Parameters address="0x40022058" name="FLASH_PCROP2BER" size="0x4"/>
  517. <AssignedBits>
  518. <Bit config="0,2,3,5">
  519. <Name>PCROP2B_END</Name>
  520. <Description>Flash Area B in Bank 2 PCROP End address(excluded). Deactivation of PCROP can be done by enabling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  521. <BitOffset>0x0</BitOffset>
  522. <BitWidth>0x8</BitWidth>
  523. <Access>RW</Access>
  524. <Equation multiplier="0x200" offset="0x08000200"/>
  525. </Bit>
  526. </AssignedBits>
  527. </Field>
  528. </Category>
  529. <Category>
  530. <Name>Write Protection</Name>
  531. <Field>
  532. <Parameters address="0x4002202C" name="FLASH_WRP1AR" size="0x4"/>
  533. <AssignedBits>
  534. <Bit>
  535. <Name>WRP1A_STRT</Name>
  536. <Description>The address of the first page of the Bank 1 WRP first area</Description>
  537. <BitOffset>0x0</BitOffset>
  538. <BitWidth>0x8</BitWidth>
  539. <Access>RW</Access>
  540. <Equation multiplier="0x800" offset="0x08000000"/>
  541. </Bit>
  542. <Bit>
  543. <Name>WRP1A_END</Name>
  544. <Description>The address of the last page of the Bank 1 WRP first area</Description>
  545. <BitOffset>0x10</BitOffset>
  546. <BitWidth>0x8</BitWidth>
  547. <Access>RW</Access>
  548. <Equation multiplier="0x800" offset="0x08000000"/>
  549. </Bit>
  550. </AssignedBits>
  551. </Field>
  552. <Field>
  553. <Parameters address="0x40022030" name="FLASH_WRP1BR" size="0x4"/>
  554. <AssignedBits>
  555. <Bit>
  556. <Name>WRP1B_STRT</Name>
  557. <Description>The address of the first page of the Bank 1 WRP second area</Description>
  558. <BitOffset>0x0</BitOffset>
  559. <BitWidth>0x8</BitWidth>
  560. <Access>RW</Access>
  561. <Equation multiplier="0x800" offset="0x08000000"/>
  562. </Bit>
  563. <Bit>
  564. <Name>WRP1B_END</Name>
  565. <Description>The address of the last page of the Bank 1 WRP second area</Description>
  566. <BitOffset>0x10</BitOffset>
  567. <BitWidth>0x8</BitWidth>
  568. <Access>RW</Access>
  569. <Equation multiplier="0x800" offset="0x08000000"/>
  570. </Bit>
  571. </AssignedBits>
  572. </Field>
  573. <Field>
  574. <Parameters address="0x4002204C" name="FLASH_WRP2AR" size="0x4"/>
  575. <AssignedBits>
  576. <Bit>
  577. <Name>WRP2A_STRT</Name>
  578. <Description>The address of the first page of the Bank 2 WRP first area</Description>
  579. <BitOffset>0x0</BitOffset>
  580. <BitWidth>0x8</BitWidth>
  581. <Access>RW</Access>
  582. <Equation multiplier="0x800" offset="0x08000000"/>
  583. </Bit>
  584. <Bit>
  585. <Name>WRP2A_END</Name>
  586. <Description>The address of the last page of the Bank 2 WRP first area</Description>
  587. <BitOffset>0x10</BitOffset>
  588. <BitWidth>0x8</BitWidth>
  589. <Access>RW</Access>
  590. <Equation multiplier="0x800" offset="0x08000000"/>
  591. </Bit>
  592. </AssignedBits>
  593. </Field>
  594. <Field>
  595. <Parameters address="0x40022050" name="FLASH_WRP2BR" size="0x4"/>
  596. <AssignedBits>
  597. <Bit>
  598. <Name>WRP2B_STRT</Name>
  599. <Description>The address of the first page of the Bank 2 WRP second area</Description>
  600. <BitOffset>0x0</BitOffset>
  601. <BitWidth>0x8</BitWidth>
  602. <Access>RW</Access>
  603. <Equation multiplier="0x800" offset="0x08000000"/>
  604. </Bit>
  605. <Bit>
  606. <Name>WRP2B_END</Name>
  607. <Description>The address of the last page of the Bank 2 WRP second area</Description>
  608. <BitOffset>0x10</BitOffset>
  609. <BitWidth>0x8</BitWidth>
  610. <Access>RW</Access>
  611. <Equation multiplier="0x800" offset="0x08000000"/>
  612. </Bit>
  613. </AssignedBits>
  614. </Field>
  615. </Category>
  616. </Bank>
  617. <Bank interface="JTAG_SWD">
  618. <Parameters address="0x40022080" name="Bank 2" size="0x4"/>
  619. <Category>
  620. <Name >FLASH security</Name>
  621. <Field>
  622. <Parameters address="0x40022080" name="FLASH_SECR" size="0x4"/>
  623. <AssignedBits>
  624. <Bit config="0,2,3,5">
  625. <Name>BOOT_LOCK</Name>
  626. <Description>used to force boot from user area</Description>
  627. <BitOffset>0x10</BitOffset>
  628. <BitWidth>0x1</BitWidth>
  629. <Access>RW</Access>
  630. <Values>
  631. <Val value="0x0">Boot based on the pad/option bit configuration</Val>
  632. <Val value="0x1">Boot forced from Main Flash memory</Val>
  633. </Values>
  634. </Bit>
  635. <Bit config="0,2,3,5">
  636. <Name>SEC_SIZE</Name>
  637. <Description>Securable memory area size, Bank 1</Description>
  638. <BitOffset>0x0</BitOffset>
  639. <BitWidth>0x7</BitWidth>
  640. <Access>RW</Access>
  641. <Equation multiplier="0x800" offset="0x08000000"/>
  642. </Bit>
  643. <Bit config="0,2,3,5">
  644. <Name>SEC_SIZE2</Name>
  645. <Description>Securable memory area size, Bank 2</Description>
  646. <BitOffset>0x0</BitOffset>
  647. <BitWidth>0x7</BitWidth>
  648. <Access>RW</Access>
  649. <Equation multiplier="0x800" offset="0x08000000"/>
  650. </Bit>
  651. </AssignedBits>
  652. </Field>
  653. </Category>
  654. </Bank>
  655. <Bank interface="Bootloader">
  656. <Parameters address="0x1FFF7800" name="Bank 1" size="0x34"/>
  657. <Category>
  658. <Name>Read Out Protection</Name>
  659. <Field>
  660. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  661. <AssignedBits>
  662. <Bit>
  663. <Name>RDP</Name>
  664. <Description>Read protection option byte. The read protection is used to protect the software code stored in Flash memory.</Description>
  665. <BitOffset>0x0</BitOffset>
  666. <BitWidth>0x8</BitWidth>
  667. <Access>RW</Access>
  668. <Values>
  669. <Val value="0xAA">Level 0, no protection</Val>
  670. <Val value="0xBB">or any value other than 0xAA and 0xCC: Level 1, read protection</Val>
  671. <Val value="0xCC">Level 2, chip protection</Val>
  672. </Values>
  673. </Bit>
  674. </AssignedBits>
  675. </Field>
  676. </Category>
  677. <Category>
  678. <Name>BOR Level</Name>
  679. <Field>
  680. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  681. <AssignedBits>
  682. <Bit config="0,2,3,5">
  683. <Name>BOR_EN</Name>
  684. <Description/>
  685. <BitOffset>0x8</BitOffset>
  686. <BitWidth>0x1</BitWidth>
  687. <Access>RW</Access>
  688. <Values>
  689. <Val value="0x0">Configurable brown out reset disabled, power-on reset defined by POR/PDR levels</Val>
  690. <Val value="0x1">Configurable brown out reset enabled, values of BORR_LEV and BORF_LEV taken into account</Val>
  691. </Values>
  692. </Bit>
  693. <Bit config="0,2,3,5">
  694. <Name>BORF_LEV</Name>
  695. <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>
  696. <BitOffset>0xB</BitOffset>
  697. <BitWidth>0x2</BitWidth>
  698. <Access>RW</Access>
  699. <Values>
  700. <Val value="0x0">BOR falling level 1 with threshold around 2.0 V</Val>
  701. <Val value="0x1">BOR falling level 2 with threshold around 2.2 V</Val>
  702. <Val value="0x2">BOR falling level 3 with threshold around 2.5 V</Val>
  703. <Val value="0x3">BOR falling level 4 with threshold around 2.8 V</Val>
  704. </Values>
  705. </Bit>
  706. <Bit config="0,2,3,5">
  707. <Name>BORR_LEV</Name>
  708. <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>
  709. <BitOffset>0x9</BitOffset>
  710. <BitWidth>0x2</BitWidth>
  711. <Access>RW</Access>
  712. <Values>
  713. <Val value="0x0">BOR rising level 1 with threshold around 2.1 V</Val>
  714. <Val value="0x1">BOR rising level 2 with threshold around 2.3 V</Val>
  715. <Val value="0x2">BOR rising level 3 with threshold around 2.6 V</Val>
  716. <Val value="0x3">BOR rising level 4 with threshold around 2.9 V</Val>
  717. </Values>
  718. </Bit>
  719. </AssignedBits>
  720. </Field>
  721. </Category>
  722. <Category>
  723. <Name>User Configuration</Name>
  724. <Field>
  725. <Parameters address="0x1FFF7800" name="FLASH_OPTR" size="0x4"/>
  726. <AssignedBits>
  727. <Bit>
  728. <Name>nRST_STOP</Name>
  729. <Description/>
  730. <BitOffset>0xD</BitOffset>
  731. <BitWidth>0x1</BitWidth>
  732. <Access>RW</Access>
  733. <Values>
  734. <Val value="0x0">Reset generated when entering Stop mode</Val>
  735. <Val value="0x1">No reset generated when entering Stop mode</Val>
  736. </Values>
  737. </Bit>
  738. <Bit>
  739. <Name>nRST_STDBY</Name>
  740. <Description/>
  741. <BitOffset>0xE</BitOffset>
  742. <BitWidth>0x1</BitWidth>
  743. <Access>RW</Access>
  744. <Values>
  745. <Val value="0x0">Reset generated when entering Standby mode</Val>
  746. <Val value="0x1">No reset generated when entering Standby mode</Val>
  747. </Values>
  748. </Bit>
  749. <Bit config="0,2,3,5">
  750. <Name>nRST_SHDW</Name>
  751. <Description/>
  752. <BitOffset>0xF</BitOffset>
  753. <BitWidth>0x1</BitWidth>
  754. <Access>RW</Access>
  755. <Values>
  756. <Val value="0x0">Reset generated when entering the Shutdown mode</Val>
  757. <Val value="0x1">No reset generated when entering the Shutdown mode</Val>
  758. </Values>
  759. </Bit>
  760. <Bit>
  761. <Name>IWDG_SW</Name>
  762. <Description/>
  763. <BitOffset>0x10</BitOffset>
  764. <BitWidth>0x1</BitWidth>
  765. <Access>RW</Access>
  766. <Values>
  767. <Val value="0x0">Hardware independant watchdog</Val>
  768. <Val value="0x1">Software independant watchdog</Val>
  769. </Values>
  770. </Bit>
  771. <Bit>
  772. <Name>IWDG_STOP</Name>
  773. <Description/>
  774. <BitOffset>0x11</BitOffset>
  775. <BitWidth>0x1</BitWidth>
  776. <Access>RW</Access>
  777. <Values>
  778. <Val value="0x0">Freeze IWDG counter in stop mode</Val>
  779. <Val value="0x1">IWDG counter active in stop mode</Val>
  780. </Values>
  781. </Bit>
  782. <Bit>
  783. <Name>IWDG_STDBY</Name>
  784. <Description/>
  785. <BitOffset>0x12</BitOffset>
  786. <BitWidth>0x1</BitWidth>
  787. <Access>RW</Access>
  788. <Values>
  789. <Val value="0x0">Freeze IWDG counter in standby mode</Val>
  790. <Val value="0x1">IWDG counter active in standby mode</Val>
  791. </Values>
  792. </Bit>
  793. <Bit>
  794. <Name>WWDG_SW</Name>
  795. <Description/>
  796. <BitOffset>0x13</BitOffset>
  797. <BitWidth>0x1</BitWidth>
  798. <Access>RW</Access>
  799. <Values>
  800. <Val value="0x0">Hardware window watchdog</Val>
  801. <Val value="0x1">Software window watchdog</Val>
  802. </Values>
  803. </Bit>
  804. <Bit>
  805. <Name>RAM_PARITY_CHECK</Name>
  806. <Description/>
  807. <BitOffset>0x16</BitOffset>
  808. <BitWidth>0x1</BitWidth>
  809. <Access>RW</Access>
  810. <Values>
  811. <Val value="0x0">SRAM parity check enable</Val>
  812. <Val value="0x1">SRAM parity check disable</Val>
  813. </Values>
  814. </Bit>
  815. <Bit>
  816. <Name>nBOOT_SEL</Name>
  817. <Description/>
  818. <BitOffset>0x18</BitOffset>
  819. <BitWidth>0x1</BitWidth>
  820. <Access>RW</Access>
  821. <Values>
  822. <Val value="0x0">BOOT0 signal is defined by BOOT0 pin value (legacy mode)</Val>
  823. <Val value="0x1">BOOT0 signal is defined by nBOOT0 option bit</Val>
  824. </Values>
  825. </Bit>
  826. <Bit>
  827. <Name>nBOOT1</Name>
  828. <Description/>
  829. <BitOffset>0x19</BitOffset>
  830. <BitWidth>0x1</BitWidth>
  831. <Access>RW</Access>
  832. <Values>
  833. <Val value="0x0">Boot from Flash if BOOT0 = 1, otherwise Embedded SRAM1</Val>
  834. <Val value="0x1">Boot from Flash if BOOT0 = 1, otherwise system memory</Val>
  835. </Values>
  836. </Bit>
  837. <Bit>
  838. <Name>nBOOT0</Name>
  839. <Description/>
  840. <BitOffset>0x1A</BitOffset>
  841. <BitWidth>0x1</BitWidth>
  842. <Access>RW</Access>
  843. <Values>
  844. <Val value="0x0">nBOOT0=0</Val>
  845. <Val value="0x1">nBOOT0=1</Val>
  846. </Values>
  847. </Bit>
  848. <Bit config="0,2,3,5">
  849. <Name>NRST_MODE</Name>
  850. <Description/>
  851. <BitOffset>0x1B</BitOffset>
  852. <BitWidth>0x2</BitWidth>
  853. <Access>RW</Access>
  854. <Values>
  855. <Val value="0x0">Reserved</Val>
  856. <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>
  857. <Val value="0x2">GPIO: standard GPIO pad functionality, only internal RESET possible</Val>
  858. <Val value="0x3">Bidirectional reset: NRST pin configured in reset input/output mode (legacy mode)</Val>
  859. </Values>
  860. </Bit>
  861. <Bit config="0,2,3,5">
  862. <Name>IRHEN</Name>
  863. <Description>Internal reset holder enable bit</Description>
  864. <BitOffset>0x1D</BitOffset>
  865. <BitWidth>0x1</BitWidth>
  866. <Access>RW</Access>
  867. <Values>
  868. <Val value="0x0">Internal resets are propagated as simple pulse on NRST pin</Val>
  869. <Val value="0x1">Internal resets drives NRST pin low until it is seen as low level</Val>
  870. </Values>
  871. </Bit>
  872. <Bit>
  873. <Name>nSWAP_BANK</Name>
  874. <Description>This bit selects the bank that is the subject of empty check upon boot</Description>
  875. <BitOffset>0x14</BitOffset>
  876. <BitWidth>0x1</BitWidth>
  877. <Access>R</Access>
  878. <Values>
  879. <Val value="0x0">Bank 1</Val>
  880. <Val value="0x1">Bank 2</Val>
  881. </Values>
  882. </Bit>
  883. <Bit>
  884. <Name>DUAL_BANK</Name>
  885. <Description>Dual-bank on 512Kbytes Flash memory devices</Description>
  886. <BitOffset>0x15</BitOffset>
  887. <BitWidth>0x1</BitWidth>
  888. <Access>R</Access>
  889. <Values>
  890. <Val value="0x0">512Kbytes single-bank Flash memory, contiguous addresses in Bank 1</Val>
  891. <Val value="0x1">512Kbytes dual-bank Flash memory</Val>
  892. </Values>
  893. </Bit>
  894. </AssignedBits>
  895. </Field>
  896. </Category>
  897. <Category>
  898. <Name>PCROP Protection</Name>
  899. <Field>
  900. <Parameters address="0x1FFF7808" name="FLASH_PCROP1SR" size="0x4"/>
  901. <AssignedBits>
  902. <Bit config="0,2,3,5">
  903. <Name>PCROP1A_STRT</Name>
  904. <Description>Flash Area A PCROP start address</Description>
  905. <BitOffset>0x0</BitOffset>
  906. <BitWidth>0x9</BitWidth>
  907. <Access>RW</Access>
  908. <Equation multiplier="0x200" offset="0x08000000"/>
  909. </Bit>
  910. </AssignedBits>
  911. </Field>
  912. <Field>
  913. <Parameters address="0x1FFF7810" name="FLASH_PCROP1ER" size="0x4"/>
  914. <AssignedBits>
  915. <Bit config="0,2,3,5">
  916. <Name>PCROP1A_END</Name>
  917. <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>
  918. <BitOffset>0x0</BitOffset>
  919. <BitWidth>0x9</BitWidth>
  920. <Access>RW</Access>
  921. <Equation multiplier="0x200" offset="0x08000200"/>
  922. </Bit>
  923. <Bit config="0,2,3,5">
  924. <Name>PCROP_RDP</Name>
  925. <Description/>
  926. <BitOffset>0x1F</BitOffset>
  927. <BitWidth>0x1</BitWidth>
  928. <Access>RW</Access>
  929. <Values>
  930. <Val value="0x0">PCROP zone is kept when RDP is decreased</Val>
  931. <Val value="0x1">PCROP zone is erased when RDP is decreased</Val>
  932. </Values>
  933. </Bit>
  934. </AssignedBits>
  935. </Field>
  936. <Field>
  937. <Parameters address="0x1FFF7838" name="FLASH_PCROP2ASR" size="0x4"/>
  938. <AssignedBits>
  939. <Bit config="0,2,3,5">
  940. <Name>PCROP2A_STRT</Name>
  941. <Description>Flash Area A in Bank 2 PCROP start address</Description>
  942. <BitOffset>0x0</BitOffset>
  943. <BitWidth>0x8</BitWidth>
  944. <Access>RW</Access>
  945. <Equation multiplier="0x200" offset="0x08000000"/>
  946. </Bit>
  947. </AssignedBits>
  948. </Field>
  949. <Field>
  950. <Parameters address="0x1FFF7840" name="FLASH_PCROP2AER" size="0x4"/>
  951. <AssignedBits>
  952. <Bit config="0,2,3,5">
  953. <Name>PCROP2A_END</Name>
  954. <Description>Flash Area A in Bank 2 PCROP end address</Description>
  955. <BitOffset>0x0</BitOffset>
  956. <BitWidth>0x8</BitWidth>
  957. <Access>RW</Access>
  958. <Equation multiplier="0x200" offset="0x08000000"/>
  959. </Bit>
  960. </AssignedBits>
  961. </Field>
  962. <Field>
  963. <Parameters address="0x1FFF7828" name="FLASH_PCROP1BSR" size="0x4"/>
  964. <AssignedBits>
  965. <Bit config="0,2,3,5">
  966. <Name>PCROP1B_STRT</Name>
  967. <Description>Flash Area B in Bank1 PCROP start address</Description>
  968. <BitOffset>0x0</BitOffset>
  969. <BitWidth>0x8</BitWidth>
  970. <Access>RW</Access>
  971. <Equation multiplier="0x200" offset="0x08000000"/>
  972. </Bit>
  973. </AssignedBits>
  974. </Field>
  975. <Field>
  976. <Parameters address="0x1FFF7830" name="FLASH_PCROP1BER" size="0x4"/>
  977. <AssignedBits>
  978. <Bit config="0,2,3,5">
  979. <Name>PCROP1B_END</Name>
  980. <Description>Flash Area B in Bank1 PCROP End address(excluded). Deactivation of PCROP can be done by enabling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  981. <BitOffset>0x0</BitOffset>
  982. <BitWidth>0x8</BitWidth>
  983. <Access>RW</Access>
  984. <Equation multiplier="0x200" offset="0x08000200"/>
  985. </Bit>
  986. </AssignedBits>
  987. </Field>
  988. <Field>
  989. <Parameters address="0x1FFF7858" name="FLASH_PCROP2BSR" size="0x4"/>
  990. <AssignedBits>
  991. <Bit config="0,2,3,5">
  992. <Name>PCROP2B_STRT</Name>
  993. <Description>Flash Area B in Bank 2 PCROP start address</Description>
  994. <BitOffset>0x0</BitOffset>
  995. <BitWidth>0x8</BitWidth>
  996. <Access>RW</Access>
  997. <Equation multiplier="0x200" offset="0x08000000"/>
  998. </Bit>
  999. </AssignedBits>
  1000. </Field>
  1001. <Field>
  1002. <Parameters address="0x1FFF7860" name="FLASH_PCROP2BER" size="0x4"/>
  1003. <AssignedBits>
  1004. <Bit config="0,2,3,5">
  1005. <Name>PCROP2B_END</Name>
  1006. <Description>Flash Area B in Bank 2 PCROP End address(excluded). Deactivation of PCROP can be done by enabling PCROP_RDP and changing RDP from level 1 to level 0</Description>
  1007. <BitOffset>0x0</BitOffset>
  1008. <BitWidth>0x8</BitWidth>
  1009. <Access>RW</Access>
  1010. <Equation multiplier="0x200" offset="0x08000200"/>
  1011. </Bit>
  1012. </AssignedBits>
  1013. </Field>
  1014. </Category>
  1015. <Category>
  1016. <Name>Write Protection</Name>
  1017. <Field>
  1018. <Parameters address="0x1FFF7818" name="FLASH_WRP1AR" size="0x4"/>
  1019. <AssignedBits>
  1020. <Bit>
  1021. <Name>WRP1A_STRT</Name>
  1022. <Description>The address of the first page of the Bank 1 WRP first area</Description>
  1023. <BitOffset>0x0</BitOffset>
  1024. <BitWidth>0x6</BitWidth>
  1025. <Access>RW</Access>
  1026. <Equation multiplier="0x800" offset="0x08000000"/>
  1027. </Bit>
  1028. <Bit>
  1029. <Name>WRP1A_END</Name>
  1030. <Description>The address of the last page of the Bank 1 WRP first area</Description>
  1031. <BitOffset>0x10</BitOffset>
  1032. <BitWidth>0x6</BitWidth>
  1033. <Access>RW</Access>
  1034. <Equation multiplier="0x800" offset="0x08000000"/>
  1035. </Bit>
  1036. </AssignedBits>
  1037. </Field>
  1038. <Field>
  1039. <Parameters address="0x1FFF7820" name="FLASH_WRP1BR" size="0x4"/>
  1040. <AssignedBits>
  1041. <Bit>
  1042. <Name>WRP1B_STRT</Name>
  1043. <Description>The address of the first page of the Bank 1 WRP second area</Description>
  1044. <BitOffset>0x0</BitOffset>
  1045. <BitWidth>0x6</BitWidth>
  1046. <Access>RW</Access>
  1047. <Equation multiplier="0x800" offset="0x08000000"/>
  1048. </Bit>
  1049. <Bit>
  1050. <Name>WRP1B_END</Name>
  1051. <Description>The address of the last page of the Bank 1 WRP second area</Description>
  1052. <BitOffset>0x10</BitOffset>
  1053. <BitWidth>0x6</BitWidth>
  1054. <Access>RW</Access>
  1055. <Equation multiplier="0x800" offset="0x08000000"/>
  1056. </Bit>
  1057. </AssignedBits>
  1058. </Field>
  1059. <Field>
  1060. <Parameters address="0x1FFF7848" name="FLASH_WRP2AR" size="0x4"/>
  1061. <AssignedBits>
  1062. <Bit>
  1063. <Name>WRP2A_STRT</Name>
  1064. <Description>The address of the first page of the Bank 2 WRP first area</Description>
  1065. <BitOffset>0x0</BitOffset>
  1066. <BitWidth>0x8</BitWidth>
  1067. <Access>RW</Access>
  1068. <Equation multiplier="0x800" offset="0x08000000"/>
  1069. </Bit>
  1070. <Bit>
  1071. <Name>WRP2A_END</Name>
  1072. <Description>The address of the last page of the Bank 2 WRP first area</Description>
  1073. <BitOffset>0x10</BitOffset>
  1074. <BitWidth>0x8</BitWidth>
  1075. <Access>RW</Access>
  1076. <Equation multiplier="0x800" offset="0x08000000"/>
  1077. </Bit>
  1078. </AssignedBits>
  1079. </Field>
  1080. <Field>
  1081. <Parameters address="0x1FFF7850" name="FLASH_WRP2BR" size="0x4"/>
  1082. <AssignedBits>
  1083. <Bit>
  1084. <Name>WRP2B_STRT</Name>
  1085. <Description>The address of the first page of the Bank 2 WRP second area</Description>
  1086. <BitOffset>0x0</BitOffset>
  1087. <BitWidth>0x8</BitWidth>
  1088. <Access>RW</Access>
  1089. <Equation multiplier="0x800" offset="0x08000000"/>
  1090. </Bit>
  1091. <Bit>
  1092. <Name>WRP2B_END</Name>
  1093. <Description>The address of the last page of the Bank 2 WRP second area</Description>
  1094. <BitOffset>0x10</BitOffset>
  1095. <BitWidth>0x8</BitWidth>
  1096. <Access>RW</Access>
  1097. <Equation multiplier="0x800" offset="0x08000000"/>
  1098. </Bit>
  1099. </AssignedBits>
  1100. </Field>
  1101. </Category>
  1102. </Bank>
  1103. <Bank interface="Bootloader">
  1104. <Parameters address="0x1FFF7870" name="Bank 2" size="0x4"/>
  1105. <Category>
  1106. <Name>FLASH security</Name>
  1107. <Field>
  1108. <Parameters address="0x1FFF7870" name="FLASH_SECR" size="0x4"/>
  1109. <AssignedBits>
  1110. <Bit config="0,2,3,5">
  1111. <Name>BOOT_LOCK</Name>
  1112. <Description>used to force boot from user area</Description>
  1113. <BitOffset>0x10</BitOffset>
  1114. <BitWidth>0x1</BitWidth>
  1115. <Access>RW</Access>
  1116. <Values>
  1117. <Val value="0x0">Boot based on the pad/option bit configuration</Val>
  1118. <Val value="0x1">Boot forced from Main Flash memory</Val>
  1119. </Values>
  1120. </Bit>
  1121. <Bit config="0,2,3,5">
  1122. <Name>SEC_SIZE</Name>
  1123. <Description>Securable memory area size, Bank 1</Description>
  1124. <BitOffset>0x0</BitOffset>
  1125. <BitWidth>0x7</BitWidth>
  1126. <Access>RW</Access>
  1127. <Equation multiplier="0x800" offset="0x08000000"/>
  1128. </Bit>
  1129. <Bit config="0,2,3,5">
  1130. <Name>SEC_SIZE2</Name>
  1131. <Description>Securable memory area size, Bank 2</Description>
  1132. <BitOffset>0x0</BitOffset>
  1133. <BitWidth>0x7</BitWidth>
  1134. <Access>RW</Access>
  1135. <Equation multiplier="0x800" offset="0x08000000"/>
  1136. </Bit>
  1137. </AssignedBits>
  1138. </Field>
  1139. </Category>
  1140. </Bank>
  1141. </Peripheral>
  1142. </Peripherals>
  1143. </Device>
  1144. </Root>