Hi, I'm creating a project based on ChibiOS / demos / various / NIL-ARMCM0-GENERIC, modified for cm3 stm32f103c8 and using CMSIS.
My project includes two timers TIM1 TIM2 - will generate hardware PWM, and one task - to blink.
But I used the TIM3 IRQ. Enable irq using NVIC_EnableIRQ for TIM3 and define TIM3_IRQHandler. After this happens _unhandled_exeption, the screenshot is attached.
Thank you.
NIL winout HAL with NVIC problem
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: NIL winout HAL with NVIC problem
Hi,
The vectors table provided with ChibiOS does not define names like "TIM3_IRQHandler" but generic names like "vectorXX", use the correct name for your ISR.
Giovanni
The vectors table provided with ChibiOS does not define names like "TIM3_IRQHandler" but generic names like "vectorXX", use the correct name for your ISR.
Giovanni
Re: NIL winout HAL with NVIC problem
Hi, thank you. I found what I need.
Overrides are in the files for HAL (ChibiOS/os/hal/ports/STM32/STM32F1xx/stm32_isr.h)
line 90: #define STM32_TIM3_HANDLER VectorB4
But they are not for common.
Overrides are in the files for HAL (ChibiOS/os/hal/ports/STM32/STM32F1xx/stm32_isr.h)
line 90: #define STM32_TIM3_HANDLER VectorB4
But they are not for common.
Re: NIL winout HAL with NVIC problem
Juste my 2 cents.
I would prefer starting from a CM3 project, for STM32F10x, with everything correctly configured for the core, peripherals, vectors, compiler options, linker,....
And then copying from the CM0 project the code I need.
Angelo
I would prefer starting from a CM3 project, for STM32F10x, with everything correctly configured for the core, peripherals, vectors, compiler options, linker,....
And then copying from the CM0 project the code I need.
Angelo
Who is online
Users browsing this forum: No registered users and 4 guests