Hi enginers,
I have had different projects using Code Sourcery which has the utility which I run as shown
"$(CG_TOOL_ROOT)/bin/arm-none-eabi-objcopy" -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"
and produces a correct binary code which I use SPIWriter_Dsp to flash into my target board along with my DSP UBL binary app which is going thru the AISgen to get the binary output. Code Sourcery does provide the common startup code along with its libary that seems to work well with bare metal non linux ARM projects.
I am now trying to use CCS5.1 as a single platform compiler to generate the code and debug for both the ARM and DSP cores of the OMAP-L137 processor. I am using the quickStartOMAPL1x_rCSL project as an example. I use the three files:
ARM9_handler.asm, ARM9_intvecs.asm, ARM9_initstack.asm, along with boot.asm from project OMAPL137-ARM-LED-v2 as my implementation of the startup code. I was able to generate the .out file to get the ARM boot up from the DSP 's DMAX register.
When I try to flash my code by converting it to a binary file with this command:
"$(CG_TOOL_ROOT)/bin/hex470" -b "${BuildArtifactFileName}" -o="${BuildArtifactFileBaseName}.bin"
and using SPIWriter_DSP to burn it. The code boots up O.K. from my reset vector 0xFFFF0000 up until _c_int00 where it calls TI libary function __TI_auto_init and spins forever in the rec_chk loop. I believe that the hex470 utility does not convert the binary file correctly. Since if I load the .out file manually and reset by forcing PC to reset vector then the code will execute correctly.
I even tried to convert my .out file by running this command
"${CCE_INSTALL_ROOT}/utils/ofd/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd470.exe" "${CG_TOOL_ROOT}/bin/hex470.exe" "${CCE_INSTALL_ROOT}/utils/bin/mkhex4bin.exe"
but then I've got a bin file that is larger than 2GB.
As a last resort, I am thinking about using the AISgen util to convert the file but not sure how to handle the AIS script and/or magic number.
Thanks.