Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suck at booting... #28

Open
bsodergren opened this issue Feb 6, 2022 · 0 comments
Open

Suck at booting... #28

bsodergren opened this issue Feb 6, 2022 · 0 comments

Comments

@bsodergren
Copy link

bsodergren commented Feb 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant