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


Import Arduino Libraries

Hello

I started trying out the SW4STM32 IDE today and finished with the blink example.
Since i come from arduino and have a lot of loved libraries there, i tried do make them work in SW4STM32 but i failed :-(

Here is what i’ve done:

- Import CubeMX configuration and made the “blink” example which worked
- In Project User, i added new header file (TimeLib.h)
- In Project User, i added new source file (TimeLib.cpp)
- In Main.c i added #include “TimeLib.h”
- in main void, i added “setTime(UL);” which is a function in TimeLib

When building, i gett error “undefinded reference to ‘setTime’.

What am i doing wrong?

The TimeLib is basically a virtual rtc and only has two uses of functions that are not just “software”. Its the millis() function, but this can be coded in STM32 as a replacement as following:

uint32_t millis(){
return HAL_GetTick();
}

Then the library would have basically all the things it needs.

But why does the IDE not find the call of “setTime()” ? :-(

Regards
sgtBear

This is what I am interested in, too.
I need to adapt arduino project to run it in STM32F769I Discovery. (Any simple project for the beginning.)


Have you seen this before?

http://www.stm32duino.com/Question
https://github.com/stm32duinoQuestion

Otherwise,
If coming from Arduino with out a lot of “real c programming experience” to SW4STM32 and HAL, strap yourself in for one heck of a learning curve.
I do love having a real debugger though and it is worth it.


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  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. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs