Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python nRF52840调试SWD覆盆子Pi 3B和x2B;闪存写入错误_Python_Raspberry Pi3_Openocd_Nrf52_Swd - Fatal编程技术网

Python nRF52840调试SWD覆盆子Pi 3B和x2B;闪存写入错误

Python nRF52840调试SWD覆盆子Pi 3B和x2B;闪存写入错误,python,raspberry-pi3,openocd,nrf52,swd,Python,Raspberry Pi3,Openocd,Nrf52,Swd,我无法通过Raspberry PI 3B+将闪存写入nRF52840加密狗。我试图更改引导加载程序,当我用“nrf5 mass_erase”命令清理内存时,raspberry说没有清除任何内容,由于没有清除,我想我可以拔下它。我知道如果你清除闪存,就不应该把它拔出来,但我不知道是我干的 现在,当我将它连接到计算机时,它根本检测不到我。我有1.8V之间的VDD和GND引脚,这意味着内存是默认清除。由于我用SB2切割器切断设备并连接SB1,确保VDD和GND的外部电压为3.3V。我试图上传软件,但我

我无法通过Raspberry PI 3B+将闪存写入nRF52840加密狗。我试图更改引导加载程序,当我用“nrf5 mass_erase”命令清理内存时,raspberry说没有清除任何内容,由于没有清除,我想我可以拔下它。我知道如果你清除闪存,就不应该把它拔出来,但我不知道是我干的

现在,当我将它连接到计算机时,它根本检测不到我。我有1.8V之间的VDD和GND引脚,这意味着内存是默认清除。由于我用SB2切割器切断设备并连接SB1,确保VDD和GND的外部电压为3.3V。我试图上传软件,但我有以下错误。我看了一下互联网,问题也很相似,但就我而言,我不想帮忙

我想做视频中的事情:

Openocd.cfg

# Raspi1 peripheral_base address
# bcm2835gpio_peripheral_base 0x20000000
# Raspi2 and Raspi3 peripheral_base address
#bcm2835gpio_peripheral_base 0x3F000000

# Raspi1 BCM2835: (700Mhz)
# bcm2835gpio_speed_coeffs 113714 28
# Raspi2 BCM2836 (900Mhz):
# bcm2835gpio_speed_coeffs 146203 36
# Raspi3 BCM2837 (1200Mhz): 
# bcm2835gpio_speed_coeffs 194938 48

# pi interfece
interface bcm2835gpio
bcm2835gpio_peripheral_base 0x3F000000
bcm2835gpio_speed_coeffs 194938 48
bcm2835gpio_swd_nums 25 24

# transport
transport select swd

# target
set CHIPNAME nrf52840
source [find target/nrf52.cfg]

# Uncomment & lower speed to address errors
 adapter_khz 800

init
targets
reset halt

我发现我必须设置注册表,但我不知道如何设置