mattdibi / redox-w-firmware

Firmware for nordic MCUs used in the Redox wireless keyboard
MIT License
77 stars 42 forks source link

openocd container start fails #25

Open machine-mind opened 3 years ago

machine-mind commented 3 years ago

Hi, I have a 3 year old redox wireless v2 from falbatech and tried to flash the firmware on the chip. However I can't get the openocd container to start up correctly.

I have never flashed something like this. I connected the wireless receiver via usb and tried to start the docker containers.

This is the output:

➜ redox-w-firmware git:(master) docker-compose up openocd [+] Running 1/0 ⠿ Container redox-w-firmware-openocd-1 Created 0.0s Attaching to redox-w-firmware-openocd-1 redox-w-firmware-openocd-1 | Open On-Chip Debugger 0.9.0 (2018-01-24-01:05) redox-w-firmware-openocd-1 | Licensed under GNU GPL v2 redox-w-firmware-openocd-1 | For bug reports, read redox-w-firmware-openocd-1 | http://openocd.org/doc/doxygen/bugs.html redox-w-firmware-openocd-1 | WARNING: target/nrf51_stlink.cfg is deprecated, please switch to target/nrf51.cfg redox-w-firmware-openocd-1 | Info : auto-selecting first available session transport "hla_swd". To override use 'transport select '. redox-w-firmware-openocd-1 | Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD redox-w-firmware-openocd-1 | adapter speed: 1000 kHz redox-w-firmware-openocd-1 | Info : Unable to match requested speed 1000 kHz, using 950 kHz redox-w-firmware-openocd-1 | Info : Unable to match requested speed 1000 kHz, using 950 kHz redox-w-firmware-openocd-1 | Info : clock speed 950 kHz redox-w-firmware-openocd-1 | Error: open failed redox-w-firmware-openocd-1 | in procedure 'init' redox-w-firmware-openocd-1 | in procedure 'ocd_bouncer' redox-w-firmware-openocd-1 | redox-w-firmware-openocd-1 exited with code 1

Am I missing something?

mattdibi commented 3 years ago

Hi,

what host OS are you running?

machine-mind commented 3 years ago

I'm running manjaro Linux.

On Sun, 31 Oct 2021, 21:55 Mattia Dal Ben, @.***> wrote:

Hi,

what host OS are you running?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mattdibi/redox-w-firmware/issues/25#issuecomment-955789996, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACVP5S633YSAJKZJC5GJVLUJWULPANCNFSM5HBDSFWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mattdibi commented 3 years ago

Ok. It should be working then.

I suggest you double check the connection between the STLinkV2 programmer and the YJ14015s.