Resolved! I have a single hex file for STM32F and STM32G series. Can you suggest a way to identify if the microcontroller is a F or G series to load the appropriate code?
I went through the device electronic signature. I don't see anything specific by reading the register from which I can differentiate between F and G series