AnsweredAssumed Answered

LPC54608 SWD initialization

Question asked by Gary Yang on Aug 7, 2019
Latest reply on Aug 8, 2019 by ZhangJennie

Dear Sir:

We are programmer manufacturers.

We are developing the programming of LPC54608.

We can't read the correct value at address 0x000~0x1FF.
The correct value can be read after 0x200

Our initialization process is as follows:

JTAGtoSWD
read DebugPort IDCODE 0xA5,0x2BA01477
write DebugPort ABORT 0x81,0x0000001E
write DebugPort CTRL/STAT 0xA9,0x50000000
write DebugPort ABORT 0x81,0x0000001E
write DebugPort CTRL/STAT 0xA9,0x50000000
read DebugPort CTRL/STAT 0x8D,0xF0000000
write DebugPort ABORT 0x81,0x0000001E
write DebugPort SELECT 0xB1,0x000000F0
read AccessPort IDR 0x9F,0x00000000
read AccessPort BASE 0xB7,0x24770011
read AccessPort BASE 0xB7,0xE00FF003
write DebugPort ABORT 0x81,0x0000001E
write DebugPort SELECT 0xB1,0x00000000
write AccessPort TAR 0x8B,0xE000EDF0
write AccessPort CSW 0xA3,0x23000012
write AccessPort DRW 0xBB,0xA05F0003
write DebugPort ABORT 0x81,0x0000001E
write DebugPort SELECT 0xB1,0x00000000
write AccessPort TAR 0x8B,0xE000EDFC
write AccessPort CSW 0xA3,0x23000012
write AccessPort DRW 0xBB,0x01000001
write DebugPort ABORT 0x81,0x0000001E
write DebugPort SELECT 0xB1,0x00000000
write AccessPort TAR 0x8B,0xE000ED0C
write AccessPort CSW 0xA3,0x23000002
write AccessPort DRW 0xBB,0x05FA0004
read DebugPort RDBUFF 0xBD,0xE00FF003

 

Do you have a suggested initialization process for us to refer to?

 

Thank you

 

Regards,

Gary

Outcomes