cancel
Showing results for 
Search instead for 
Did you mean: 

Basic stm32G4 rtos cube generated : build error

oss-mazi
Associate II

cubemx: 6.11   cubeide:1.15  cubeg4:1.5.2 azrtospackage:2.0.0

./AZURE_RTOS/App/app_azure_rtos.c:53:14: error: expected ';' before 'static' 53 | __ALIGN_BEGIN static UCHAR tx_byte_pool_buffer[TX_APP_MEM_POOL_SIZE] __ALIGN_END; | ^~~~~~~ | ; ../AZURE_RTOS/App/app_azure_rtos.c:53:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ALIGN_END' 53 | __ALIGN_BEGIN static UCHAR tx_byte_pool_buffer[TX_APP_MEM_POOL_SIZE] __ALIGN_END; | ^~~~~~~~~~~ In file included from ../Core/Inc/app_threadx.h:29, from ../AZURE_RTOS/App/app_azure_rtos.h:31, from ../AZURE_RTOS/App/app_azure_rtos.c:23: ../AZURE_RTOS/App/app_azure_rtos.c: In function 'tx_application_define': ../AZURE_RTOS/App/app_azure_rtos.c:81:68: error: 'tx_byte_pool_buffer' undeclared (first use in this function); did you mean 'tx_byte_pool_create'? 81 | if (tx_byte_pool_create(&tx_app_byte_pool, "Tx App memory pool", tx_byte_pool_buffer, TX_APP_MEM_POOL_SIZE) != TX_SUCCESS) | ^~~~~~~~~~~~~~~~~~~ ../Middlewares/ST/threadx/common/inc/tx_api.h:1342:84: note: in definition of macro 'tx_byte_pool_create' 1342 | #define tx_byte_pool_create(p,n,s,l) _txe_byte_pool_create((p),(n),(s),(l),(sizeof(TX_BYTE_POOL))) | ^ ../AZURE_RTOS/App/app_azure_rtos.c:81:68: note: each undeclared identifier is reported only once for each function it appears in 81 | if (tx_byte_pool_create(&tx_app_byte_pool, "Tx App memory pool", tx_byte_pool_buffer, TX_APP_MEM_POOL_SIZE) != TX_SUCCESS) | ^~~~~~~~~~~~~~~~~~~ ../Middlewares/ST/threadx/common/inc/tx_api.h:1342:84: note: in definition of macro 'tx_byte_pool_create' 1342 | #define tx_byte_pool_create(p,n,s,l) _txe_byte_pool_create((p),(n),(s),(l),(sizeof(TX_BYTE_POOL))) | ^` make: *** [AZURE_RTOS/App/subdir.mk:19: AZURE_RTOS/App/app_azure_rtos.o]

Error 1 make: *** Waiting for unfinished jobs.... "make -j64 all" terminated with exit code 2. Build might be incomplete.

 

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello,

Did you get this warning message? and clicked "Yes"?

SofLit_0-1713132795029.png

You need to change HAL time base source othr than Systick Ex: TIM7.

I've attached a fixed .ioc file.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
SofLit
ST Employee

Hello,

Did you get this warning message? and clicked "Yes"?

SofLit_0-1713132795029.png

You need to change HAL time base source othr than Systick Ex: TIM7.

I've attached a fixed .ioc file.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hi
1. Then, can you not use LL ?
2. Must we use another timer (not a systick)?

Or both?

Hello,

According to the following figure from this link no restriction to use LL:

SofLit_0-1713292713769.png

When using RTOS you need to select another timer for the driver and systick is reserved for RTOS timebase.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.