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.
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 **
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.
I'm using a Pi4 as SWD interface, which worked for other projects.
But screen is still off.