cancel
Showing results for 
Search instead for 
Did you mean: 

Creat a simple bare-metal azurertos based on stm32mp135f-dk, get an error.

sunfammer
Associate II

D:/ST/STM32CubeIDE/workspace_1.14.0/azure/Application/Debug/../Core/Src/tx_initialize_low_level.S:147: undefined reference to `_stack_bottom'

stm32mp135_1.png

stm32mp135.png

I config the project just with these simple steps, without any coding.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Hi @sunfammer ,

 

Actually this is know issue reported as restriction in STM32CubeMX release 6.10.0 - Release note page 19 

 

When using the STM32CubeMP13 bare-metal firmware and activating Azure® RTOS
ThreadX, the STM32CubeIDE linker file must contain the following section to avoid
compilation issues:
.stack :
{
_stack_bottom = ABSOLUTE(.) ;
/* Allocate room for stack. This must be big enough for the
IRQ, FIQ, and SYS stack if nested interrupts are
enabled.*/
. = ALIGN(8) ;
. += 32768 ;
_sp = . - 16 ;
_stack_top = ABSOLUTE(.) ;
} >RAM
_end = .;

 

Olivier 

Olivier GALLIEN
In order 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

5 REPLIES 5
Olivier GALLIEN
ST Employee

Hi @sunfammer ,

Did you refer to following page ? 

Introduction to Azure RTOS® with STM32 - stm32mpu

Introduction to THREADX - stm32mpu

Let me know if it helps 

Olivier

Olivier GALLIEN
In order 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.

Sorry, I can't find helps from these pages.

Or I missed some config option, I don't know where to find 

stm32mp135_2.png

Olivier GALLIEN
ST Employee

Hi @sunfammer 

Reproduced at my end. 

Don't you get also issue with compilation around "-fcyclomatic-complexity" option first ? 

I need to remove it my side. 

Sorry for inconvenience, I escalate this and come back to you ASAP. 

Olivier 

 

Olivier GALLIEN
In order 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.
Olivier GALLIEN
ST Employee

Hi @sunfammer ,

 

Actually this is know issue reported as restriction in STM32CubeMX release 6.10.0 - Release note page 19 

 

When using the STM32CubeMP13 bare-metal firmware and activating Azure® RTOS
ThreadX, the STM32CubeIDE linker file must contain the following section to avoid
compilation issues:
.stack :
{
_stack_bottom = ABSOLUTE(.) ;
/* Allocate room for stack. This must be big enough for the
IRQ, FIQ, and SYS stack if nested interrupts are
enabled.*/
. = ALIGN(8) ;
. += 32768 ;
_sp = . - 16 ;
_stack_top = ABSOLUTE(.) ;
} >RAM
_end = .;

 

Olivier 

Olivier GALLIEN
In order 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.

Thanks for your help, this error just like a bad dog stopping new guys enter the house.