cancel
Showing results for 
Search instead for 
Did you mean: 

EVENTOUT alternate function

SMakr.1
Associate

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.

3 REPLIES 3
KnarfB
Principal III

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.

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

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

hth

KnarfB