Unable to connect to Nucelo G071RB which seems to be in a reboot loop
Hi,
i have a G0 which seems to be in a reboot loop. I am unable to connect to it or erase it. I also have another chip of the same model which i am using to test how the chip is responding to some things. I tried the following:
Conecting using the STM32CubeProgrammer with many different configurations (SWD or JTAG, multiple different frequencies, "under reset" or normal mode, all reset modes (software reset, hardware reset, core reset)). -> Resulting in ST-Link errors (DEV_CONNECT_ERR and DEV_USB_COMM_ERR).
Upgrading the ST-LINK firmware -> Error connecting to device ST-LINK/V2-1 (error 0x21).
Trying to boot the system memory bootloader using the Boot0 pin and connecting via UART using the Flash Loader Demonstrator and STM32CubeProgrammer -> Some error about the device not responding
Testing the system memory bootloader on the working chip: I tested multiple different Option Byte configurations: I am able to boot the bootloader using the nBoot0 bit, but even then the Flash Loader Demonstrator and the STM32CubeProgrammer are not able to connect via UART, using either the USART1 or the USART2 pins referenced in AN2606. When i try to boot via the BOOT0 pin (while the nBOOT_SEL bit is set accordingly) the system memory bootloader is not starting, instead the normal application is starting.
Trying to connect via the ST-Link Utility, which is giving the same errors as the CubeProgrammer.
Some info about the programm which is running on the G0:
The reboot loop is caused by a faulty option byte programming which tries to program new OB every boot, causing another reboot. The code was programmed to the chip using OpenOCD and Clion. I was able to see the rebooting happening because i had UART connected to the chip which repeatedly printed "SuccessfullInitiali" (No idea though which code printed this String, i searched for this string using grep and did not find any occurrence of that string or something similar (assuming some error was made in transmission) in my code). But this string also was only printed at the first time, after reconnecting the USB i did not get anymore printing on the UART.
Does anybody have an idea what else i could try? Thanks for the help :)
