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


Where are _IRQHandler functions defined?

Ok so I am talking about the IRQ handlers for ADC, SPI, I2C USART etc..
I am expecting to see weak definitions of ADC_IRQHandler() function for example somewhere...but my startup_stm32.s file in startup directory does not know these functions...

I only see the following:

.weak NMI_Handler
.thumb_set NMI_Handler,Default_Handler

.weak HardFault_Handler
.thumb_set HardFault_Handler,Default_Handler

.weak MemManage_Handler
.thumb_set MemManage_Handler,Default_Handler

.weak BusFault_Handler
.thumb_set BusFault_Handler,Default_Handler

.weak UsageFault_Handler
.thumb_set UsageFault_Handler,Default_Handler

.weak SVC_Handler
.thumb_set SVC_Handler,Default_Handler

.weak DebugMon_Handler
.thumb_set DebugMon_Handler,Default_Handler

.weak PendSV_Handler
.thumb_set PendSV_Handler,Default_Handler

.weak SysTick_Handler
.thumb_set SysTick_Handler,Default_Handler

Can someone help?

If you created the project from within the IDE the “weak” functions will probably be overridden in the project/src/stm32f7xx_it.c source file. The .weak modifier takes some getting used to but is ultimately pretty useful.

Another useful item in the IDE is the search function ;-) Just hilight the word and right click on it. Then select search then project. Very handy.

Best of Luck,

Wes


Hi

If you generate the project with CubeMX the missing declarations exists within the startup file.
If you create a project from scratch in AC6 the declarations are missing.

Dieter