MKS-Robin-E3P icon indicating copy to clipboard operation
MKS-Robin-E3P copied to clipboard

Suck at booting...

Open bsodergren opened this issue 2 years ago • 0 comments

I can no longer flash new firmware to the e3p board. I can connect to the board using openocd, raspberry pi and connecting to j1 on the board using pins 24-25 to map to DIO/CLK

my openocd config


adapter driver bcm2835gpio
bcm2835gpio peripheral_base 0x3F000000
bcm2835gpio speed_coeffs 194938 48

# SWD GPIO set: swclk swdio
bcm2835gpio swd_nums 25 24


transport select swd
adapter speed 100

set CHIPNAME stm32f1
source [find target/stm32f1x.cfg]

#swd newdap chip cpu -enable
#dap create chip.dap -chain-position chip.cpu
#target create chip.cpu cortex_m -dap chip.dap

set WORKAREASIZE 0x2000

#reset_config srst_only
#reset_config  srst_nogate

#adapter srst delay 100
#adapter srst assert_width 100

init
targets
#reset halt

output from openocd

sudo openocd -c 'set ENG_MODE 1' -f interface.cfg
Open On-Chip Debugger 0.11.0+dev-00562-g5ab74bde0 (2022-02-06-08:48)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
1
Info : DEPRECATED target event trace-config; use TPIU events {pre,post}-{enable,disable}
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : clock speed 1004 kHz
Info : SWD DPIDR 0x1ba01477
Info : stm32f1.cpu: Cortex-M3 r1p1 processor detected
Info : stm32f1.cpu: target has 6 breakpoints, 4 watchpoints
Info : starting gdb server for stm32f1.cpu on 3333
Info : Listening on port 3333 for gdb connections
    TargetName         Type       Endian TapName            State
--  ------------------ ---------- ------ ------------------ ------------
 0* stm32f1.cpu        cortex_m   little stm32f1.cpu        halted

Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Polling target stm32f1.cpu failed, trying to reexamine
Info : SWD DPIDR 0x1ba01477
Info : stm32f1.cpu: Cortex-M3 r1p1 processor detected
Info : stm32f1.cpu: target has 6 breakpoints, 4 watchpoints
Polling target stm32f1.cpu failed, trying to reexamine
Info : SWD DPIDR 0x1ba01477
Info : stm32f1.cpu: Cortex-M3 r1p1 processor detected
Info : SWD DPIDR 0x1ba01477
Error: Failed to write memory at 0xe000104c


ive also gotten parity errors.

bsodergren avatar Feb 06 '22 16:02 bsodergren