sandeepmistry / rtl8710-openocd Goto Github PK
View Code? Open in Web Editor NEWUnofficial mirror of https://bitbucket.org/rebane/rtl8710_openocd
License: GNU General Public License v2.0
Unofficial mirror of https://bitbucket.org/rebane/rtl8710_openocd
License: GNU General Public License v2.0
drasko@Lenin:~/rtl8710/open-ameba$ make flashburn
make[1]: Entering directory '/home/drasko/rtl8710/open-ameba'
Open On-Chip Debugger 0.10.0+dev-00143-gf6449a7c (2017-05-13-23:22)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
swd
adapter speed: 500 kHz
adapter_nsrst_delay: 100
cortex_m reset_config sysresetreq
rtl8710_reboot
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 500 kHz
Info : SWD DPIDR 0x2ba01477
Info : rtl8710.cpu: hardware has 6 breakpoints, 4 watchpoints
adapter speed: 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000100 msp: 0x1ffffffc
auto erase on
auto verify on
initializing RTL8710 flasher
faultmask (/1): 0x01
sp (/32): 0x20000000
pc (/32): 0x10001000
RTL8710 flasher initialized
sdk/flasher/rtl8710.ocd:261: Error: invalid command name "file"
in procedure 'rtl8710_flash_write'
at file "sdk/flasher/rtl8710.ocd", line 261
sdk/flasher.mk:126: recipe for target 'flashburn' failed
make[1]: *** [flashburn] Error 1
make[1]: Leaving directory '/home/drasko/rtl8710/open-ameba'
Makefile:25: recipe for target 'flashburn' failed
make: *** [flashburn] Error 2
I am not (yet) opening a PR for this one because I am not sure my change does not break anything for other platform. Instead, I am documenting my change here for others to find.
@sandeepmistry if you want a PR, just say the word :)
My goal/context is to use openocd with a realtek RTL8710 using my Olimex ARM-USB-OCD-H.
Building this repo did work fine. After connecting everything, I ran into the following issue:
openocd -s script -s <somepath...>/tcl -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f script/rtl8710.ocd -c "init" -c "reset halt" -c "rtl8710_flash_read_id" -c "rtl8710_flash_read dump.bin 0 1048576" -c "shutdown"
Open On-Chip Debugger 0.10.0+dev-00867-g2b78f65a (2019-05-18-19:11)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
script/rtl8710.ocd:36: Error: DAP name invalid!
in procedure 'script'
at file "embedded:startup.tcl", line 26
at file "script/rtl8710.ocd", line 36
I could fix it with a small change in the generated script/rtl8710.ocd
.
Search for target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position $_TARGETNAME
and replace by
set _DAPNAME $_CHIPNAME.dap
dap create $_DAPNAME -chain-position $_TARGETNAME
target create $_TARGETNAME cortex_m -endian $_ENDIAN -dap $_DAPNAME
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.