Open tomasvr opened 2 years ago
Please compile hosted. First run "blackmagic -t", If it fails, run, post the output. If it syucceeds, try to flash "blackmagic
Sorry, I accidentally pressed enter while my post was still incomplete and you had already responded.
I do make use of deep sleep and WFI. My first thought was also that the MCU might immediately enter WFI after boot which means it would be unreachable for the probe. Thus I tried to enable the connect_srst
option but that had no effect. Furthermore I do not see any output on my serial debug line so I suspect the application is not being run at all.
Lastly, I am not aware of any SWJ pin remapping.
I will try your suggestion, thank you!
Just a remainder: connect_srst needs NRST connected. What BMP platforms do you use?
Dear community, I have been using a BMP to program and debug the stm32l162 processor with GDB. Most of the time this works without problems, but now I have ran into a problem during flashing which has left the mcu unresponsive.
I was trying to flash new firmware and during the load phase the following error occured:
Error writing data to flash
This has happened before, but usually I would just try to flash again and that would work. This time however, when I retry to flash firmware onto the mcu I keep getting the following response:
It seems to me like the MCU is stuck in a faulty state in which it is unresponsive to the SWD lines, possibly because of the error during writing to flash in the load phase.
what I've tried so far:
hard_srst
connect_srst
None of these seem to help. Since I currently don't have access to another set of cables/probe/target I cannot verify whether this problem is exclusive to this single board.
Any help is welcome. Thank you in advance!