Skip to main content
deckhard
Associate III
February 4, 2021
Question

Cannot erase/program flash using jtag

  • February 4, 2021
  • 3 replies
  • 832 views

Hi

I've set the jtag pins in my code to analog input (non intentionally) .

While I was able to connect to Device (STM32H743) after I managed to erase the flash option bytes (with mass erase) using j-link stm32 tool (No St-Link option or SWD for me on the device), I can not preform chip erase or program (getting ram code error -5)

Any ideas?

Thanks!

This topic has been closed for replies.

3 replies

Uwe Bonnes
Chief
February 4, 2021

Try with connect under reset and reset connected. Try other debuggers.

deckhard
deckhardAuthor
Associate III
February 5, 2021

Tried that... perhaps changing boot0 pin to pullup and boot to sram would help? how can I boot into the system bootloader?

Uwe Bonnes
Chief
February 5, 2021

Connect under reset, with reset connected, should work! If it does not work, recheck your setup (Use cable, cables, Connectores, etc). Otherwise a pulse on Reset with Boot0 = 1 should bring you into the bootloader.