Hello Lukas
Thanks. eDMA works my local now. I am trying to use CRC now. Still have two parts need your help.
1. CRC config error. After the first line config below, any code I put in the second line will go to HardFault_Handler. Very stange
CRC->CTRL = CRC_CTRL_TCRC(1)|CRC_CTRL_TOTR(3)|CRC_CTRL_TOT(3);
CRC->GPOLY = 0x04C11DB7;
CRC->CTRL = CRC_CTRL_TCRC(1) | CRC_CTRL_TOTR(3)|CRC_CTRL_TOT(3)|CRC_CTRL_WAS(1);
CRC->DATAu.DATA = 0xFFFFFFFF;
CRC->CTRL = CRC_CTRL_TCRC(1) | CRC_CTRL_TOTR(3)|CRC_CTRL_TOT(3)|CRC_CTRL_WAS(0);
2. I want to calculate all the Pflash CRC. How Can I control the total bytes transfer from eDMA to CRC? Or no bytes limit for CRC?
3. By the way I also try to update the result CRC to Flash if not equal. The most less bytes to update Pflash is 8bytes?
Thank you very much.
Charles