2023-11-28 11:06 PM
D:/ST/STM32CubeIDE/workspace_1.14.0/azure/Application/Debug/../Core/Src/tx_initialize_low_level.S:147: undefined reference to `_stack_bottom'
I config the project just with these simple steps, without any coding.
Solved! Go to Solution.
2023-11-30 01:24 AM
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
2023-11-29 08:04 AM
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
2023-11-29 08:29 AM
Sorry, I can't find helps from these pages.
Or I missed some config option, I don't know where to find
2023-11-30 12:19 AM
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
2023-11-30 01:24 AM
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
2023-11-30 05:42 AM
Thanks for your help, this error just like a bad dog stopping new guys enter the house.