makerbase-mks / MKS-Robin-E3P

MKS Robin E3P + MKS TS35-E3 for Creality Ender 3 CR-10 machine, can be intalled directly, more parameters can be settings by MKS TS35-E3 online and support MKS UI, 12864 Marlin UI, Color Marlin UI...
GNU Affero General Public License v3.0
16 stars 15 forks source link

Suck at booting... #28

Open bsodergren opened 2 years ago

bsodergren commented 2 years ago

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.