2024-04-14 03:15 AM - edited 2024-04-14 03:56 AM
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.
Solved! Go to Solution.
2024-04-14 03:17 PM
Hello,
Did you get this warning message? and clicked "Yes"?
You need to change HAL time base source othr than Systick Ex: TIM7.
I've attached a fixed .ioc file.
2024-04-14 03:17 PM
Hello,
Did you get this warning message? and clicked "Yes"?
You need to change HAL time base source othr than Systick Ex: TIM7.
I've attached a fixed .ioc file.
2024-04-16 11:04 AM
Hi
1. Then, can you not use LL ?
2. Must we use another timer (not a systick)?
Or both?
2024-04-16 11:35 AM - edited 2024-04-16 11:38 AM
Hello,
According to the following figure from this link no restriction to use LL:
When using RTOS you need to select another timer for the driver and systick is reserved for RTOS timebase.