Browse
STMicroelectronics Community
FAQs
Sign In
Product forums
STM32 MCUs
STM32 MCUs Products
STM32 MCUs Boards and hardware tools
STM32 MCUs Software development tools
STM32 MCUs Embedded software
STM32 MCUs TouchGFX and GUI
STM32 MCUs Motor control
STM32 MCUs Security
STM32 MCUs Wireless
STM32 MPUs
STM32 MPUs Products
STM32 MPUs Boards and hardware tools
STM32 MPUs Embedded software and solutions
STM32 MPUs Software development tools
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Automotive MCUs
AutoDevKit Ecosystem
GNSS positioning
Edge AI
Analog and audio
Interface and connectivity ICs
Power management
ST25 NFC/RFID tags and readers
STM8 MCUs
Other: hardware
Other: software
Knowledge base
STM32 MCUs
STM32 MPUs
MEMS and sensors
Analog and audio
EMI filtering and signal conditioning
Interface and connectivity ICs
Power management
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
wlad
Associate
since
2018-07-19
2023-06-14
User statistics
2
Posts
0
Solutions
0
Kudos given
1
Kudos received
STMicroelectronics Community
About wlad
Options
Report User
User Activity
Posts
Replies
cmsis_os.c osPoolAlloc error?
2016-07-19
Posted on July 19, 2016 at 14:05lines in osPoolAlloc function:index = pool_id->currentIndex + i;if (index >= pool_id->pool_sz) { index = 0;}must be replaced with:index = (pool_id->currentIndex + i) % pool_id->pool_sz;
Re: cmsis_os.c osPoolAlloc error?
2016-07-20
Posted on July 20, 2016 at 10:42I've decided to rewrite the whole function :)void* osPoolAlloc( osPoolId pool_id ){ if( pool_id == NULL ) return NULL; uint32_t pool_sz = pool_id->pool_sz ; uint32_t currentIndex = pool_id->currentInde...
Kudos from
User
Count
Legacy member
1
View all