Content originally posted in LPCWare by ktownsend on Sat Feb 26 16:08:10 MST 2011
Quote: Zero
Then be surprised :) That's nonsense :D
LPC17xx is different.
A simple 'memory view' can show it.
They're definately very different, but they share a number of similarities. The CPUID register is identical, for example, but perhaps this is defined by ARM not NXP, whereas the DEVICEID is likely defined by NXP and will vary in location of whether it's present at all:
// 1343
#define SCB_CPUID (*(pREG32 (0xE000ED00)))
// 1768
#define SCB_CPUID (*(volatile unsigned *)0xE000ED00)
If you're getting a hard fault, obviously the register either doesn't exist or is elsewhere, but I'm a bit surprised none the less. :-)
I can get the device ID from a simple register call on the 1300, but perhaps it simple doesn't exist on the 1700.
UPDATE: 0x40048xxx is definately in the peripheral range on the 17xx (CAN2, etc.), so my little guestimate is obviously compltely wrong.