09202024

Last update2016/05/28 14:38

Back 現在地: Home パートナー SCIOPTA パートナー Atollic 4.GDBがアサーション失敗によりクラッシュする

4.GDBがアサーション失敗によりクラッシュする

4.GDBがアサーション失敗によりクラッシュする

Q: I am receiving this error message on the console when the debug session is started from the TrueSTUDIO® IDE.

"C:/msys/1.0/build/tools/obj/gdb-7.1/gdb/regcache.c:178: internal-error: register_size: Assertion `regnum >= 0 && regnum < (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))' failed.A problem internal to GDB has been detected,further debugging may prove unreliable."

A1: Remove all breakpoints from the Breakpoints view before launching your debug session again.

A2: If you have an ST-Link, try erasing the chip using the "STM32 ST-Link Utility" software. The software could be downloaded from here.

  • Make sure the ST-Link and target board are connected to the host PC.
  • Start the "STM32 ST-Link Utility" from Windows start meny.
  • Select "connect" from the "Target" menu.
  • Select "Erase Chip" from the "Target" menu.
  • Restart the debug session from TrueSTUDIO®.