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


Successfully Built Blinky in Eclipse Luna and Linux on STM32F429I-Disco

I have inculded the blinky file that I found in it’s entirety.

I don’t remeber where I found but i am sure there are no copy right issues since it is a very simple LED bliky and that is it.

I think I got it from Github or form some tutorial page somewhere.

The first one I tried to use was exactly like this one but it was missing the top part of the listing, and that is the 1 millisecond delay routine so the program kept giving me errors and my build would fail.

So, Let us pay attention to detail here!!
There are fews ways you can enter this code in to our IDE.

First click on the arrow next to “blinky” in the project manager and the the arrow next to SRC (for source code).

Double click on “main.c” this is our main program and it will open up to be displayed in the Ecilpse IDE.

By using the the “main.c” file in the ‘blinky ffolder” I have supplied below you can ethier copy past the “main.c” from that folder into the “Project Explorer” on the left or you can open up the “main.c” in an editor lik Gedit copy paste just to script in to the IDE itself.

The only difference is the when you copy paste replace the main.c is that the line #include “stm32f429i_discovery.h” won’t be there and that is okay for this example as it is not needed for the program.

So just copy paste and replace the “main.c” so that you can follow along since we have to make simple modification in order to make this work on our board.

I don’t know exactly wich discovery board this was written for but the GPIO port is set to D and in this program and we have to chage it for G port.

So for every line that shows GPIOD we have to change it to GPIOG.
If you have done everything exactly as I have it the lines that need to be changed are lines 22, Line 25 and line 29, all of them must have a G in place of the D.

Line 28 is our value of the Blinky rate and is currently set to 500milliseconds or .5 seconds.
You can change this value to a different rate to verify that everything is working correctly.

Our target LED is LED3 and it is a green hooked to PG13.

I could only include the main.c file , but that is all we need anyhow.

Now it is time to build our Blinky project and up load it to our board.

Jer :-)

 

Newest Forum Posts

  1. I2S DMA Audio stuttering/repeating snippets on STM32G071RB by fillnether, 2026-03-17 19:06
  2. Unable to build project by septimusbob, 2026-02-08 20:27
  3. New installations is now uploaded ! by karushifa, 2025-12-25 00:53
  4. Analog servomotors with nucleo f334r8 by SkelePaw, 2025-11-01 05:57
  5. STM32 MCU model shortlisting for Making RC remote by Palvish, 2025-07-07 15:05
  6. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  7. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  8. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  9. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  10. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58

Last-Modified Blogs