Page 1 of 1

NIL winout HAL with NVIC problem

Posted: Fri Aug 17, 2018 5:55 pm
by pashamray
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.

Снимок экрана от 2018-08-16 19-09-11.png


Thank you.

Re: NIL winout HAL with NVIC problem

Posted: Fri Aug 17, 2018 6:20 pm
by Giovanni
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

Re: NIL winout HAL with NVIC problem

Posted: Sat Aug 18, 2018 9:45 am
by pashamray
Hi, thank you. I found what I need. :D

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

Posted: Mon Aug 20, 2018 11:28 am
by Polux
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