Synchronize 2 STM32 micro using UART and DMA
Hello,
I am trying to synchronize 2 STM32 microcontroller's using UART and DMA. System clock is 80MHz. Timer1 is set to interrupt at 1ms with 1us resolution. Synchronization logic is executed every 1ms, Serial Transmission at master/slave side is every 1ms. In-order to synchronize perfectly reception at both the ends should be at the same time (1ms). Ideal skew should be 0. If Skew is more the Timer period tries to adjust according to skew.....this is intended sync logic I am trying to implement. Please let me know if you have any suggestions or questions as Sync is achieved sometimes but not always.
Thanks!
