Hello,
I'm trying to flash (NOR) my application. The nor writer documentation say it is able to flash elf files (that must be renamed as .dat ). I run nor write from CCS but it terminate with the error:
NOR Writer Utility Version 01.00.00.02The data file is too big to fit into the device.Error in parsing CCS file app.dat
My elf file is 16MBytes (after stripx6)!!! This is very strange since the rom section is about 500K (core + const + tables + load copy of initialized data). I tried to convert it with the hex6x utility and I get a 1M file.
I already tried to recompile everything without debug information but it remains essentialy the same (as expected).
The executable is linked as a static image, with rom autoinitialization model. I checked all the sections size and they look ok (load copy of cada are rle compressed).
Hi,
By any chance is the output a partially linked object (i.e. do you have the linker flags "--relocatable" & "--dynamic" ) ? Are you able to load & run this ELF file through CCS?
Regards
Sandeep
Sandeep Nair Hi, By any chance is the output a partially linked object (i.e. do you have the linker flags "--relocatable" & "--dynamic" ) ? Are you able to load & run this ELF file through CCS? Regards Sandeep
It isn't relocatable and I can run it with CCS,
Hi Alberto,
Then I'm not sure what could be the issue. One thought is that you can try to explicitly specify the linker option "--absolute_exe" if not specified.
Anyways you should probably post this question on the compiler forum at http://e2e.ti.com/support/development_tools/compiler/f/343.aspx
What libraries are you linking too? Are you using the debug or release .out file? Debug will have a lot of extra info, try the release version if you haven't already.
Regards,
Travis
If you need more help, please reply back. If this answers the question, please click Verify Answer , below.
tscheck What libraries are you linking too? Are you using the debug or release .out file? Debug will have a lot of extra info, try the release version if you haven't already. Regards, Travis
I use some MCSDK libraries in release version. I try to generate my exec and my libraries both with and without debug symbols but nothing change. Anyway, regardless of the debug info included, the strip6x should cut everything not needed but it reduces only a bit the size, about 2M.
I solve the problem. I used an ALIGN directive that generates a gap of 16M, filled with zeros. See also http://e2e.ti.com/support/development_tools/compiler/f/343/t/149011.aspx.