How to import a hex file and read it at run time.
I have a touchgfx project, and I need to send bytes from a hex file over uart to a different micro. Everything in this works, but I am using dummy data that I hardcoded into the program. I want to be able to add a .hex file to my project, have my program open it, read it, and then put it into a byte array for me to eventually send over.
I was going to use the process outlined in this link: HEX File to Array in C : 10 Steps - Instructables, however, I am not certain on the correct way to add the hex to the project and then properly read it especially in the STM32CubIDE environment.
