Skip to main content
Zt Liu
Senior III
May 17, 2017
Solved

Software Interrupt Example

  • May 17, 2017
  • 1 reply
  • 1171 views
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
This topic has been closed for replies.
Best answer by Tesla DeLorean
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

 

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 17, 2017
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 VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
May 18, 2017
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 VenmoUp vote any posts that you find helpful, it shows what's working..