I want to detect what kind of chip I have on my SWD chain. (a W7500 a W7500P or some other cortex m0)
Using st-link and gdb I can read the CPU ID Base register (as shown on page 220 of the The Definitive Guide to ARM ® Cortex ® -M0 and
Cortex-M0+ Processors Second Edition Joseph Yiu)
(gdb) x 0xe000ed00
0xe000ed00: 0x410cc200
The current release of the Cortex-M0 processor (r0p0) has CPU ID values of 0x410CC200
So it is a cortex m0, but is it a W7500 or W7500P (which needs different firmware version because I/O is mapped differently) ?
What register can I read (using SWD) to tell me what chip I have?
Thanks,
Edwin van den Oetelaar