Questions tagged [hex-file]

.hex Intel HEX, text representation of binary data, usually for EPROM memory images for microcontrollers.

Text file format to represent binary data. Details on Wikipedia: https://en.wikipedia.org/wiki/Intel_HEX

21 questions
4
votes
5 answers

Contiguous Hex file generation using GCC

I have a Hex file for STM32F427 that was built using GCC(gcc-arm-none-eabi) version 4.6 that had contiguous memory addresses. I wrote boot loader for loading that hex file and also added checksum capability to make sure Hex file is correct before…
Dheeraj Kumar
  • 377
  • 2
  • 13
4
votes
3 answers

How do I convert an Intel HEX file to raw data like memory view?

I want to make boot loader code for AVR, which can update firmware over the air. Now I am able to write to the application area using some fixed data. I have a hex file of the new firmware to be updated. How do I convert that hex file to raw data so…
shreyas_patel21
  • 317
  • 1
  • 4
  • 14
2
votes
1 answer

Unexplained empty memory address before .data section

I'm currently writing a program on STM32 that uses a simple bootloader and two sub-applications. The sub-applications are located in flash memory and the bootloader loads one of them (both code and data) into the RAM memory and then starts executing…
maseeoo
  • 21
  • 3
1
vote
1 answer

Merge automatically two hex files into one within Eclipse

I have a bootloader project and an app project within the same workspace in Eclipse. I'd like to merge the hex files of theses two project into one single hex, so that I can flash in my MCU both project at the same time. I know this is possible…
PLB
  • 197
  • 1
  • 10
1
vote
1 answer

I'm trying to write emulator for ARM Cortex M3. How can I read the binary file then decode it?

I'm trying to write emulator for ARM Cortex M3. How can I read the binary file then decode it? I want to use binary files as a resource of my emulator. I created a project with Atmel Studio and I compiled it. Now, I have a .hex file. I can also…
user7871493
1
vote
3 answers

Read binary file of logging data and output to new file with int (python)

I've been working on an embedded software project that writes sensor data to SD card using FATFS module. The datatype of the data is uint32_t (4 bytes) and the output is binary file. I'm trying to write a python script to read the binary file (and…
shjnlee
  • 221
  • 2
  • 6
  • 20
1
vote
2 answers

Hex file and disassembly discrepancy

I have parsed hex files for the purpose of bootloading before. This is my first time with a hex file generated using Microchip's XC32 tool chain. Right away I noticed what appears to be a discrepancy between the hex file and the disassembly. The…
user3692971
  • 181
  • 2
  • 10
1
vote
1 answer

TortoiseGit commit only specific *.hex files

I've been using TortoiseGit for my C source code. For release V1.0 I've added the output project.hex file to the repository, so that I have the exact file is preserved / archived. I would only like to preserve the *.hex file for firmware releases,…
Borisw37
  • 739
  • 2
  • 7
  • 30
0
votes
1 answer

Reading .hex File with C# File.ReadAllBytes()

Im Working on a Program that Write One Page on MCUs . I Managed to Transfer one Page (128 byte) with fixed values (0x11) to MCU . now i want to read *.hex file and copy its content to byte[128] and then transfer it . but Problem is , Value that…
ALI
  • 29
  • 3
0
votes
1 answer

Using fstream in c++ to read/write binary data and control characters

I am trying to write a program using C++ performs XOR operation between a string and a char. The result is stored in a file and read back later. Certain outputs of the XOR operation cause the characters to become control characters like SOH, ACK,…
0
votes
1 answer

.hex file reading or .bin in python - getting first address value

I have various .hex files. Some of them start from address 0x0000, some from 0x3000. In the second option I have to fill the missing addresses with 'F's. But after simply converting the .bin file to .hex I don't get the knowledge about the first…
0
votes
1 answer

Trying to replicate a CRC made with ielftool in srec_cat

So I'm trying to figure out a way to calculate a CRC with srec_cat before putting the code on a microcontroller. Right now, my post-build script uses the ielftool from IAR to do the calculation and insert it into the correct spot in the hex…
Scott Madeux
  • 329
  • 3
  • 8
0
votes
1 answer

PicSimlab 0.7.5 version is shutting down very frequently within 1 minute

picsimlab tool version 0.7.5 tool is closing down within 1minute after opening the tool in windows 10. I tried uninstalling and installing again, still facing same issue. I am trying to load hex file generated by running C project in MPLAB X IDE…
Waageesh
  • 17
  • 5
0
votes
0 answers

Can i get project setting value from hex output file in IAR workbench?

I'm beginner in IAR workbench and any part of embedded s/w. I suddenly had to compile hex code for controller product. so that reason, I succeeded in uploading an existing hex file (no error at all.) to the product using the flash loader and i check…
Kay
  • 173
  • 14
0
votes
1 answer

why is there a object to hex converter in the end?

I am studying assembly language programming.I came across steps to a program for a microcontroller. In the last step why is the .obj file is converted to .hex file. The process says that file is converted to .hex and burned to ROM.As per my…
PARUL
  • 95
  • 7
1
2