![]() I don't know what you want written to addresses that aren't listed in the file. I am guessing that the first column is an address and the second column is a value to be written at that address. ![]() This represents an array of 32-bit words which will be written to the onboard memory of a peripheral device. It's not entirely clear to me what you want, but I think you are trying to read a text file containing two columns of numbers, both in hexadecimal. What is the right to read the hex values in text by itself and not being converted from ASCII to hex ?Thanks in advance. The desired printout should be 00000000 4f909390 ![]() Options for this utility program are listed below: Syntax: HEX2BIN /option hexfile binfile hexfile is the Intel HEX input file binfile is the binary file to create option may be any of the following /Ln Binary file length /Pn. This is intact with the text to hex conversion that I checked in online. You can use BINARY files with most EPROM programmers and you can easily use them for CRC or checksum calculations. UINT32 size = ftell(fp) /* get the size */ However, when I read the above file and print them, I see the above hex values in text were totally different and I understand that the txt data were converted to hex format. I need to program the embedded device with the above hex values in my_file.txt. I have a text file containing hex codes 00000000 4f909390
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |