Hi people, I have an interesting problem here. I need to generate a number (a 4-digit Integer) and give it as a command line argument to my exe file generated by the cross compiler. The problem is, EXE file would be executed by the chip & not by the PC, hence giving any command line argument would need a connection between the chip & one of the ports on the PC. Is there a way/mechanism by which I can give a command line argument during compile-time and not during the run-time? Is there any functionality provided by the tool on these lines? Regards, Jinen.
"Is there a way for exporting a variable from my cross compiler to any .txt file?" What would be the point of that? What do you mean? You don't want anything from the compiler other than the executable code. The options I outlined before boil down to basically 3 types: A. Rebuild the software every time to create a unique image for each unit. Unlikely to be practical unless you have only a very small number of units indeed. B. Have your programming facility insert the code into the image at the time that you burn the Chips C. Have your code read the ID from its environment at runtime. You seem to be stuck on A; I think B or C are where you need to be looking.