Skip to main content
Associate
November 29, 2023
Solved

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

  • November 29, 2023
  • 3 replies
  • 2755 views

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.

 

This topic has been closed for replies.
Best answer by Olivier GALLIEN

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 

3 replies

Olivier GALLIEN
Technical Moderator
November 29, 2023

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.
sunfammerAuthor
Associate
November 29, 2023

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
Technical Moderator
November 30, 2023

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
Olivier GALLIENBest answer
Technical Moderator
November 30, 2023

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.
sunfammerAuthor
Associate
November 30, 2023

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