Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation of cmsis_os2.c fails if USE_MEMORY_POOL_ALLOCATION is defined. #15

Open
Vinzenz82 opened this issue Jul 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working internal bug tracker Issue confirmed and logged into the internal bug tracking system mw MW-related issue or pull-request rtos Real-Time Operating System

Comments

@Vinzenz82
Copy link

Vinzenz82 commented Jul 25, 2024

Describe the set-up
STM32CubeIDE Version: 1.15.1

Describe the bug

#ifdef USE_DYNAMIC_MEMORY_ALLOCATION
  unused_memory = (CHAR *)_tx_initialize_unused_memory;
#elif  USE_MEMORY_POOL_ALLOCATION
  static CHAR freememStack[RTOS2_BYTE_POOL_STACK_SIZE + RTOS2_INTERNAL_BYTE_POOL_SIZE];
  static CHAR freememHeap[RTOS2_BYTE_POOL_HEAP_SIZE + RTOS2_INTERNAL_BYTE_POOL_SIZE];
  unused_memory_Stack = (CHAR *)freememStack;
  unused_memory_Heap = (CHAR *)freememHeap;
#endif

Compiler Output:
cmsis_os2.c:270:34: error: #elif with no expression

How To Reproduce
define USE_MEMORY_POOL_ALLOCATION instead of USE_DYNAMIC_MEMORY_ALLOCATION

The modules that you suspect to be the cause of the problem:
stm32h5/Middlewares/ST/cmsis_rtos_threadx/cmsis_os2.c

@ALABSTM ALABSTM added bug Something isn't working mw MW-related issue or pull-request rtos Real-Time Operating System labels Jul 29, 2024
@TOUNSTM
Copy link
Contributor

TOUNSTM commented Jul 29, 2024

ST Internal Reference: 187607

@TOUNSTM TOUNSTM added the internal bug tracker Issue confirmed and logged into the internal bug tracking system label Jul 29, 2024
@TOUNSTM
Copy link
Contributor

TOUNSTM commented Jul 29, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working internal bug tracker Issue confirmed and logged into the internal bug tracking system mw MW-related issue or pull-request rtos Real-Time Operating System
Projects
Status: In progress
Development

No branches or pull requests

3 participants