Merge pull request #546 from powerdesigns/add_nRF51822_ID

Add new nRF51822 ID code for SWD connection
This commit is contained in:
Benjamin Vedder 2022-10-21 16:03:47 +02:00 committed by GitHub
commit 9fd67a2461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,7 @@ static int idcode_to_device(uint32_t idcode) {
case 0x0086: /* nRF51422 (rev 3) QFAC A1 */
case 0x0087: /* nRF51822 (rev 3) CFAC A0 */
case 0x0088: /* nRF51422 (rev 3) CFAC A0 */
case 0x0169: /* nRF51822 (rev 3) Taiyo EYSGJNZWY*/
ret = 4; break;
case 0x00AC: /* nRF52832 Preview QFAA BA0 */
case 0x00C7: /* nRF52832 (rev 1) QFAA B00 */

View File

@ -160,6 +160,7 @@ bool nrf51_probe(target *t)
case 0x0086: /* nRF51422 (rev 3) QFAC A1 */
case 0x0087: /* nRF51822 (rev 3) CFAC A0 */
case 0x0088: /* nRF51422 (rev 3) CFAC A0 */
case 0x0169: /* nRF51822 (rev 3) Taiyo EYSGJNZWY*/
t->driver = "Nordic nRF51";
target_add_ram(t, 0x20000000, 0x8000);
nrf51_add_flash(t, 0x00000000, 0x40000, NRF51_PAGE_SIZE);