Hexadecimal object file format is a way of representing an absolute binary object file in ASCII. It is commonly used for programming microcontrollers, EPROMs, and other types of programmable logic devices.
Questions tagged [hex-file]
25 questions
3
votes
0 answers
Dumping contents of read-protected PIC
I have a need to read out the flash memory of a read-protected PIC16F57 (this is for legal purposes). From my basic research, there appears to be no way of doing this short of decapping it and reading it out with a microscope, or selectively…

willem.hill
- 434
- 4
- 13
2
votes
0 answers
Can i output a certain memory area of a processor with objcopy?
For a bootloader (PIC32) i do need only a certain memory area from a binary file (application for a bootloader, config and bootloader are located elsewhere, no hex possible). If i call the xc32-objcpy on a hex or elf file it will create a 44MB…

pfried
- 163
- 4
1
vote
3 answers
Tool for editing EEPROM single hex byte
I need to modify a byte of the Hex data block coming from an EEPROM and write it back to the EEPROM. Now the problem is if I simply do that, the CRC changes. Is there any tool in Linux for manually editing intel .hex files safely?

OptimusPrime
- 13
- 4
1
vote
1 answer
Changing Bootloader settings using HEX file in atmega328P
I am using atmega328P IC in my project.
Currently my process to upload a code is to burn the bootloader according to my requirements and then upload using programmer USBasp .
Now from what I read is when you upload using ICSP you will overwrite the…

dharmikP
- 525
- 2
- 11
1
vote
1 answer
Flash and run a .hex file on a different Microcontroller with bigger flash from the same Cortex family
Is it possible to flash and run a compiled code (.hex-file) for a specific Microcontroller (for example STM32F205RC) on a Microcontroller from the same family with bigger flash-memory and RAM (without creating a new compiled version.)?
Example:
.hex…

kimliv
- 628
- 3
- 14
- 29
1
vote
3 answers
Why are data records in intel hex files often limited to 16 bytes, even for long contiguous blocks?
I'm not sure if this is true in general, but all intel hex files I have seen (from Atmel Studio, STM32CubeIDE and MPLAB) use data records with a length of 16 bytes. Even when the addresses written to are completely sequential there are just a lot of…

jusaca
- 8,749
- 4
- 36
- 58
1
vote
1 answer
Why does the AVR Assembler linker think my data table is at the wrong address?
MCU: ATmega1284
Programmer: JTAGICE3
IDE: Atmel Studio 7.0.2397
Language: AVR Assembler
I have a constant data table in flash memory. The linker thinks it is located at address 0x0090, so when I write assembly instructions to try and load the…

user4574
- 11,816
- 17
- 30
1
vote
2 answers
Understanding data holes in a Intel HEX file
I am working on a secondary bootloader for a Renesas microcontroller.
Following are two consecutive records of the 11000+ records in the HEX file.
:04D1D000000000005B
:10D1DC0001030600001000000080000000000100A8
Decoding this the simpler :LLAAAATT…

WedaPashi
- 1,670
- 17
- 29
1
vote
0 answers
nRF52 Bootloader over ESP12E
I'm using nRF52 DK with 14.2.0 SDK. I created a LED blink project for testing and extract its HEX file. I uploaded the program to the nRF52 over USB (J-Link-Keil IDE) and the HEX file over ESP12E (SWD) to compare the register values between the…

Burak Kocaman
- 11
- 1
1
vote
2 answers
MPLAB XC16 not generating .HEX file after successful build
I am new to MPLAB XC16 IDE. I am generating a simple blinking LED code to understand the basics of the microcontroller PIC24FJ32GA002.
The main file is as follows:
#include
#include
#define sysclock 96000000UL
#define FCY…

Mohsin
- 107
- 1
- 12
1
vote
2 answers
output file formats for flashing in microcontrollers
I have seen different micro controllers have different output file formats for flashing like 8051 has .hex file format, some have .out file format some have .s12 format and etc. What are the factors on which this output file format depends like the…

rajesh
- 427
- 4
- 15
0
votes
1 answer
How to load .hex file on PIC16F1459 microcontroller?
sorry if the questions seems to be already answered, but I really need some basic information.
I have a PCB with a USB-Mini connection, a PIC16F1459 microcontroller and a precompiled .hex-file. So the question is how do I get this .hex-file on the…

Michi
- 1
0
votes
1 answer
Clone ATtiny13A flash memory using USB ASP programmer
I hope you are having a great day.
May I kindly ask for a word of advice from the veterans in this field of Atmel micro-controllers? I am a novice getting into knowing things by hands on training ... Here's my issue:
I have a working device with…

nexus.so
- 25
- 5
0
votes
1 answer
.c to .hex file conversion without using any IDE
I am new to microcontroller programming.
I have a program written in C or assembly language which I need to convert into a .HEX file to flash into the 8051 microcontroller. I do not want to use an IDE (Keil for example) and want to perform this…
0
votes
1 answer
Avrdude Does not Read What it Wrote Correctly
Question
I am getting back into Atmel AVR programming after nearly a decade off. To this end, I am trying to get the usual blinken lights demo working. Unfortunately this does not function, though avrdude reports that it flashed the hex file…

MysteryMoose
- 167
- 5