Generating a HEX File with Custom Linker Modifications for STM32F407G-DISC
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?

