LPC4337 serial number

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC4337 serial number

1,019件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IanMellor on Wed May 20 04:52:10 MST 2015
Hi, I'm trying to read the serial number of an LPC4337.
Here is my code but I'm not having much luck.
I have tried adding 1 to the entry point for Thumb instructions (as below) but that didn't work
Does anyone have any idea what could be going wrong?
Is there an address I can read directly?
Thanks


typedef void (*IAP)(void *, void *);
IAP IAP_entry = (IAP)0x10400101;
static uint32_t UID_array[4];

// get the 128-bit device serial number
// return 4 DWORDs into an array supplied by the caller
//
static uint32_t IAP_command = 58;

     __disable_irq();
    IAP_entry(&IAP_command, UID_array);
     __enable_irq();
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

976件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IanMellor on Thu May 21 01:01:09 MST 2015
Thanks statblue I'll give it a go.

Sorry for the bad fault description but my hardware is broken (blown SW port) and I can't remember the exact fault.
0 件の賞賛
返信

976件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Wed May 20 06:54:42 MST 2015
You are missing a level of indirection. You shouldn't jump to 0x10400100, but to the address pointed to by 0x10400100.

Also, your result is too small, there is no space for the status code.

BTW, "didn't work" is not a good problem description, "causes a hard fault" would have been much better.
0 件の賞賛
返信