i use gdb to access Jlink GDB Server to read the contents of FLASH in MCU, it seems that it did not read the contents of FLASH in MCU, but instead read the contents of ELF. However, my code uses IAP function and changes the contents of FLASH, but the content I read is still before IAP. "set trust-readonly-sections off" in the debugging console, then read again using the x command, and will still see the content from before IAP.
How do I configure GDB to access the latest data in FLASH?