Bud*_*ius 8 linux openocd cortex-m nrf51
我正在尝试从Raspberry Pi 3计算模块GPIO中闪存基于皮质m0的SoC,但它仍然会出现相同的错误.
错误:无法初始化调试端口
我正在关注这个https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi?view=all和本教程https://movr0.com/2016/09/02/use -raspberry-pi-23-as-a-jtagswd-adapter /.编译和安装没有问题.
cortex m0 SoC是一款采用ISP1302模块封装的Nordic Semiconductor nRF51822蓝牙芯片.
模块GND和3.3V直接连接到Compute模块dev-kit,SWDCLK和SWDIO按照教程在GPIO 25,24上连接.SRST或TRST没有连接.
配置文件如下:
source [find interface/raspberrypi2-native.cfg]
bcm2835gpio_swd_nums 25 24
transport select swd
# target
source [find target/nrf51.cfg]
init
targets
Run Code Online (Sandbox Code Playgroud)
(我bcm2835gpio_srst_num 18
从raspberrypi2-native.cfg中删除了)
执行 sudo openocd -f config.cfg
树莓派CM3在选项core_freq=250
打开的情况下运行,/boot/config.txt
我需要此选项才能可靠地访问UART1.我认为它可能与时钟有关,但不确定如何更改/修复它.
我尝试了几种reset_config
没有改变错误的组合.完整初始化堆栈如下:
Open On-Chip Debugger 0.10.0+dev-00111-gca9dcc8 (2017-04-24-15:30)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
BCM2835 GPIO nums: swclk = 25, swdio = 24
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : SWD only mode enabled (specify tck, tms, tdi and tdo gpios to add JTAG mode)
Info : clock speed 1001 kHz
Info : SWD DPIDR 0x00150634
Error: Could not initialize the debug port
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* nrf51.cpu cortex_m little nrf51.cpu unknown
Run Code Online (Sandbox Code Playgroud)
无论我尝试什么,我总是得到这个"错误:无法初始化调试端口".
有趣的是,使用连接到PI USB的ST-Link/V2适配器并修改interface
配置,它可以正常工作.
有什么建议?我究竟做错了什么?是否需要对GPIO进行初始化?
编辑:
我注意到有人投票把这个问题关闭为"不清楚是什么问题".
我问:如何使用其GPIO将Raspberry Pi连接到nRF51 SoC?请参阅上面我试过的一切.
小智 6
不完全相同的配置,但在http://forum.doozan.com/read.php?3,21789,21927上搜索 pi3显示 raspberry123-native.cfg,我们发现时钟速度发生了变化:
接口 bcm2835gpio
bcm2835gpio_peripheral_base 0x3F000000
归档时间: |
|
查看次数: |
1744 次 |
最近记录: |