btlejack icon indicating copy to clipboard operation
btlejack copied to clipboard

Not working after programming

Open GhostDog98 opened this issue 3 years ago • 3 comments

I am using the bluefruit LE sniffer, after installing openocd, I make this config file:

source [find interface/stlink.cfg]
transport select hla_swd
source [find target/nrf51.cfg]

I then run:

> reset halt
target halted due to debug-request, current mode: Thread 
xPSR: 0xc1000000 pc: 0x00002c78 msp: 0x20003248
> nrf51 mass_erase
Mass erase completed.
A reset or power cycle is required if the flash was protected before.
> reset           
> reset halt
target halted due to debug-request, current mode: Thread 
xPSR: 0xc1000000 pc: 0xfffffffe msp: 0xfffffffc
> flash write_image firmware.hex
Flash write discontinued at 0x000007c0, next section at 0x00001000
Flash write discontinued at 0x00016918, next section at 0x00018000
Flash write discontinued at 0x00028510, next section at 0x0003c000
Padding image section 3 at 0x0003f874 with 908 bytes
wrote 172556 bytes from file firmware.hex in 3.566971s (47.242 KiB/s)

> verify_image firmware.hex
verified 171648 bytes in 1.201123s (139.557 KiB/s)

> exit
Connection closed by foreign host.

Despite this, once plugging in the device, I cannot see anything in /dev/ for new serial devices, making it impossible to run the tool. I have tried doing this in both "switch" modes for the device Upon connecting the device, i see the following in dmesg:

[221093.727301] usb 1-2: new full-speed USB device number 18 using xhci_hcd
[221094.074789] usb 1-2: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
[221094.074795] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[221094.074797] usb 1-2: Product: CP2104 USB to UART Bridge Controller
[221094.074799] usb 1-2: Manufacturer: Silicon Labs
[221094.074800] usb 1-2: SerialNumber: 0232C4F7

GhostDog98 avatar Dec 20 '22 13:12 GhostDog98

As per issue #21, I have tried to recompile the firmware, however, that is not working for me (error: 'str' object has no attribute 'decode') and as the yotta GitHub is depreciated, I'm unsure about if I could even get help with this.

I have also tried the programming instructions on that issue, with no success.

Incase it is of any significance, I am using the V3 of adafruits bluefruit LE sniffer.

GhostDog98 avatar Dec 22 '22 14:12 GhostDog98

I bought a microbit version 2.20, it was completely flashed, but after running -s it does not show any output. Help me please

rahim8214 avatar Feb 23 '23 15:02 rahim8214

I bought a microbit version 2.20, it was completely flashed, but after running -s it does not show any output. Help me please

This is unrelated to the current issue thread, maybe open another issue with more information instead?

GhostDog98 avatar Mar 14 '23 04:03 GhostDog98