Skip to main content
Kmax18
Senior II
September 16, 2021
Solved

Is it possible the create an interrupt with the ST-Link V2 during runtime?

  • September 16, 2021
  • 1 reply
  • 746 views

I am using the STM32411CC MCU for reading a signal from a GPIO IDR, process it, and write it to a GPIO ODR. An interrupt routine is a suitable method for signal processing on demand. Question: how can the host computer create an interrupt during runtime if no GPIO pins are available? Is it possible to create a software interrupt with the ST-Link V2 during runtime? Thank you for your feedback.

This topic has been closed for replies.
Best answer by Paul1

Doubtful but if you have a UART the STLink 14pin cable supports it, and the Host could send a UART char to trigger an interrupt, or a variety of characters to trigger different actions. Very useful for development.

Also some STM 32 support USB, and a simple USB-C cable can be connected as a VCP to allow diagnostics similar to UART.

Paul

1 reply

Paul1
Paul1Best answer
Senior III
September 16, 2021

Doubtful but if you have a UART the STLink 14pin cable supports it, and the Host could send a UART char to trigger an interrupt, or a variety of characters to trigger different actions. Very useful for development.

Also some STM 32 support USB, and a simple USB-C cable can be connected as a VCP to allow diagnostics similar to UART.

Paul

Kmax18
Kmax18Author
Senior II
September 17, 2021

Thank you for your response, and for suggesting a UART/USB based interface. I found good resources and started coding...