Shared/common time (domain) between A7 and M4
Hi,
I wanted to ask if there is a possibility to have the same time domain on the M4 and A7 cores?
To be a bit more specific: my STM32MP1 board synchronises time over Ethernet using PTP (and that works great!) but now i want to timestamp a digital input pin.
The options i have seen so far are:
- using EXTINT to assign a system timestamp when the interrupt occurs (on the A7) -- this is not accurate because of kernel interrupt handling and software timestamping
- using TIMx and input capture mechanisms (on the M4) -- this would be my preferred way but there i have no information at which time TIMx value is and how to synchronise them with the A7
- one idea i had was using the PTP_Synchro PPS_OUT [which i still couldn't activate in Cube although i enabled TIM2 as slave with ETR] and correlate input capture values from CC2 with the PPS. but there only the duration from the last PPS to the current input capture is known -- then my idea was to use the RTC values to associate whole seconds but the RTC isn't necessarily in sync with the PTP-PPS
- using TIMx and input capture (on the A7) -- has similar issues to the M4: i can't get a relation between system time and TIMx values
Do you have any ideas/inputs how i could get (preferably) hardware timestamps for digital inputs which are related to the (PTP synchronised) A7 system time?
Best Regards & Thanks a lot
Thomas
