interoberlin / nRF51-playground

Playground for our nRF51822 Bluetooth Low Energy experiments
https://www.interoberlin.de/blog/category/projects/ble/
9 stars 2 forks source link

Warn : Unknown device (HWID 0x00000084) #1

Open matthiasbock opened 9 years ago

matthiasbock commented 9 years ago
$ openocd -f openocd.cfg -c "program main.bin 0x0; verify"
Open On-Chip Debugger 0.10.0-dev-g8590315 (2015-08-20-20:37)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : FTDI SWD mode enabled
Warn : Transport "swd" was already selected
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Info : clock speed 1000 kHz
Info : SWD IDCODE 0x0bb11477
Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0xc1000000 pc: 0x00012b98 msp: 0x20001c48
** Programming Started **
auto erase enabled
Warn : Unknown device (HWID 0x00000084)
...
matthiasbock commented 9 years ago
diff --git a/src/flash/nor/nrf51.c b/src/flash/nor/nrf51.c
index 7c2fa13..704333b 100644
--- a/src/flash/nor/nrf51.c
+++ b/src/flash/nor/nrf51.c
@@ -237,6 +237,12 @@ static const struct nrf51_device_spec nrf51_known_devices_table[] = {
                .flash_size_kb  = 256,
        },
        {
+               .hwid           = 0x0084,
+               .variant        = "QFAC",
+               .build_code     = "A1",
+               .flash_size_kb  = 256,
+       },
+       {
                .hwid           = 0x007D,
                .variant        = "CDAB",
                .build_code     = "A0",
matthiasbock commented 9 years ago

Patching and recompiling openocd solves the issue.

TODO: The openocd developers should be informed about this patch...

matthiasbock commented 9 years ago

Paul Fertser requested a commit to Gerrit: => http://openocd.org/doc/doxygen/html/patchguide.html