Hi,
I am currently using AM1705 processor on our Custom board. SDRAM on the board have same timing as per EVM OMAPL137 & the SPI Flash on our custom board is MX25L25635E.
I currently want to LOAD my "ARM UBL" & "U-BOOT" application in "SPI0 Flash".
So I latched AM1705 in "UART2 BOOTMODE" & I tried using slh_OMAP-L137.exe which I downloaded from http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137 To load ARM UBL & U-boot into the SPI0Flash.
I started the utility by using the command as follows " sfh_OMAP-L137.exe -p COM3 -targetType AM1707 -flash D:\Jitendra\AM1x-1_10_00_01\AM\arm-ubl-spi.bin D:\Jitendra\AM1x-1_10_00_01\Try\u-boot.bin "
When the utility runs it gets the response "BOOTME" but after that it display "Waiting for SFT on the OMAPL137..." & it get stuck at that point.
So according to http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137 for Custom board some changes has to be done in the flash loader depending upon hardware.
So while using the CCS project provided in OMAP-L137_FlashAndBootUtils_2_20.tar downloaded from the given link http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137. I am facing following issues.
FIRST:
when I compiled the CCS project provided in the OMAP-L137_FlashAndBootUtils_2_20 it gave me an error that "spi_memboot.h" file is missing. I added the spi_memboot.h from the OMAP-L137_FlashAndBootUtils_2_20\Common\ubl\include folder to the OMAP-L137_FlashAndBootUtils_2_20\OMAP-L137\CCS\SPIWriter\include\ folder & then I compiled the CCS project & now it was not giving any file missing error & it compiled properly.
SECOND:
I loaded the spiwrite.out file created from the above CCS project & run the code.
then the spiwrite application ask for ARM UBL file, then when I load the ARM UBL provided by DaVinci-PSP-SDK-03.20.00.12 then it gave me " ERROR: File too big.. Closing program. " ERROR.
The file provided by DaVinci-PSP-SDK-03.20.00.12 is 20 KB in size then why it is giving error.
The ARM UBL size is compared with " hSpiMemInfo->hMemParams->memorySize ", But the given variable is not assigned any value anywhere in the CCS project. I have attached the code which I am referring to.
MORE OBSERVATION for above issue:
I changed the Device_init() function according to my custom board.
And I tested my Device_init() function with my debug code project it is working properly & SDRAM is also working.
But when I checked the OMAP-L137_FlashAndBootUtils_2_20 output FROM MEMORY VIEW i observed there is no DATA in SDRAM when though the CODE is writing data in 0xC0000000 address space.
I checked my Device_init() & SDRAM init function both are same according to my debug & are working properly.
Then why? OMAP-L137_FlashAndBootUtils_2_20 spiwriter code is not working.
Is there any other TI flash loader or any other TI executable to load code for AM1705. And our SDRAM timing is same as the EVM SDRAM timing.
Please revert back on above given query.
Thanks & regards
Jitendra