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


Every new variable declared is in 0x0 adress (STM Studio)

Hi,
I am using St-Link V2 to program my STM32f103C8t6 and was working fine to me, if i program an old project I can succesfully blink a led (GPIOC Pin 13).
I recently created a New Project on stmcube and I checked the clock configuration settings and assured that the pin C13 is set to GPIO_OUTPUT.
Okay, my problem is that i can’t blink the led and even create new variables. If I acquire the variable valuables in STM studio I get some strange numbers.
I’ve tested creating new variables and programming again and I always get and 0x0 adress.

Capturar

When a (usually *global*) variable has an address of zero it means that that compiler/linker thinks that variable is not used. Or the optimizer has optimized that variable out (i.e. it exists only in a CPU register, not in RAM).

Since we can’t see all of you main loop, if you never access “freq” or “teste” they will be optimized out. And if you never do anything with “i” except increment it, it too will be optimized out.

This is, of course, presuming that you are compiling with any of the optimization levels enabled. If you have optimization set to none (i.e. “-O0” - the letter O, then number zero), then something else may be going on.


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 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