DSPRelated.com
Forums

PCI production code implementation

Started by yati...@hotmail.com October 11, 2011
Hello,

I need help in understanding HOST PCI -> DSP firmware transfer for production purpose.

I've used TI tool to generate the header from the a.out file. Below is the sample implementation given by TI.

I would like to understand what is the equivalent of HPIA, HPID in case of TMS320c6412 dsp?

Thanks,
Yatin

#include "BootTable.h" //Include the header file generated by the tool

void LoadDSPCodes()
{
unsigned int uiSectionSize, uiEntryPoint;
//data pointer for the array, which contains the boot image
unsigned int *ipBootTable= (unsigned int *)BootTable;

uiEntryPoint=*ipBootTable++;
uiSectionSize=*ipBootTable++;
while(uiSectionSize) //0 is the end flag
{
HPIA= *ipBootTable++; //Write HPI transfer target address to HPIA
ipBootTable++; //Skip the run address
//Copy a section into DSP Memory
for(int i=0; i< uiSectionSize; i+=4)
HPID= *ipBootTable++; //Write raw section data to HPID register
uiSectionSize=*ipBootTable++; //Next section
}
}

_____________________________________