Don't. Just don't. G502 HERO firmware update through G HUB is broken. Waited for over 1.5h with the mouse "updating" and not working, and at the end had to disconnect and reconnect
Logitech G502 X PLUS "Effects on device" Issue! : r/G502MasterRace
How to update your mouse firmware (logitech G502) - YouTube
Logitech Launches G502 Lightspeed Mouse: The Classic Mouse Goes Wireless