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


Adding an interrupt to an existing program

Hello!

I have started a new program using AC6. I have chosen to use Cube Hal,
and the option to copy files in my workspace.

I’m using AC6 on Mac.
I’m using a STM32F469I-Disco board.

Compiling the program works fine (it compiles, seems to load and run).
Adding Hal_Init(), a few LEDs, and a systick handler allows to blink
LEDS, everything works fine. Now what I would like to do is to use another
timer (just for experiment). The experiment would be as follows:
- Declare a timer, and initialize it as shown in the example TIM/TIM_Timebase.

Then I have added TIMx_IRQHandler declaration and definition in stm32F4xx_it,
header and source files.
But the timer routine is never called, so I guess I have to add something
somewhere else.
For example, the systick is called from Hal_SYSTICK_IRQHandler which
calls a weak HAL_SYSTICK_Callback. If I override this one, then I can
have access to the systick interrupt,

Can anybody give me hints on how to have (for example) TIM3_IRQHandler
called when the timer is over?

Thanks,

Pascal

Hi Pascal,
I managed to merge both examples : GPIO_EXTI and TIM_TimeBase on a STM32F469I-DISCO board.
The TIM3 can be used from the GPIO_EXTI project by updating the list of modules to be used in the HAL driver.
It is done in the stm32f4xx_hal_conf.g file : define HAL_TIM_MODULE_ENABLED


 

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