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


Compiler (arm-none-eabi-gcc) just don't wanna make interrupt vectors (CMSIS, StdPeriphLib)

I have got stm32f103c6t6(blue pill), st-link v2 programmer. I burn my programs just fine. I use arm-none-eabi tools with StdPeriphLib v3.6.0 from ST official site. I wrote program that merely flashed LED and noticed one strange thing - after pressing reset button my LED stopped blinking. I went deeper and discovered, that my binary file has NO INTERRUPT VECTOR (as objdump said)! I attach archive with my project - there are main.c, linker script, Makefile, and objdump’s output, pay your attention on ld script and objdump’s file certainly. You will be able build this project, if you have library mentioned above and wish to change some entries in Makefile xDDD. Also I put startup file(from library) in my archive, cause there are vector table and reset handler by itself.
Maybe it should be so, but problem remains - reset button dont reset but just freeze my mcu unless i reburn it.
I would really appreciate it, if you helped me, because I newbie in stm32 programming (only did AVR-MCUs before).
Also i would like to get some general advises from you

you can see how i was trying to add some fancy entries in main.c(__attribute stuff - even broke my program whatsoever) or linker script(EXTERN directive, i added it myself, in genuine script was no such line), but actually nothing helped

Guys, the reason blue pill didn’t want to work after reset was wrong placement of BOOT jumpers - they both should’ve be set zero. But my question still remains - where is damn interrupt vector? xDDD. How do i see it? So far everything seems to work fine, so interrupt vector must be on it own right place, but it absents in object file, i have doubts

 

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