This anomaly applies to IC Rev. Engineering C, build codes CKAA-CA0, QIAA-CA0.
SPIM3 stops working.
Using TASKS_SUSPEND on SPIM3 during last byte.
EVENTS_END is not generated and SPIM3 stops working.
Do not use TASKS_SUSPEND for SPIM3 unless the application can guarantee that it will not be triggered during the transfer of the last byte. There is no indication from SPIM3 that it is currently in the last byte transfer.
*(volatile uint32_t *)0x4002FFFC = 0;
*(volatile uint32_t *)0x4002FFFC;
*(volatile uint32_t *)0x4002FFFC = 1;