On Sun, Jul 12, 2015 at 09:25:16PM +0530, Rupin Chheda wrote: > nrf51 mass_erase The terminal says Unknown device (HWID 0x00000057) > > Is this that the NRF51822 device is not recognised on the STLink is not > recognized?
Hi Rupin, Openocd uses the "hardware id" reported from the NRF51's CONFIG registers to determine the flash size of the device. You can view the list of known hardware IDs in the source here: http://sourceforge.net/p/openocd/code/ci/master/tree/src/flash/nor/nrf51.c#l131 (The current git master HEAD uses the same hardware id table as the v0.9.0 release.) HWID 0x0057 isn't listed there! I just checked the latest ATTN-51 compatibility document from Nordic (there's a link to it in the source linked above) and it's not listed there either. Assuming the HWID is being read correctly (it probably is), it should be possible to add support for it - you just need to know what the flash size is, and ideally what the build code is, and then it can be added to that table. This isn't the first time otherwise undocumented HWIDs have cropped up in the wild! Cheers, Angus ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
