NIL winout HAL with NVIC problem

Discussions and support about ChibiOS/NIL, the almost nil RTOS.
User avatar
pashamray
Posts: 2
Joined: Fri Aug 17, 2018 5:31 pm

NIL winout HAL with NVIC problem

Postby pashamray » Fri Aug 17, 2018 5:55 pm

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.

User avatar
Giovanni
Site Admin
Posts: 11375
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 429 times
Been thanked: 361 times
Contact:

Re: NIL winout HAL with NVIC problem

Postby Giovanni » Fri Aug 17, 2018 6:20 pm

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

User avatar
pashamray
Posts: 2
Joined: Fri Aug 17, 2018 5:31 pm

Re: NIL winout HAL with NVIC problem

Postby pashamray » Sat Aug 18, 2018 9:45 am

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. :(

Polux
Posts: 13
Joined: Thu Apr 28, 2016 11:52 am
Been thanked: 4 times

Re: NIL winout HAL with NVIC problem

Postby Polux » Mon Aug 20, 2018 11:28 am

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


Return to “ChibiOS/NIL”

Who is online

Users browsing this forum: No registered users and 1 guest