Hi,
Currently I’m trying to d some tests on POST and IBL on C6657 and have some questions on MCSDK.
1. I found a problem in C:\ti\mcsdk_2_01_02_06\tools\post\evmc6657l project. The code is
Int32 EMAC_Recv(Uint8 *buff)
{
EMAC_Desc *pDesc;
int recv_bytes = 0;
/* check for new packet */
if(emac_mcb.lastrxhdp == (Uint32)EMAC_REGS->RX0HDP)
return 0;
//Here returns 0. And program did return here. The result looks correct but it's not. I think it should return -1.
pDesc = (EMAC_Desc *)EMAC_REGS->RX0CP;
if (pDesc->PktFlgLen & EMAC_DSC_FLAG_SOP) {
/* Acknowledge recevied packet */
EMAC_REGS->RX0CP = (Uint32)pDesc;
/* store bytes recevied */
recv_bytes = pDesc->PktFlgLen & 0xFFFF;
/* copy data to output buffer */
memcpy(buff, pDesc->pBuffer, recv_bytes);
/* re-initalize descriptor to recevie more data */
pDesc->BufOffLen = RX_BUFF_SIZE;
pDesc->PktFlgLen = EMAC_DSC_FLAG_OWNER;
/* assign descriptor to HDP */
EMAC_REGS->RX0HDP = (Uint32)pDesc;
}
/* return number of bytes received */
return recv_bytes;
}
2. I also tried to use IBL in C:\ti\mcsdk_2_01_02_06\tools\boot_loader\ibl to do nand boot on C6657. But I found I can only succeed in ELF format. If I choose BBLOB format, it failed. I want to know if you can help to provide me a succeed example on BBLOB format for IBL nand boot.
Thank you very much.
Allen