2024-12-19 09:27 PM - edited 2024-12-19 09:36 PM
I have a code that toggles only four LEDs on the STM32F407G-DISC. I want to generate a HEX file for this code and then make changes to the addresses using a linker file. After modifying the linker file, I want to see these changes reflected in the HEX file. Additionally, I plan to add three uint32_t variables with known addresses to my LED toggle code and locate their addresses in the HEX file. However, I have no knowledge about HEX and linker files. How can I achieve this?
2024-12-20 12:21 AM
Hello @Meczup and welcome to the community,
It's very vague question. Need to give more details: why you need to locate the addresses in HEX file? what Toolchain are you using?
"After modifying the linker file, I want to see these changes reflected in the HEX file" do a diff between the HEX files using for example Beyond Compare tool. It can do HEX file comparison.
2024-12-20 01:46 AM
I received an internship task where I need to compare two HEX files by modifying the address stored in the linker file. Therefore, I need to analyze the HEX files. I am currently using a text comparator to compare them, but I am not very proficient in changing the address. After observing these changes, I will try to analyze the variables with addresses I have defined myself on the HEX file.