Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


You are viewing a reply to Conditional Linker script  

Conditional Linker script

Tunisia

as far as I know gcc linker cannot read defines made in header, but you can add symbol definition to you linker using defsym

example :

in you project properties > C/C++ Build > Settings > Tools Sttings (tab) > MCU GCC Linker > Miscellaneous > Linker flags add

-Wl,--defsym,stack_size=0x2000


and in my linker I add this

stack_size = DEFINED(stack_size) ? stack_size : 0x400 ;