Hi there,
i want to add a CRC Check to my firmware. In this forum are yet some ways descripted, but they don't work for me, or i have something missed to adjust in the µVision IDE. The process will mostly the same for all solutions:
1.Compile Application to hex 2.The Hex-File will be parsed and the CRC calculated and after that written back to the hex file. (external Console Programm)
3. Write the new Hex-File to the Target 4. Start Debugger (with symbolic Variables,etc)
---------------------------------------------------------------------- So the Steps 1 & 2 are finished. And working. But i have Problem with Step 3.
so i started debugging with the unchecked Option "Load Application at Start". After that i typed in the command (LOAD "output\\myhexwithCRC.hex") => But nothing happens and no flash is programmed. What has to be done, to get the hex file into the target? I want to use this in the same Project. NOrmaly the way should be (Compiling -> linking -> adding CRC -> flashing -> debugging
(The several project with the output of the hexfile works, but i don't want to open 2 keil instances to get this working)
Thank you. I really don't know how to go further....
Hello,
So now i found a solution. Not fine but working:
1. Created a new target "CRCProgram" with Project -> Options for Target -> Output -> Name of Executable -> *.hex (Solution like here: http://www.keil.com/support/man/docs/uv4/uv4_fl_hexdownload.htm)
2. In my current target "DebugWithCRC" settings for debug: Project -> Options for Target -> Utilities -> use External Tool for Flash Programming : Command: c:\Keil\UV4 Arguments: -f myProject.uvproj -t"CRCProgram" (Flash via Commandline: http://www.keil.com/support/man/docs/uv4/uv4_cl_programflash.htm)
Not the best way but working. Perhaps in the future there will be a feature to select the file for programming.
Best regards
Holger Fürstenberger