2022-03-13 11:04 AM
The data sheet makes brief references to ethernet precision time protocol and a time stamp comparator using timer TIM2.
PTP is not implemented in my project (unless it is deep down in the code; I didn't write it, but googling suggests the 32F4 is way too slow to implement PTP anyway).
So is TIM2 available?
2022-03-13 11:11 AM
What do you mean, is TIM2 usable without ethernet on 'F4? It should be.
2022-03-13 11:29 AM
I mean is TIM2 usable *with* ethernet on F4?
The RM, page 1162, mentions TIM2 again, but AFAICT PTP is not a normal thing on ETH.
2022-03-13 01:37 PM
> I mean is TIM2 usable *with* ethernet on F4?
You can use both ETH and TIM2 at the same time.
2022-03-13 01:50 PM
Great; thank you. So PTP looks like some dead idea?
2022-03-13 01:56 PM
2022-03-14 12:29 AM
PTP works pretty well and is used for many audio and video applications.
And the F4 has some dedicated hardware to make use of it, so it is not too slow.
But if the TIM2 stuff is as in the F7: forget it!
It's not as useful as I thought, and even with using PTP, you don't need TIM2 at all.
But CubeMX wants you to activate TIM2 trigger mode to select "PTP Synchro" in the ETH selection list, which is actually not needed.
So you can use ethernet and TIM2 for something completely different, even with PTP.
At least in F7...