st_readme.txt 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. @verbatim
  2. ******************************************************************************
  3. *
  4. * Portions Copyright © 2019 STMicroelectronics International N.V. All rights reserved.
  5. * Portions Copyright (C) 2016 Real Time Engineers Ltd, All rights reserved
  6. *
  7. * @file st_readme.txt
  8. * @author MCD Application Team
  9. * @brief This file lists the main modification done by STMicroelectronics on
  10. * FreeRTOS for integration with STM32Cube solution.
  11. * For more details on FreeRTOS implementation on STM32Cube, please refer
  12. * to UM1722 "Developing Applications on STM32Cube with FreeRTOS"
  13. ******************************************************************************
  14. *
  15. * Copyright (c) 2019 STMicroelectronics. All rights reserved.
  16. *
  17. * This software component is licensed by ST under BSD 3-Clause license,
  18. * the "License"; You may not use this file except in compliance with the
  19. * License. You may obtain a copy of the License at:
  20. * opensource.org/licenses/BSD-3-Clause
  21. *
  22. ******************************************************************************
  23. @endverbatim
  24. =======
  25. ### 31-August-2020 ###
  26. =========================
  27. + Bug fix for G0 compilation error due to IRQn_Type mismatch between G0 and other families
  28. - Source/CMSIS_RTOS_V2/cmsis_os2.c
  29. + Bug fix when using systick as timebasse for HAL
  30. - Source/CMSIS_RTOS_V2/cmsis_os2.c
  31. ### 20-July-2020 ###
  32. =========================
  33. + FreeRTOS: Update to FreeRTOS v10.3.1
  34. + CMSIS_RTOS_V2: update against the latest CMSIS-FreeRTOS v10.3.0 release
  35. - CMSIS_RTOS_V2/cmsis_os2.c
  36. - CMSIS_RTOS_V2/freertos_mpool.h
  37. - CMSIS_RTOS_V2/freertos_os2.h
  38. - CMSIS_RTOS_V2/os_systick.c
  39. + Add Tickless Idle support for CM23/CM33
  40. - GCC/ARM_CM23/non_secure/port.c
  41. - GCC/ARM_CM23/non_secure/portmacro.h
  42. - GCC/ARM_CM23_NTZ/non_secure/port.c
  43. - GCC/ARM_CM23_NTZ/non_secure/portmacro.h
  44. - GCC/ARM_CM33/non_secure/port.c
  45. - GCC/ARM_CM33/non_secure/portmacro.h
  46. - GCC/ARM_CM33_NTZ/non_secure/port.c
  47. - GCC/ARM_CM33_NTZ/non_secure/portmacro.h
  48. - IAR/ARM_CM23/non_secure/port.c
  49. - IAR/ARM_CM23/non_secure/portmacro.h
  50. - IAR/ARM_CM23_NTZ/non_secure/port.c
  51. - IAR/ARM_CM23_NTZ/non_secure/portmacro.h
  52. - IAR/ARM_CM33/non_secure/port.c
  53. - IAR/ARM_CM33/non_secure/portmacro.h
  54. - IAR/ARM_CM33_NTZ/non_secure/port.c
  55. - IAR/ARM_CM33_NTZ/non_secure/portmacro.h
  56. + Fix MPU hardfault bug for Cortex-M4 MPU
  57. - GCC\ARM_CM4_MPU\port.c
  58. - IAR\ARM_CM4_MPU\port.c
  59. - RVDS\ARM_CM4_MPU\port.c
  60. + Add support for 16 MPU regions to Cortex-M4 MPU ports
  61. - GCC/ARM_CM4_MPU/portmacro.h
  62. - IAR/ARM_CM4_MPU/portmacro.h
  63. - RVDS/ARM_CM4_MPU/portmacro.h
  64. + Update ARM_CM7_MPU source files for all compilers
  65. - GCC/ARM_CM7_MPU/r0p1/port.c
  66. - GCC/ARM_CM7_MPU/r0p1/portmacro.h
  67. - IAR/ARM_CM7_MPU/r0p1/port.c
  68. - IAR/ARM_CM7_MPU/r0p1/portasm.s
  69. - IAR/ARM_CM7_MPU/r0p1/portmacro.h
  70. - RVDS/ARM_CM7_MPU/r0p1/port.c
  71. - RVDS/ARM_CM7_MPU/r0p1/portmacro.h
  72. ### 17-January-2020 ###
  73. =========================
  74. + Fix compile error in the GCC CM7_MPU port caused by a duplicated variable declaration
  75. - Source/portable/GCC/ARM_CM7_MPU/r0p1/port.c
  76. ### 13-December-2019 ###
  77. =========================
  78. + Remove warnings thrown by EWARM for CM33/CM23 ports
  79. - IAR/ARM_CM23/non_secure/portmacro.h
  80. - IAR/ARM_CM23_NTZ/non_secure/portmacro.h
  81. - IAR/ARM_CM33/non_secure/portmacro.h
  82. - IAR/ARM_CM33_NTZ/non_secure/portmacro.h
  83. ### 19-July-2019 ###
  84. =========================
  85. + Fix runtime error in the IAR/CM4_MPU port
  86. - IAR/ARM_CM4_MPU/port.c
  87. ### 12-July-2019 ###
  88. =========================
  89. + FreeRTOS: Update against the FreeRTOS v10.2.1 release
  90. - support for the CM33 and CM23 cores
  91. + CMSIS_RTOS_V2: update against the latest CMSIS-FreeRTOS v10.2.0 release
  92. + Add MPU support for the CM7/r0p1:
  93. - GCC/ARM_CM7_MPU/r0p1/port.c
  94. - GCC/ARM_CM7_MPU/r0p1/portmacro.h
  95. - IAR/ARM_CM7_MPU/r0p1/port.c
  96. - IAR/ARM_CM7_MPU/r0p1/portasm.s
  97. - IAR/ARM_CM7_MPU/r0p1/portmacro.h
  98. - RVDS/ARM_CM7_MPU/r0p1/port.c
  99. - RVDS/ARM_CM7_MPU/r0p1/portmacro.h
  100. + cmsis_os.c: Fix compile errors by using the correct TimerCallbackFunction_t type for timer creation
  101. ### 29-Mars-2019 ###
  102. =========================
  103. + cmsis_os.c : Fix bug in osPoolAlloc(): memory blocks can't be reused after being free'd
  104. + Source/CMSIS_RTOS_V2/cmsis_os, Source/CMSIS_RTOS_V2/cmsis_os1.c, Source/CMSIS_RTOS_V2/cmsis_os2.c, Source/CMSIS_RTOS_V2/cmsis_os2.h: restore original Apache license terms
  105. + st_readme.txt: update license terms to BSD-3-Clause
  106. ### 13-August-2018 ###
  107. =========================
  108. + Add empty implementation for the missing function osThreadGetStackSize()
  109. to avoid link errors when using CMSIS-RTOS V2.
  110. + Update the FreeRTOSConfig_template.h with specific defines for the
  111. CMSIS-RTOS V2.
  112. + Rename the "RTE_RTOS_FreeRTOS_XXXX" macros to "USE_FreeRTOS_XXXX" in
  113. cmsis_os2.c.
  114. ### 30-July-2018 ###
  115. =========================
  116. + Update License.txt file to MIT license instead of GPLv2
  117. ### 23-July-2018 ###
  118. =========================
  119. + Fix compiler warnings thrown by IAR compiler 8.20
  120. + Add MPU support for the CM7/r0p1:
  121. - GCC/ARM_CM7_MPU/r0p1/port.c
  122. - GCC/ARM_CM7_MPU/r0p1/portmacro.h
  123. - IAR/ARM_CM7_MPU/r0p1/port.c
  124. - IAR/ARM_CM7_MPU/r0p1/portasm.s
  125. - IAR/ARM_CM7_MPU/r0p1/portmacro.h
  126. - RVDS/ARM_CM7_MPU/r0p1/port.c
  127. - RVDS/ARM_CM7_MPU/r0p1/portmacro.h
  128. ### 09-April-2018 ###
  129. =========================
  130. Update the FreeRTOS against the latest release 10.0.1
  131. more details are available in: https://www.freertos.org/History.txt
  132. + Integrate support for tickless mode for ARM_CM0 core:
  133. - GCC/ARM_CM0/port.c
  134. - GCC/ARM_CM0/portmacro.h
  135. - IAR/ARM_CM0/port.c
  136. - IAR/ARM_CM0/portmacro.h
  137. - RVDS/ARM_CM0/port.c
  138. Integrate CMSIS-RTOSv2 wrapper based on: https://github.com/ARM-software/CMSIS-FreeRTOS/releases/tag/10.0.1
  139. + Add new files:
  140. - CMSIS_RTOS_V2/cmsis_os.h
  141. - CMSIS_RTOS_V2/cmsis_os1.c
  142. - CMSIS_RTOS_V2/cmsis_os2.c
  143. - CMSIS_RTOS_V2/cmsis_os2.h
  144. "cmsis_os1.c" and "cmsis_os1.h" contains the reference implementation of
  145. CMSIS-RTOSv1,i.e as released by ARM, using the CMSIS-RTOSV2 API.
  146. + The ST customized CMSIS-RTOSv1 is maintained under:
  147. - CMSIS_RTOS/cmsis_os.c
  148. - CMSIS_RTOS/cmsis_os.h
  149. + When using CMSIS-RTOSv2 APIs, the following FreeRTOS defines are required:
  150. - #define configMAX_PRIORITIES 56
  151. - #define configSUPPORT_STATIC_ALLOCATION 0
  152. - #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
  153. ### 10-August-2017 ###
  154. =========================
  155. Update FreeRTOS to support MPU feature with IAR compiler.
  156. + Add the following ports:
  157. - IAR/ARM_CM4_MPU
  158. - IAR/ARM_CM7_MPU
  159. - RVDS/ARM_CM7_MPU
  160. ### 03-March-2017 ###
  161. =========================
  162. Update CMSIS-RTOS drivers to support both CMSIS Core V4.x and V5.x
  163. Bug fixes:
  164. + CMSIS-RTOS: Wrong return value for osSignalWait()
  165. + CMSIS-RTOS: Not all queue size is 0 initialized with osMailCAlloc()
  166. Limitation:
  167. + CMSIS-RTOS: osSignalWAit() function is not fully compliant with the specification
  168. ### 30-September-2016 ###
  169. =========================
  170. The purpose of this release is to Upgrade to use FreeRTOS V9.0.0, this version
  171. is a drop-in compatible replacement for FreeRTOS V8.2.3.
  172. For more details please refer to http://www.freertos.org/History.txt
  173. + Add support to tickless mode for MPU ports:
  174. - GCC/ARM_CM3_MPU/port.c
  175. - GCC/ARM_CM4_MPU/port.c
  176. - RVDS/ARM_CM4_MPU/port.c
  177. + Update CM0 ports, add possibility to use a timebase different than Systick:
  178. - IAR/ARM_CM0/port.c
  179. - RVDS/ARM_CM0/port.c
  180. - GCC/ARM_CM0/port.c
  181. + Fix compilation error in CM3_MPU and CM4_MPU ports:
  182. - GCC/ARM_CM3_MPU/portmacro.h
  183. - GCC/ARM_CM4_MPU/portmacro.h
  184. - RVDS/ARM_CM4_MPU/portmacro.h
  185. - Add "Source\portable\Common\" directory
  186. + cmsis_os.c
  187. - Add support of Statically Allocated Systems introduced with FreeRTOS V9.0.0
  188. - Add new wrappers CMSIS-RTOS APIs
  189. FreeRTOS APIs | CMSIS-RTOS APIs | Description
  190. ==================================================================================================================
  191. uxQueueMessagesWaiting() | osMessageWaiting() | Return the number of messages stored in a queue
  192. ------------------------------------------------------------------------------------------------------------------
  193. xTaskAbortDelay() | osAbortDelay() | Force a thread to get out the blocked state immediately
  194. ------------------------------------------------------------------------------------------------------------------
  195. uxSemaphoreGetCount() | osSemaphoreGetCount() | Return the current count of a semaphore
  196. ------------------------------------------------------------------------------------------------------------------
  197. uxQueueSpacesAvailable() | osMessageAvailableSpace() | Return the available space in a message queue
  198. ------------------------------------------------------------------------------------------------------------------
  199. vQueueDelete() | osMessageDelete() | Delete a message Queue
  200. ------------------------------------------------------------------------------------------------------------------
  201. ### 22-January-2016 ###
  202. =======================
  203. The purpose of this release is to Upgrade to use FreeRTOS V8.2.3.
  204. It also provides fixes for minor issues.
  205. + cmsis_os.c
  206. - Implementation of functions "osSignalSet" and "osSignalWait" are now delimited by
  207. #define configUSE_TASK_NOTIFICATIONS.
  208. - Function "osTimerStart" : fix for an assert issue when called from an ISR.
  209. - Function "osMailCreate" : internal variables initialization.
  210. - Function "osSignalWait" : signals value is now compared versus integer zero for error checking.
  211. + freeRTOS sources
  212. - FreeRTOS.h file : Add configuration sanity check in case of configUSE_RECURSIVE_MUTEXES set
  213. and configUSE_MUTEXES not set.
  214. + STMicroelectronics license simplifications, see license disclaimer within this file's header
  215. ### 27-March-2015 ###
  216. =====================
  217. The purpose of this release is to Upgrade to use FreeRTOS V8.2.1.
  218. + Major change of the version 8.2.1 is the support of CM7 core.
  219. For STM32F746xx/STM32F756xx devices, need to use port files under Source/Portable/XXX/ARM_CM7/r0p1,
  220. where XXX refers to the compiler used.
  221. + It also provides implementation of osSignal management APIs, osSignalSet() and osSignalWait(),
  222. fixes osMassage queue size, osMailQDef macro and osDelayUntil parameters.
  223. + In this release an alignment has been done in ARM_CM4 and ARM_CM3 port.c versus ARM_CM0 port.c
  224. regarding the use of macros configPRE_SLEEP_PROCESSING and configPOST_SLEEP_PROCESSING, these tow macros
  225. are now taking as parameter as pointer to TickType_t.
  226. + cmsis_os.c
  227. - Add implementation of osSignalSet() and osSignalWait() APIs
  228. - Fix massage queue size in osMessageCreate API
  229. - osDelayUntil: parameter PreviousWakeTime is now passed as a pointer.
  230. - Enabling Mail queue management APIs (temporary removed in previous version).
  231. - Function "osThreadGetPriority" uses now uxTaskPriorityGetFromISR if called from an interrupt handler, if not use uxTaskPriorityGet.
  232. + cmsis_os.h
  233. - osFeature_Wait is defined to 0 to indicate that osWait function is not available (as specified by cmsis_os template by ARM)
  234. - Fix compilation issue with osMailQDef macro.
  235. - Enabling Mail queue management APIs (temporary removed in previous version)
  236. + freeRTOS sources
  237. - ARM_CM3 port.c and ARM_CM4 port.c:
  238. function vPortSuppressTicksAndSleep : configPRE_SLEEP_PROCESSING and configPOST_SLEEP_PROCESSING are now taking
  239. as parameter as pointer to TickType_t.
  240. The purpose of this change is to align the CM3 and CM4 implementation with CM0 one.
  241. + Note
  242. - osSignalSet returns an int32_t value which is a a status (osOK or osError)
  243. instead of the previous signal value as specified in cmsis_os template by ARM.
  244. This is mainly due to freeRTOS implementation, the return value will be aligned (with the cmsis os template by ARM) as soon as the freeRTOS next version will allow it.
  245. - osThreadDef() macro is defined in the freeRTOS cmsis_os.h wrapper as follow :
  246. osThreadDef(name, thread, priority, instances, stacksz)
  247. the macro osThreadDef() as defined in ARM cmsis_os.h is defined with 4 parameters :
  248. name : name of the thread function.
  249. priority : initial priority of the thread function.
  250. instances : number of possible thread instances.
  251. stacksz : stack size (in bytes) requirements for the thread function.
  252. - osThreadDef as defined in the ARM template file cmsis_os.h assumes that the thread name is the same as the thread function name.
  253. where the freeRTOS implementation gives separate parameters for the thread name and the thread function name.
  254. care must be taken when porting an application from/to another OS to/from freeRTOS cmsis_os regarding this macro.
  255. the macro osThreadDef() as defined in ARM cmsis_os.h template is defined with 4 parameters :
  256. name : name of the thread function.
  257. priority : initial priority of the thread function.
  258. instances : number of possible thread instances.
  259. stacksz : stack size (in bytes) requirements for the thread function.
  260. the macro osThreadDef() as defined in freeRTOS cmsis_os.h is defined with 5 parameters :
  261. name : name of the thread (used for debugging and trace).
  262. thread : name of the thread function
  263. priority : initial priority of the thread function.
  264. instances : number of possible thread instances.
  265. stacksz : stack size (in bytes) requirements for the thread function.
  266. ### 25-December-2014 ###
  267. ========================
  268. The purpose of this release is to remove compilation errors and warning. It also reintroduces
  269. the function osThreadIsSuspended() which has been removed in the version V1.2.0.
  270. + cmsis_os.c
  271. - osThreadGetPriority() and makeCmsisPriority(): replace INCLUDE_vTaskPriorityGet by the correct
  272. freeRTOS constant uxTaskPriorityGet.
  273. The version 1.2.2 is using a wrong constant INCLUDE_vTaskPriorityGet, while the correct freeRTOS
  274. constant is uxTaskPriorityGet.
  275. This fix ensure a safe use of osThreadGetPriority() function.
  276. - osThreadIsSuspended(): this function has been removed in version V1.2.0, it is now available gain.
  277. User can either use this function to check if a Thread is suspended either use function osThreadGetState,
  278. which is more generic, to check the exact state of a thread.
  279. - osThreadList(): this function is now taking as argument a pointer to uint8_t instead of a pointer to int8_t.
  280. The change is made to remove a compilation warning.
  281. - osRecursiveMutexCreate(): the prototype has been changed to osMutexId osRecursiveMutexCreate (const osMutexDef_t *mutex_def)
  282. This change is made to make osRecursiveMutexCreate() compatible with function MutexCreate().
  283. It also allow the better use of the function in conjunction with the macro osMutex, note that osMutex return a
  284. "const osMutexDef_t *mutex_def".
  285. example : osMutex1Id = osRecursiveMutexCreate (osMutex(Mutex1));
  286. - Fix implementation of functions osSemaphoreWait(), osMutexRelease() and osMutexWait() by using the appropriate
  287. freeRTOS “FromISR” APIs when called from an interrupt.
  288. - Fix compilation warning when the constant INCLUDE_eTaskGetState is not defined
  289. + cmsis_os.h
  290. - osThreadIsSuspended(): add function prototype.
  291. - osThreadList(): function prototype modified as described in cmsis_os.c section.
  292. - osRecursiveMutexCreate(): function modified as described in cmsis_os.c section.
  293. + Important note:
  294. Mail Queue Management Functions are not supported in this cmsis_os version, will be added in the next release.
  295. ### 04-December-2014 ###
  296. ========================
  297. + cmsis_os.c, osSemaphoreCreate(): use vSemaphoreCreateBinary() instead of xSemaphoreCreateBinary(),
  298. to keep compatibility with application code developed on FreeRTOS V7.6.0.
  299. ### 07-November-2014 ###
  300. ========================
  301. + cmsis_os.h: modify the osThreadState enum to fix warning generated by ARMCC compiler
  302. + task.c: add preprocessor compilation condition for prvTaskIsTaskSuspended() function
  303. (it's build only when INCLUDE_vTaskSuspend option is enabled in FreeRTOSConfig.h file)
  304. ### 04-November-2014 ###
  305. ========================
  306. + Upgrade to use FreeRTOS V8.1.2 and CMSIS-RTOS V1.02.
  307. + cmsis_os.c
  308. - Almost of CMSIS-RTOS APIs are implemented for FreeRTOS
  309. - Additional wrapper APIs created for FreeRTOS
  310. + Important note:
  311. When upgrading existing application code to use this last version, the following
  312. update should be considered:
  313. - osThreadIsSuspended() is no longer public API in FreeRTOS and it should
  314. be replaced by the wrapping of eTaskGetState()
  315. - osKernelStart() API changed, must be updated
  316. - update FreeRTOSConfig.h file, taking FreeRTOSConfig_template.h file as reference
  317. ### 13-June-2014 ###
  318. ====================
  319. + FreeRTOSConfig_template.h: add this definition #define INCLUDE_xTaskGetSchedulerState 1
  320. to enable the use of xTaskGetSchedulerState() API in the
  321. application code.
  322. ### 30-April-2014 ###
  323. =====================
  324. + cmsis_os.c: add preprocessor compilation condition when calling some FreeRTOS APIs, to avoid link
  325. errors with MDK-ARM when some FreeRTOS features are not enabled in FreeRTOSConfig.h
  326. ### 22-April-2014 ###
  327. =====================
  328. + Add Tickles mode for CM0 port (IAR, GCC, RVDS).
  329. ### 18-February-2014 ###
  330. ========================
  331. + FreeRTOS V7.6.0 customized version for STM32Cube solution.
  332. * <h3><center>&copy; COPYRIGHT STMicroelectronics</center></h3>
  333. */