kanflo / opendps

Give your DPS5005 the upgrade it deserves
MIT License
895 stars 124 forks source link

DPS5020 bricked #224

Closed DatanoiseTV closed 4 years ago

DatanoiseTV commented 4 years ago

The first upload was successful, but UART ping was working but could not set any voltage or turn it on. Screen flashed when receiving ping, but everything seemed to be working until I reflashed the firmware via UART (which failed).

Now if I'm trying to reprogram via SWD erase (sometimes works) but -C opendps flash doesnt.

> flash erase_address unlock 0x08000000 0x10000
SWD DPIDR 0x1ba01477
erased address 0x08000000 (length 65536) in 0.072810s (879.000 KiB/s)
in procedure 'program_error' called at file "embedded:startup.tcl", line 513
at file "embedded:startup.tcl", line 476
Info : SWD DPIDR 0x1ba01477
embedded:startup.tcl:476: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 513
at file "embedded:startup.tcl", line 476
Info : SWD DPIDR 0x1ba01477
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
Error: stm32x device protected
Error: failed erasing sectors 0 to 48
embedded:startup.tcl:476: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 541
at file "embedded:startup.tcl", line 476
Polling target stm32f1x.cpu failed, trying to reexamine
Info : SWD DPIDR 0x1ba01477
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints

I'm using a Pi4 as SWD interface, which worked for other projects.

> halt; program /home/patch/opendps/opendps/opendps_DPS5020.elf verify reset
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **

But screen is still off.

DatanoiseTV commented 4 years ago

Turned out the Breadboard cables were weird. Serial communication still doesn't work.