Hi,
I am trying to write a UBL code for OMAPL138 custom board. For that i need SFH code to flash the application.
while debugging the Sfh code i found that its reading some information about the app img like magic no, start address,byte count,load address ect... its getting through the UART.
the code for the same is below :
error = UART_recvHexData( hUartInfo, 4, (Uint32 *) &(ackHeader->magicNum) );
error |= UART_recvHexData( hUartInfo, 4, (Uint32 *) &(ackHeader->startAddr) );
error |= UART_recvHexData( hUartInfo, 4, (Uint32 *) &(ackHeader->byteCnt) );
error |= UART_recvHexData( hUartInfo, 4, (Uint32 *) &(ackHeader->loadAddr) );
error |= UART_recvHexData( hUartInfo, 4, (Uint32 *) &(ackHeader->flashAddr) );
from the forum i found that these info are added by the Sfh
http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/72080.aspx
is it correct...? If so when these info are added..?
or is it reading from the Bin file ...?.
in the bin file of the Application i found the magic no which is located at the first position and the remaining data are unknown .
Thank you.