openocd/src/flash
Andrey Smirnov c619f74ca4 nrf51: Add a known devices table and simple chip type detection code
Unfortunately due to my oversight, the original version of the
nrf51_probe function contained useless code that read the contents of
DEVICEID[0] an DEVICEID[1] registers and did nothing about it(those
registers had nothing to do with the device type information anyway).

This commit fixes that code by changing its behavior to read the HWID
field of CONFIGID register and looking up the corresponding device
information in the know devices table. This information is useful
when choosing the versions of SDK and SoftDevice for the chip
using "nRF51822 compatibility matrix".

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Change-Id: Ibd80b35460df4278e86e0c2500b7dcc876eec10c
Reviewed-on: http://openocd.zylin.com/2012
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-03-29 07:23:02 +00:00
..
nand flash: declare fixed arrays const 2014-02-06 22:17:51 +00:00
nor nrf51: Add a known devices table and simple chip type detection code 2014-03-29 07:23:02 +00:00
ocl/at91sam7x update files to correct FSF address 2013-06-05 19:52:42 +00:00
common.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
common.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am build: add common.mk 2010-11-18 14:05:56 +00:00
mflash.c Remove unnecessary (void *) 2013-10-31 20:42:47 +00:00
mflash.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
startup.tcl cfg: add stm32 flash driver alias 2013-06-12 14:44:14 +00:00