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


BSS section overlay - static variables

Dear openSTM32 support,

I feel like this question is related to any ld implementation but we use openSTM32 for our developments and I am asking my question here:

We use an overlay section in our linkerscript to allocate different file bss sections at the same memory address.
example: ld linkerscript excerpt:
OVERLAY :
{
.ovly0:
{
.bss: file*.o (.bss)
.bss: file_1*.o (.bss)
}
.ovly1:
{
.bss: file_2*.o (.bss)
}
}
file and file_1 bss sections are at the same location as file_2 bss section.
file and file_1 bss section are not overlapped with each other as expected from this linkerscript declaration.


Nevertheless this does not work if the global variables declared in my_file_1 and my_file are declared static.
In this case, the static variables of my_file and my_file_1 are allocated at the same memory address (this can be seen in debug mode).

Could you help me to clarify what happens here?
Should we forbid the use of the keyword “static” when using a file included in an overlay section?

Thank you,
Best regards,
Sylvain

Dear support,
this is embarrassing,
the problem with the static variables was due to a linkerscript error...
The behavior of the linker is all good to me regarding the overlay management.

You can forget this post.
Best regards,
Sylvain


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs