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


Sleep mode is not reducing power consumption

Soon after posting this I started having build problems (see the ‘No Symbol Table’ post)

To fix that I started a new project and copied all the .c and .h files over.

Now it works (both compiler and power saving).

I think what is happening is that I modify the project with Cube while ac6 is running. As a result the .project files will become corrupt and have these strange results.

Since then I always close ac6 when running (or at least saving) with Cube. And so far I have not seen these weird build errors.

As a side note: If anyone knows how to ‘shutdown’ FreeRTOS while sleeping I would love to hear it.
Currently I have a flag I set in the interrupt routine for any interrupt I want to break out of sleep. In the sleep code I have a do while loop looking for the flag. If not seen I just re-enter sleep mode. As a result it wakes up every 1ms (to service FreeRTOS).

I don’t really want to do Tickless because I want to force the sleep mode.

I have tried turning off the system tick and restarting it, but FreeRTOS would not operate properly when I did that (even though that’s what we do in our current products - but they are an older version of FreeRTOS).

-Matt