Release_Notes.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="generator" content="pandoc" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
  7. <title>Release Notes for STM32L5xx HAL Drivers</title>
  8. <style type="text/css">
  9. code{white-space: pre-wrap;}
  10. span.smallcaps{font-variant: small-caps;}
  11. span.underline{text-decoration: underline;}
  12. div.column{display: inline-block; vertical-align: top; width: 50%;}
  13. </style>
  14. <link rel="stylesheet" href="_htmresc/mini-st_2020.css" />
  15. <!--[if lt IE 9]>
  16. <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
  17. <![endif]-->
  18. <link rel="icon" type="image/x-icon" href="_htmresc/favicon.png" />
  19. </head>
  20. <body>
  21. <div class="row">
  22. <div class="col-sm-12 col-lg-4">
  23. <center>
  24. <h1 id="release-notes-for">Release Notes for</h1>
  25. <h1 id="stm32l5xx-hal-drivers"><mark>STM32L5xx HAL Drivers</mark></h1>
  26. <p>Copyright © 2019 STMicroelectronics<br />
  27. </p>
  28. <a href="https://www.st.com" class="logo"><img src="./_htmresc/st_logo_2020.png" alt="ST logo" /></a>
  29. </center>
  30. <h1 id="license">License</h1>
  31. <p>This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this component except in compliance with the License. You may obtain a copy of the License at:</p>
  32. <p><a href="https://opensource.org/licenses/BSD-3-Clause">https://opensource.org/licenses/BSD-3-Clause</a></p>
  33. <h1 id="purpose">Purpose</h1>
  34. <p>The STM32Cube HAL and LL, an STM32 abstraction layer embedded software, ensure maximized portability across STM32 portfolio.</p>
  35. <p>The portable APIs layer provides a generic, multi instanced and simple set of APIs to interact with the upper layer (application, libraries and stacks). It is composed of native and extended APIs set. It is directly built around a generic architecture and allows the build-upon layers, like the middleware layer, to implement its functions without knowing in-depth the used STM32 device. This improves the library code reusability and guarantees an easy portability on other devices and STM32 families.</p>
  36. <p>The Low Layer (LL) drivers are part of the STM32Cube firmware HAL that provides a basic set of optimized and one shot services. The Low layer drivers, contrary to the HAL ones are not fully portable across the STM32 families; the availability of some functions depends on the physical availability of the relative features on the product. The Low Layer (LL) drivers are designed to offer the following features:</p>
  37. <ul>
  38. <li>New set of inline functions for direct and atomic register access</li>
  39. <li>One-shot operations that can be used by the HAL drivers or from application level</li>
  40. <li>Full independence from HAL and standalone usage (without HAL drivers)</li>
  41. <li>Full features coverage of all the supported peripherals</li>
  42. </ul>
  43. </div>
  44. <div class="col-sm-12 col-lg-8">
  45. <h1 id="update-history">Update History</h1>
  46. <div class="collapse">
  47. <input type="checkbox" id="collapse-section5" checked aria-hidden="true"> <label for="collapse-section5" aria-hidden="true"><strong>V1.0.4 / 10-February-2021</strong></label>
  48. <div>
  49. <h2 id="main-changes">Main Changes</h2>
  50. <p><strong>Maintenance release</strong></p>
  51. <h2 id="contents">Contents</h2>
  52. <p>Maintenance release of <strong>HAL and Low Layer drivers</strong> for <strong>STM32L552xx/STM32L562xx</strong> devices</p>
  53. <p>Superset features device STM32L562xx API User Manual available (STM32L562xx_User_Manual.chm)</p>
  54. <h3 id="hal-drivers-updates"><strong>HAL Drivers</strong> updates</h3>
  55. <ul>
  56. <li><strong>HAL ADC</strong> driver
  57. <ul>
  58. <li>Update timeout mechanism to avoid false timeout detection in case of preemption</li>
  59. </ul></li>
  60. <li><strong>HAL CORTEX</strong> driver
  61. <ul>
  62. <li>Add APIs for MPU control:
  63. <ul>
  64. <li>HAL_MPU_Enable(), HAL_MPU_Disable(), HAL_MPU_ConfigRegion() and HAL_MPU_ConfigMemoryAttributes()</li>
  65. <li>HAL_MPU_Enable_NS(), HAL_MPU_Disable_NS(), HAL_MPU_ConfigRegion_NS() and HAL_MPU_ConfigMemoryAttributes_NS() for non-secure MPU control</li>
  66. </ul></li>
  67. </ul></li>
  68. <li><strong>HAL CRYP</strong> driver
  69. <ul>
  70. <li>Add capability to manage GCM/GMAC/CCM header feed in DMA mode</li>
  71. </ul></li>
  72. <li><strong>HAL DAC</strong> driver
  73. <ul>
  74. <li>Update timeout mechanism to avoid false timeout detection in case of preemption</li>
  75. </ul></li>
  76. <li><strong>HAL ICACHE</strong> driver
  77. <ul>
  78. <li>Update timeout mechanism to avoid false timeout detection in case of preemption</li>
  79. </ul></li>
  80. <li><strong>HAL IWDG</strong> driver
  81. <ul>
  82. <li>Update timeout mechanism to avoid false timeout detection in case of preemption</li>
  83. </ul></li>
  84. <li><strong>HAL LPTIM</strong> driver
  85. <ul>
  86. <li>Update external clock configuration for some ClockSource/CounterSource combinations</li>
  87. </ul></li>
  88. <li><strong>HAL MMC</strong> driver
  89. <ul>
  90. <li>High speed mode frequency computed based on real clock value</li>
  91. </ul></li>
  92. <li><strong>HAL NAND</strong> driver
  93. <ul>
  94. <li>Fix read and write in spare area (16-bits addressing)</li>
  95. </ul></li>
  96. <li><strong>HAL OPAMP</strong> driver
  97. <ul>
  98. <li>Rename definition OPAMP_POWERMODE_NORMAL to OPAMP_POWERMODE_NORMALPOWER</li>
  99. </ul></li>
  100. <li><strong>HAL PCD</strong> driver
  101. <ul>
  102. <li>Fix device ISO IN double buffer mode</li>
  103. <li>Fix PMA rx count descriptor update</li>
  104. </ul></li>
  105. <li><strong>HAL RCC</strong> driver
  106. <ul>
  107. <li>Update timeout mechanism to avoid false timeout detection in case of preemption</li>
  108. </ul></li>
  109. <li><strong>HAL RNG</strong> driver
  110. <ul>
  111. <li>Update timeout mechanism to avoid false timeout detection in case of preemption</li>
  112. </ul></li>
  113. <li><strong>HAL RTC</strong> driver
  114. <ul>
  115. <li>Add APIs for daylight saving time:
  116. <ul>
  117. <li>HAL_RTC_DST_Add1Hour(), HAL_RTC_DST_Sub1Hour(), HAL_RTC_DST_SetStoreOperation(), HAL_RTC_DST_ClearStoreOperation() and HAL_RTC_DST_ReadStoreOperation()</li>
  118. </ul></li>
  119. <li>Add APIs for monitoring functions:
  120. <ul>
  121. <li>HAL_RTCEx_EnableTemperatureMonitoring() and HAL_RTCEx_DisableTemperatureMonitoring()</li>
  122. <li>HAL_RTCEx_EnableVoltageMonitoring() and HAL_RTCEx_DisableVoltageMonitoring()</li>
  123. <li>HAL_RTCEx_EnableWUTMonitoring() and HAL_RTCEx_DisableWUTMonitoring()</li>
  124. </ul></li>
  125. <li>Fix clear of registers synchronization flag (RSF) in HAL_RTC_WaitForSynchro()</li>
  126. </ul></li>
  127. <li><strong>HAL SDMMC</strong> driver
  128. <ul>
  129. <li>High speed mode frequency computed based on real clock value</li>
  130. </ul></li>
  131. <li><strong>HAL SMBUS</strong> driver
  132. <ul>
  133. <li><strong>Add extension files stm32l5xx_hal_smbus_ex.h/.c</strong> for new APIs:
  134. <ul>
  135. <li>HAL_SMBUSEx_EnableFastModePlus() and HAL_SMBUSEx_DisableFastModePlus()</li>
  136. </ul></li>
  137. </ul></li>
  138. <li><strong>HAL SPI</strong> driver
  139. <ul>
  140. <li>Fix code optimization problem in SPI_WaitFifoStateUntilTimeout()</li>
  141. </ul></li>
  142. <li><strong>HAL TIM</strong> driver
  143. <ul>
  144. <li>Fix HAL_TIM_OnePulse_Start() not to ignore OutputChannel parameter</li>
  145. <li>Fix counter value latch delay at high frequency in HAL_TIM_IC_Start_DMA()</li>
  146. <li>Update timeout mechanism to avoid false timeout detection in case of preemption</li>
  147. </ul></li>
  148. <li><strong>HAL TSC</strong> driver
  149. <ul>
  150. <li>Add assert macro to avoid wrong CPLT/PGPSC configuration</li>
  151. </ul></li>
  152. </ul>
  153. <h3 id="ll-drivers-updates"><strong>LL Drivers</strong> updates</h3>
  154. <ul>
  155. <li><strong>New LL ICACHE driver: new stm32l5xx_ll_icache.h/.c files</strong>
  156. <ul>
  157. <li>Add APIs for ICACHE control:
  158. <ul>
  159. <li>LL_ICACHE_Enable(), LL_ICACHE_Disable(), LL_ICACHE_IsEnabled(), LL_ICACHE_SetMode(), LL_ICACHE_GetMode(), LL_ICACHE_Invalidate(), LL_ICACHE_EnableMonitors(), LL_ICACHE_DisableMonitors(), LL_ICACHE_IsEnabledMonitors(), LL_ICACHE_ResetMonitors(), LL_ICACHE_GetHitMonitor() and LL_ICACHE_GetMissMonitor()</li>
  160. <li>LL_ICACHE_ConfigRegion()</li>
  161. </ul></li>
  162. </ul></li>
  163. <li><strong>LL ADC</strong> driver
  164. <ul>
  165. <li>Increase internal regulator stabilization time from 10us to 20us (LL_ADC_DELAY_INTERNAL_REGUL_STAB_US)</li>
  166. </ul></li>
  167. <li><strong>LL CORTEX</strong> driver
  168. <ul>
  169. <li>Add APIs for MPU control:
  170. <ul>
  171. <li>LL_MPU_Enable(), LL_MPU_Disable(), LL_MPU_IsEnabled(), LL_MPU_EnableRegion(), LL_MPU_DisableRegion(), LL_MPU_IsEnabledRegion(), LL_MPU_ConfigRegion(), LL_MPU_ConfigRegionAddress(), LL_MPU_ConfigAttributes(), LL_MPU_SetRegionBaseAddress(), LL_MPU_GetRegionBaseAddress(), LL_MPU_SetRegionLimitAddress(), LL_MPU_GetRegionLimitAddress(), LL_MPU_SetRegionAccess() and LL_MPU_GetRegionAccess()</li>
  172. <li>LL_MPU_Enable_NS(), LL_MPU_Disable_NS(), LL_MPU_IsEnabled_NS(), LL_MPU_EnableRegion_NS(), LL_MPU_DisableRegion_NS(), LL_MPU_IsEnabledRegion_NS(), LL_MPU_ConfigRegion_NS(), LL_MPU_ConfigRegionAddress_NS(), LL_MPU_ConfigAttributes_NS(), LL_MPU_SetRegionBaseAddress_NS(), LL_MPU_GetRegionBaseAddress_NS(), LL_MPU_SetRegionLimitAddress_NS(), LL_MPU_GetRegionLimitAddress_NS(), LL_MPU_SetRegionAccess_NS() and LL_MPU_GetRegionAccess_NS() for non-secure MPU</li>
  173. </ul></li>
  174. </ul></li>
  175. <li><strong>LL OPAMP</strong> driver
  176. <ul>
  177. <li>Rename definition LL_OPAMP_POWERMODE_NORMAL to LL_OPAMP_POWERMODE_NORMALPOWER</li>
  178. </ul></li>
  179. <li><strong>LL RTC</strong> driver
  180. <ul>
  181. <li>Add APIs for monitoring functions:
  182. <ul>
  183. <li>LL_RTC_EnableTemperatureMonitoring() and LL_RTC_DisableTemperatureMonitoring()</li>
  184. <li>LL_RTC_EnableVoltageMonitoring() and LL_RTC_DisableVoltageMonitoring()</li>
  185. <li>LL_RTC_EnableWUTMonitoring() and LL_RTC_DisableWUTMonitoring()</li>
  186. </ul></li>
  187. </ul></li>
  188. <li><strong>LL SPI</strong> driver
  189. <ul>
  190. <li>Fix LL_SPI_Init() for Rx FIFO threshold if 8-bits mode</li>
  191. </ul></li>
  192. <li><strong>LL TIM</strong> driver
  193. <ul>
  194. <li>Fix LL_TIM_GetCounterMode()</li>
  195. <li>Fix inverted comment for One Pulse Mode definitions</li>
  196. </ul></li>
  197. <li><strong>LL USART</strong> driver
  198. <ul>
  199. <li>Fix LL_USART_ClockInit() to configure clock phase and clock polarity when CR2_CLKEN is cleared</li>
  200. <li>Remove useless IS_LL_USART_BRR_MAX() macro</li>
  201. </ul></li>
  202. </ul>
  203. <h2 id="notes">Notes</h2>
  204. <p>For HAL drivers usage, stm32l5xx_hal_conf_template.h file must be copied in user application as stm32l5xx_hal_conf.h with optional configuration update.</p>
  205. <p>For LL drivers usage, stm32_assert_template.h file must be copied in user application as stm32_assert.h with optional assert configuration update.</p>
  206. </div>
  207. </div>
  208. <div class="collapse">
  209. <input type="checkbox" id="collapse-section4" aria-hidden="true"> <label for="collapse-section4" aria-hidden="true"><strong>V1.0.3 / 26-June-2020</strong></label>
  210. <div>
  211. <h2 id="main-changes-1">Main Changes</h2>
  212. <p><strong>Fourth release</strong></p>
  213. <h2 id="contents-1">Contents</h2>
  214. <p>Fourth release of <strong>HAL and Low Layer drivers</strong> for <strong>STM32L552xx/STM32L562xx</strong> devices</p>
  215. <p>Superset features device STM32L562xx API User Manual available (STM32L562xx_User_Manual.chm)</p>
  216. <h3 id="hal-drivers-updates-1"><strong>HAL Drivers</strong> updates</h3>
  217. <ul>
  218. <li>Global removal of ‘register’ storage class qualifier deprecated since C++ 11</li>
  219. <li><strong>HAL</strong> generic driver
  220. <ul>
  221. <li>Remove non-applicable HAL_DBGMCU_EnableDBGSleepMode() and HAL_DBGMCU_DisableDBGSleepMode() APIs</li>
  222. </ul></li>
  223. <li><strong>HAL CRYP</strong> driver
  224. <ul>
  225. <li>AES GSM: Support data encrypt/decrypt with length not multiple of 16 bytes</li>
  226. <li>AES GSM: Handling of AAD with size not multiple of 4 bytes in HAL_CRYPEx_AESGCM_GenerateAuthTAG()</li>
  227. </ul></li>
  228. <li><strong>HAL DAC</strong> driver
  229. <ul>
  230. <li>Fix timeout management for sample &amp; hold channel 2</li>
  231. </ul></li>
  232. <li><strong>HAL FLASH</strong> driver
  233. <ul>
  234. <li>Add FLASH_NB_PAGE definition in stm32l5xx_hal_flash.h</li>
  235. </ul></li>
  236. <li><strong>HAL GPIO</strong> driver
  237. <ul>
  238. <li>Fix HAL_GPIO_TogglePin() to manage several pins</li>
  239. </ul></li>
  240. <li><strong>HAL HASH</strong> driver
  241. <ul>
  242. <li>Add comments to describe case of message made of several parts, not all with length multiple of 4 bytes.</li>
  243. </ul></li>
  244. <li><strong>HAL ICACHE</strong> driver
  245. <ul>
  246. <li>HAL_ICACHE_Enable() updated to enable the instruction cache whatever any ongoing operation.</li>
  247. <li>HAL_ICACHE_Disable() updated to not wait for end of invalidation procedure.</li>
  248. <li>Add HAL_ICACHE_WaitForInvalidateComplete() API</li>
  249. </ul></li>
  250. <li><strong>HAL IWDG</strong> driver
  251. <ul>
  252. <li>HAL_IWDG_DEFAULT_TIMEOUT updated based on LSI_VALUE</li>
  253. </ul></li>
  254. <li><strong>HAL MMC</strong> driver
  255. <ul>
  256. <li>Add MMC_LOW_VOLTAGE_RANGE and eMMC_LOW_VOLTAGE_RANGE modes</li>
  257. <li>Add HAL_MMC_GetCardExtCSD() API</li>
  258. <li>Fix in HAL_MMC_ConfigWideBusOperation() to manage power class before bus width speed</li>
  259. </ul></li>
  260. <li><strong>HAL NOR</strong> driver
  261. <ul>
  262. <li>Apply adequate commands according to the command set field value (command set 1 for Micron JS28F512P33, command set 2 for Micron M29W128G and Cypress S29GL128P)</li>
  263. </ul></li>
  264. <li><strong>HAL PCD</strong> driver
  265. <ul>
  266. <li>Fix double buffer bulk out transaction</li>
  267. </ul></li>
  268. <li><strong>HAL RNG</strong> driver
  269. <ul>
  270. <li>Apply in HAL_RNG_Init() the recommended value after NIST SP 800-90B entropy validation</li>
  271. <li>New API HAL_RNGEx_RecoverSeedError()</li>
  272. <li>Add check on seed error with internal seed recovery procedure in HAL_RNG_GenerateRandomNumber()</li>
  273. </ul></li>
  274. <li><strong>HAL RCC</strong> driver
  275. <ul>
  276. <li>Fix __HAL_RCC_APB1_FORCE_RESET() and __HAL_RCC_APB1_RELEASE_RESET() macros to manage both APB1RSTR1 and APB1RSTR2 registers</li>
  277. </ul></li>
  278. <li><strong>HAL SMARTCARD</strong> driver
  279. <ul>
  280. <li>Fix NACK management</li>
  281. </ul></li>
  282. <li><strong>HAL SPI</strong> driver
  283. <ul>
  284. <li>Fix in 3-wires communication (disable and enable SPI)</li>
  285. <li>Fix timeout management inside SPI DMA xfer complete handler</li>
  286. <li>Fix to not assert on BaudRatePrescaler in Slave Motorola mode</li>
  287. </ul></li>
  288. <li><strong>HAL TIM</strong> driver
  289. <ul>
  290. <li>Fix DMA management when DMA requests are used for several channels of the same timer</li>
  291. <li>Fix HAL_TIM_IC_Stop_DMA() to stop DMA prior to disabling the channel</li>
  292. </ul></li>
  293. <li><strong>HAL UART</strong> driver
  294. <ul>
  295. <li>Add new reception services APIs, allowing user to handle reception of unknown/variable lengths and to get notified about received data upon events at reception buffer filling or IDLE event on Rx line:
  296. <ul>
  297. <li>HAL_UARTEx_ReceiveToIdle(): allow user to receive data until a given number of data are received or until IDLE event occurs on Rx Line. In case of IDLE event detected during reception, function returns HAL_OK and provides number of received data (available data stored in reception buffer)</li>
  298. <li>HAL_UARTEx_ReceiveToIdle_IT(): allow user to receive data in interrupt mode until a given number of data are received or until IDLE event occurs on Rx Line. When any of these 2 events occurs, a user callback HAL_UARTEx_RxEventCallback() is executed and reception is stopped. Callback provides number of received data (available data stored in reception buffer)</li>
  299. <li>HAL_UARTEx_ReceiveToIdle_DMA(): allow user to receive data in DMA mode until DMA buffer filling Half Transfer and Transfer Complete events occur or until IDLE event occurs on Rx Line. When any of these 3 events occurs, a user callback HAL_UARTEx_RxEventCallback() is executed and provides number of received data (available data stored in reception buffer). In DMA Normal mode, reception ends after either DMA Transfer Complete or IDLE event occurs. In DMA Circular mode, reception goes on after all occurrences of HAL_UARTEx_RxEventCallback() calls.</li>
  300. <li>User version of HAL_UARTEx_RxEventCallback() is to be implemented in user code (weak empty function defined in HAL code).</li>
  301. </ul></li>
  302. <li>Rework BRR register value computation in HAL_UART_Init() for ROM size gain</li>
  303. </ul></li>
  304. </ul>
  305. <h3 id="ll-drivers-updates-1"><strong>LL Drivers</strong> updates</h3>
  306. <ul>
  307. <li>Global removal of ‘register’ storage class qualifier deprecated since C++ 11</li>
  308. <li><strong>LL GPIO</strong> driver
  309. <ul>
  310. <li>Fix LL_GPIO_TogglePin() to manage several pins</li>
  311. </ul></li>
  312. <li><strong>LL PWR</strong> driver
  313. <ul>
  314. <li>Fix LL_PWR_IsEnabledUCPDDeadBattery() returned value</li>
  315. </ul></li>
  316. <li><strong>LL SYSTEM</strong> driver
  317. <ul>
  318. <li>Add LL_DBGMCU_EnableTraceClock(), LL_DBGMCU_DisableTraceClock() and LL_DBGMCU_IsEnabledTraceClock() APIs</li>
  319. <li>Remove non-applicable LL_DBGMCU_EnableDBGSleepMode() and LL_DBGMCU_DisableDBGSleepMode() APIs</li>
  320. </ul></li>
  321. <li><strong>LL TIM</strong> driver
  322. <ul>
  323. <li>Fix inverted LL_TIM_COUNTERMODE_CENTER_UP and LL_TIM_COUNTERMODE_CENTER_DOWN definitions</li>
  324. </ul></li>
  325. <li><strong>LL UCPD</strong> driver
  326. <ul>
  327. <li>Change default CFGR1 register values in LL_UCPD_StructInit()</li>
  328. </ul></li>
  329. </ul>
  330. <h2 id="notes-1">Notes</h2>
  331. <p>For HAL drivers usage, stm32l5xx_hal_conf_template.h file must be copied in user application as stm32l5xx_hal_conf.h with optional configuration update.</p>
  332. <p>For LL drivers usage, stm32_assert_template.h file must be copied in user application as stm32_assert.h with optional assert configuration update.</p>
  333. </div>
  334. </div>
  335. <div class="collapse">
  336. <input type="checkbox" id="collapse-section3" aria-hidden="true"> <label for="collapse-section3" aria-hidden="true"><strong>V1.0.2 / 12-February-2020</strong></label>
  337. <div>
  338. <h2 id="main-changes-2">Main Changes</h2>
  339. <p><strong>Third release</strong></p>
  340. <h2 id="contents-2">Contents</h2>
  341. <p>Third official release of <strong>HAL and Low Layer drivers</strong> for <strong>STM32L552xx/STM32L562xx</strong> devices</p>
  342. <p>Superset features device STM32L562xx API User Manual available (STM32L562xx_User_Manual.chm)</p>
  343. <h3 id="hal-drivers-updates-2"><strong>HAL Drivers</strong> updates</h3>
  344. <ul>
  345. <li><strong>HAL FLASH</strong> driver
  346. <ul>
  347. <li>Fix non-secure Flash access from secure Flash service to not update SAU status</li>
  348. <li>Fix HAL_FLASHEx_OBGetConfig() to return correct non-secure boot address 0 (OB_BOOTADDR_NS0) and non-secure boot address 1 (OB_BOOTADDR_NS1)</li>
  349. </ul></li>
  350. <li><strong>HAL MMC</strong> driver
  351. <ul>
  352. <li>Add support of sanitize and discard functions
  353. <ul>
  354. <li>new APIs HAL_MMC_Sanitize(), HAL_MMC_EraseSequence(), HAL_MMC_ConfigSecRemovalType() and HAL_MMC_GetSupportedSecRemovalType()</li>
  355. </ul></li>
  356. </ul></li>
  357. <li><strong>HAL PWR</strong> driver
  358. <ul>
  359. <li>Add HAL_PWREx_SMPS_GetMainRegulatorExtSMPSReadyStatus() API</li>
  360. </ul></li>
  361. <li><strong>HAL SPI</strong> driver
  362. <ul>
  363. <li>Fix HAL_SPI_Receive_DMA() and HAL_SPI_TransmitReceive_DMA() to only disable TX DMA interrupt at end of DMA reception in Master RX 2 lines mode</li>
  364. </ul></li>
  365. </ul>
  366. <h3 id="ll-drivers-updates-2"><strong>LL Drivers</strong> updates</h3>
  367. <ul>
  368. <li><strong>LL UTILS</strong> driver
  369. <ul>
  370. <li>Fix AHB prescaler value when requesting System Clock over 80Mhz in
  371. <ul>
  372. <li>LL_PLL_ConfigSystemClock_MSI(), LL_PLL_ConfigSystemClock_HSI() and LL_PLL_ConfigSystemClock_HSE()</li>
  373. </ul></li>
  374. </ul></li>
  375. </ul>
  376. <h2 id="notes-2">Notes</h2>
  377. <p>For HAL drivers usage, stm32l5xx_hal_conf_template.h file must be copied in user application as stm32l5xx_hal_conf.h with optional configuration update.</p>
  378. <p>For LL drivers usage, stm32_assert_template.h file must be copied in user application as stm32_assert.h with optional assert configuration update.</p>
  379. <h2 id="known-limitations">Known Limitations</h2>
  380. <ul>
  381. <li><strong>HAL SMARTCARD</strong> driver
  382. <ul>
  383. <li>Issue with NACK management</li>
  384. </ul></li>
  385. </ul>
  386. </div>
  387. </div>
  388. <div class="collapse">
  389. <input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true"><strong>V1.0.1 / 22-January-2020</strong></label>
  390. <div>
  391. <h2 id="main-changes-3">Main Changes</h2>
  392. <p><strong>Second release</strong></p>
  393. <h2 id="contents-3">Contents</h2>
  394. <p>Second official release of <strong>HAL and Low Layer drivers</strong> for <strong>STM32L552xx/STM32L562xx</strong> devices</p>
  395. <p>Superset features device STM32L562xx API User Manual available (STM32L562xx_User_Manual.chm)</p>
  396. <h3 id="hal-drivers-updates-3"><strong>HAL Drivers</strong> updates</h3>
  397. <ul>
  398. <li><strong>HAL FLASH</strong> driver
  399. <ul>
  400. <li>Enhance non-secure Flash access from secure Flash
  401. <ul>
  402. <li>Add new macros for controlling non-secure flash interrupts and flags from secure:
  403. <ul>
  404. <li>__HAL_FLASH_ENABLE_IT_NS(), __HAL_FLASH_DISABLE_IT_NS(), __HAL_FLASH_GET_FLAG_NS() and __HAL_FLASH_CLEAR_FLAG_NS()</li>
  405. </ul></li>
  406. </ul></li>
  407. </ul></li>
  408. <li><strong>HAL GPIO</strong> driver
  409. <ul>
  410. <li>Update initialization sequence in HAL_GPIO_Init() to avoid glitch</li>
  411. </ul></li>
  412. <li><strong>HAL I2C</strong> driver
  413. <ul>
  414. <li>Fix sequential transfer of MAX_NBYTE_SIZE in:
  415. <ul>
  416. <li>HAL_I2C_Master_Seq_Transmit_IT(), HAL_I2C_Master_Seq_Transmit_DMA(), HAL_I2C_Master_Seq_Receive_IT() and HAL_I2C_Master_Seq_Receive_DMA(),</li>
  417. </ul></li>
  418. </ul></li>
  419. <li><strong>HAL SMBUS</strong> driver
  420. <ul>
  421. <li>Add SMBUS_FIRST_FRAME_WITH_PEC define to transfer options</li>
  422. </ul></li>
  423. <li><strong>HAL TIM</strong> driver
  424. <ul>
  425. <li>Fix when using multiple DMA request to different channels of same timer
  426. <ul>
  427. <li>Add new APIs HAL_TIM_GetActiveChannel(), HAL_TIM_GetChannelState() and HAL_TIMEx_GetChannelNState()</li>
  428. </ul></li>
  429. <li>Fix assert instance check in:
  430. <ul>
  431. <li>HAL_TIM_Encoder_Init(), HAL_TIM_Encoder_Start(), HAL_TIM_Encoder_Stop(), HAL_TIM_Encoder_Start_IT(), HAL_TIM_Encoder_Stop_IT(), HAL_TIM_Encoder_Start_DMA() and HAL_TIM_Encoder_Stop_DMA()</li>
  432. </ul></li>
  433. </ul></li>
  434. <li><strong>HAL USART</strong> driver
  435. <ul>
  436. <li>Fix SlaveMode field in USART handle after HAL_USARTEx_DisableSlaveMode() call</li>
  437. <li>Add receiver timeout interrupt management with new HAL_USART_ERROR_RTO error code in HAL_USART_IRQHandler()</li>
  438. </ul></li>
  439. </ul>
  440. <h3 id="ll-drivers-updates-3"><strong>LL Drivers</strong> updates</h3>
  441. <ul>
  442. <li><strong>LL GPIO</strong> driver
  443. <ul>
  444. <li>Update initialization sequence in LL_GPIO_Init() to avoid glitch</li>
  445. </ul></li>
  446. <li><strong>LL TIM</strong> driver
  447. <ul>
  448. <li>Add 32-bit Repetition Counter</li>
  449. </ul></li>
  450. <li><strong>LL UTILS</strong> driver
  451. <ul>
  452. <li>Add LL_SetFlashLatency() API</li>
  453. </ul></li>
  454. </ul>
  455. <h2 id="notes-3">Notes</h2>
  456. <p>For HAL drivers usage, stm32l5xx_hal_conf_template.h file must be copied in user application as stm32l5xx_hal_conf.h with optional configuration update.</p>
  457. <p>For LL drivers usage, stm32_assert_template.h file must be copied in user application as stm32_assert.h with optional assert configuration update.</p>
  458. </div>
  459. </div>
  460. <div class="collapse">
  461. <input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true"><strong>V1.0.0 / 13-December-2019</strong></label>
  462. <div>
  463. <h2 id="main-changes-4">Main Changes</h2>
  464. <p><strong>First release</strong></p>
  465. <h2 id="contents-4">Contents</h2>
  466. <p>First official release of <strong>HAL and Low Layer drivers</strong> for <strong>STM32L552xx/STM32L562xx</strong> devices</p>
  467. <p>Superset features device STM32L562xx API User Manual available (STM32L562xx_User_Manual.chm)</p>
  468. <h3 id="hal-drivers">HAL Drivers</h3>
  469. <ul>
  470. <li>ADC, COMP, CORTEX, CRC, CRYP, DAC, DFSDM, DMA, EXTI, FDCAN, FLASH, GPIO, GTZC, HASH, I2C, ICACHE, IRDA, IWDG, LPTIM, MMC, NAND, NOR, OPAMP, OSPI, OTFDEC, PCD, PKA, PWR, RCC, RNG, RTC, SAI, SD, SMARTCARD, SMBUS, SPI, SRAM, TIM, TSC, UART, USART, WWDG</li>
  471. <li>Alternate TIM and RTC timebase templates (to be copied in user application)</li>
  472. </ul>
  473. <h3 id="ll-drivers">LL Drivers</h3>
  474. <ul>
  475. <li>ADC, BUS, COMP, CORTEX, CRC, CRS, CRYP, DAC, DMA, DMAMUX, EXTI, GPIO, I2C, IWDG, LPTIM, LPUART, OPAMP, PKA, PWR, RCC, RNG, RTC, SDMMC, SPI, SYSTEM, TIM, UCPD, USART, UTILS, WWDG</li>
  476. </ul>
  477. <h2 id="notes-4">Notes</h2>
  478. <p>For HAL drivers usage, stm32l5xx_hal_conf_template.h file must be copied in user application as stm32l5xx_hal_conf.h with optional configuration update.</p>
  479. <p>For LL drivers usage, stm32_assert_template.h file must be copied in user application as stm32_assert.h with optional assert configuration update.</p>
  480. </div>
  481. </div>
  482. </div>
  483. </div>
  484. <footer class="sticky">
  485. <p>For complete documentation on STM32L5xx, visit: [<a href="http://www.st.com/stm32l5">www.st.com/stm32l5</a>]</p>
  486. <em>This release note uses up to date web standards and, for this reason, should not be opened with Internet Explorer but preferably with popular browsers such as Google Chrome, Mozilla Firefox, Opera or Microsoft Edge.</em>
  487. </footer>
  488. </body>
  489. </html>