Hi,
now I get Data, thx so far. The thing is I didn't get the data I send from my client and I'm pretty sure that I misunderstand the manuel.
I just want print raw data, which I receive from the FEC. I use this code:
while(1){ while( !(MCF548X_FEC_FECRFSR(ch) & MCF548X_FEC_FECRFSR_EMT) ){ int bla = MCF548X_FEC_FECRFDR(ch); printk("\n%08x", bla); char f1 = ((char *)&bla)[0]; char f2 = ((char *)&bla)[1]; char f3 = ((char *)&bla)[2]; char f4 = ((char *)&bla)[3]; printk("\n%c,%c,%c,%c", f1, f2, f3, f4); }}
And my FIFOS has this values.
EIR 08000000EIMR 003E0000ECR F0000002RCR 05EE0024R_HASH EF000000TCR 00000004FECTFWR 00000000FECRFSR 00080000FECRFCR 0F000000FECRLRFP 00000198FECRLWFP 000001DCFECRFAR 00000100FECRFRP 000001A8FECRFWP 000001DCFECTFSR 00030000FECTFCR 0F200000FECTLRFP 0000002EFECTLWFP 0000002EFECTFAR 00000100FECTFRP 0000002EFECTFWP 0000002EFRST 01000000
> Whu can't you debug the "DMA Crash" and fix it?
I will, but I'm new in this Project and I try to find the crash with a simple example. The crash happens between a view Minutes and an Hour, so its not that easy to find. The code seems correct so far.