cancel
Showing results for 
Search instead for 
Did you mean: 

Software Interrupt Example

Zt Liu
Senior III
Posted on May 17, 2017 at 12:50

HI, not much experice with Cortex Devices,

Is there any Software Interrupt Example, for M0/M0+ devices.

I am using STM32 Cube's HAL structure, with a F091 Nucleo board.

Just found a void SVC_Handler(void) in the stm32f0xx_it.c,

I don't know to implement this, any idea?

Thanks!

#stm32f0-exti-swi #svc
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on May 17, 2017 at 14:50

Can't you just set an IRQ in the NVIC, will look for a specific example

SVC I'd assume you just write handler code, it's a C function. Review Cortex-M0 docs for specific insight

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2
Posted on May 17, 2017 at 14:50

Can't you just set an IRQ in the NVIC, will look for a specific example

SVC I'd assume you just write handler code, it's a C function. Review Cortex-M0 docs for specific insight

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 18, 2017 at 22:03

HAL_NVIC_SetPendingIRQ(USART1_IRQn);

HAL_NVIC_ClearPendingIRQ(USART1_IRQn);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..