This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
My LM Flash Programmer is Build 1601 and Code Composer Studio 5.5
I'm trying to create a bin of an application I made. When I load it on the LaunchPad, it does nothing. I notice that the .out file in my debug folder is 67KB while the .bin is only 5KB. When I flash an example .bin from StellarisWare, it works perfectly.
Under the post-build steps command field I have the following:
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"
I don't know if it matters but My project is not in the StellarisWare directory, but it goes on the LaunchPad just fine when I hit debug.
Jose,
The .out file is an ELF file and contains a lot of meta-data in comparison to a pure binary file so size difference is expected. Pay attention to the "RO Base" or "Flash Base" or "Vector Base" to make sure the StellarisWare app and your version are destined for the same location in flash.
For example, along with armcl (the TI arm compiler-linker) there is another tool called armofd (object file dump). If you compare the StellarisWare .out file with your own .out file, you might see some telling clues in program segment table. A sample of one is shown below:
Program Segment Table
id type load addr run addr file size mem size flags align
-- ---- --------- -------- --------- -------- ----- -----
0 PT_LOAD 0x00000000 0x00000000 0xec8 0xec8 r-- 8
1 PT_LOAD 0x00002000 0x00002000 0x1a839 0x1a839 r-x 4
2 PT_LOAD 0x20000000 0x20000000 0x0 0x41d4 rw- 1024
3 PT_LOAD 0x200041d8 0x200041d8 0x0 0x1d08 rw- 8
If your app is supposed to be the same as the StellarisWare app then the lengths of the sections may vary but the load and run addresses should be the same (ie. @ 0x0 and @ 0x2000.0000).
-Joel