Skip to main content
SMakr.1
Visitor II
September 24, 2021
Question

EVENTOUT alternate function

  • September 24, 2021
  • 3 replies
  • 5289 views

Hello,

What alternative function EVENTOUT is on STM32G030?

It is being mentioned only on pin assignment table without any explanation. At least I could not find any.

This topic has been closed for replies.

3 replies

KnarfB
Super User
September 26, 2021

There is an ARM instruction SEV that will pulse a pin configured as EVENTOUT. For gcc you may use

__asm__ volatile ("sev": : :"memory");

to generate that pulse. Besides its original purpose for multi-core environments, SEV comes handy when you want to real-time monitor the execution of some source code line by a scope/LA. It is implemented like a NOP and the pulse takes exactly 1 clock cycle and no delay, so its faster then GPIO.

Andrew Neil
Super User
June 9, 2023

I know this is an ancient thread, but it still seems that ST have not documented it anywhere. :unamused_face:

@KnarfB​ "There is an ARM instruction SEV that will pulse a pin configured as EVENTOUT"

Is there a way to specify which pin?

Or does it just pulse every pin configured as EVENTOUT?

ARM docs no help:

https://developer.arm.com/documentation/dui0497/a/CHDJIEAG

https://developer.arm.com/documentation/dui0552/a/the-cortex-m3-instruction-set/miscellaneous-instructions/sev

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
KnarfB
Super User
June 9, 2023

The instruction has no parameters. All pins configured as EVENTOUT shall be triggered, but I haven't made extensive tests.

hth

KnarfB