Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Truncated register 17 in remote 'g' packet #1327

@Azq2

Description

@Azq2

Platform: bluepill (PROBE_HOST=stlink BLUEPILL=1)
Target microcontroller: stm32f030x4

Fresh BMP firmware randomly hangs with this error:

INSTALL /dev/serial/by-id/usb-Black_Magic_Debug_Black_Magic_Probe__ST-Link_v2__v1.9.0-rc0-11-g5ac4378b-dirty_C0D5DBD2-if00 stm32f0-pmic-with-rtc.elf (flash)
arm-none-eabi-gdb -nx --batch \
	-ex 'target extended-remote /dev/serial/by-id/usb-Black_Magic_Debug_Black_Magic_Probe__ST-Link_v2__v1.9.0-rc0-11-g5ac4378b-dirty_C0D5DBD2-if00' \
	-x bmp.scr \
	stm32f0-pmic-with-rtc.elf
blocking_handler () at lib/libopencm3/lib/stm32/f0/../../cm3/vector.c:104
104		while (1);
Target voltage: 3.27V
You are now detached from the previous target.
Available Targets:
No. Att Driver
 1      STM32F03 M0
A program is being debugged already.  Kill it? (y or n) [answered Y; input not from terminal]
bmp.scr:5: Error in sourced command file:
Truncated register 17 in remote 'g' packet
[Inferior 1 (Remote target) detached]
make: *** [Makefile:46: install] Error 1

And not responding anymore:

INSTALL /dev/serial/by-id/usb-Black_Magic_Debug_Black_Magic_Probe__ST-Link_v2__v1.9.0-rc0-11-g5ac4378b-dirty_C0D5DBD2-if00 stm32f0-pmic-with-rtc.elf (flash)
arm-none-eabi-gdb -nx --batch \
	-ex 'target extended-remote /dev/serial/by-id/usb-Black_Magic_Debug_Black_Magic_Probe__ST-Link_v2__v1.9.0-rc0-11-g5ac4378b-dirty_C0D5DBD2-if00' \
	-x bmp.scr \
	stm32f0-pmic-with-rtc.elf
Ignoring packet error, continuing...
  • After repluging BMP all works fine for some time.
  • USART (ttyACM1) also not working after this error
  • I'm stable reproduce this error after 3-4 "load" commands. My gdb script:
monitor swdp_scan
attach 1
load
kill

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions