After switching from STM32F4 to STM32G4 chip I started to encounter weird UsageFault exceptions related to corrupted flash memory.
This happens when code is reloaded, apparently Ozone fails to correctly reprogram the chip. Erasing chip with JFlash and restarting debug session (so code will be uploaded again) fixes the issue for some time. JFlash also confirms that flashed code does not match actual binary. This issue didn't occur on F4 devices.
I would be happy to provide more data to investigate this issue, but unfortunately Ozone isn't very verbose on that part.
This happens when code is reloaded, apparently Ozone fails to correctly reprogram the chip. Erasing chip with JFlash and restarting debug session (so code will be uploaded again) fixes the issue for some time. JFlash also confirms that flashed code does not match actual binary. This issue didn't occur on F4 devices.
I would be happy to provide more data to investigate this issue, but unfortunately Ozone isn't very verbose on that part.