Hi,
I have ulink2, Keil uVision4 and My board with LPC2148 microcontroller.
I can download ulink2 .hex file and .axf file using ulink2.
But i want to add CRC in my binary, So I approached like this.
I used command line option In the dialog Project — Options for Target — User to get bin file from AXF file and written a program for CRC calculation and putting(appending) back that crc into that binary( this is CRC appended file). I invoked that program same In the dialog Project — Options for Target — User.
I have boot loader at 0x0000 to 0x1FFFF and after word application binary from 0x2000 to end of flash. if i download CRC appended file using boot loader via USB. Its working fine. CRC check is also passing.
But i want to automate this thing So Now i want to download this bin file using ulink2 to 0x20000 address.
I tried http://www.keil.com/support/man/docs/uv3/uv3_fl_hexdownload.htm method by putting bin file instead of hex file, It is not working and also does not satisfy my requirement. Because I have to create separate project for this.
I am not able to download bin2hex convector from http://www.keil.com/download/docs/113.asp
Is any other link exist?
Note that bin files can't have holes since they don't contain any meta-data with address information in them.
Hex files on the other hand, can contain data for different address ranges. So why not add the CRC information to a HEX file and download? Just note that the CRC data must be inserted before the specific end record of the hex file.
By the way - if you can't download one specific program to convert from binary to hex, then Google should be able to find you quite a number of other programs with similar functionality.
From other source i downloaded but
1. They are not converting into bin into hex with 04 Extended Linear Address Record i.e. no option for this www.ht-lab.com/.../bin2hex.html
2. Other one is not compatible with win7 64 bit
www.batlabs.com/fileutil.html
If you did write a program to compute the CRC, then it would probably have taken you two hours extra to have that same program directly generate a full HEX file.
I already written program for CRC computation and its working fine.
Question is :
How i can download bin file at Specific address of flash using keil and ulink2.
My previous post did indicate a route. Your "already written" program could be extended a bit.
Thanks Westonsupermare Pier and Per Westermark.
I got my answer.
View all questions in Keil forum