Hex file details and start address for bootloading my code over I2C
I have a complex system comprised of one STM32G474RE that serves as a USB to I2C bridge. The G4 communicates with about a dozen STM32G051F8 chips over I2C. I designed the board with the ability to independently control the BOOT pin of each G0 so I can boot a single device into the system memory and utilize the built in I2C bootloader. I've read AN2606 and AN4221 and understand how to send data to the G0.
I am currently stuck trying to understand what bytes to pull out of the output file (currently I've generated .bin, .hex and .elf files from STM32CubeIDE). I also do not know what the starting address for the data should be. This is a STM32CubeIDE standard project, I've only modified "main.c" so you can assume default addresses. I would also like to know if there are size limitations for writing flash. I know the I2C protocol in AN4221 says I can write a max of 256 bytes at a time but I am trying to understand if there is a minimum amount that must be written to in flash at a time.
I've read the documents pretty thoroughly, but just can't find details on what to do with the output files and where to start writing the data. I appreciate any pointers you can give.
Thanks,
Charles
