I listened to the BDM commands with logic analyzer
I'm missing the appropriate config for usb NT
Log form Atemga48pv >>>> to MC68331
Code: Select all
//Sent Bits: 93398 | Recv Bits: 93398
WSREG SSP 0x00100000
NOP
WSREG SFC 0x00000005
NOP
WSREG DFC 0x00000005
NOP
WSREG USP 0xD27B7159
NOP
WRITE_WORD 0x00FFFA00 0x40C5
NOP
WRITE_WORD 0x00FFFA04 0x7F05
NOP
WRITE_WORD 0x00FFFA20 0x0000
NOP
WRITE_WORD 0x00FFFA44 0x3FFF
NOP
WRITE_WORD 0x00FFFA46 0x03FD
NOP
WRITE_WORD 0x00FFFA48 0x0007
NOP
WRITE_WORD 0x00FFFA4A 0x6C70
NOP
WRITE_WORD 0x00FFFA4C 0x0007
NOP
WRITE_WORD 0x00FFFA4E 0x7470
NOP
WRITE_WORD 0x00FFFA58 0x0007
NOP
WRITE_WORD 0x00FFFA5A 0x5C70
NOP
WRITE_WORD 0x00FFFA5C 0x0007
NOP
WRITE_WORD 0x00FFFA5E 0x3C70
NOP
WRITE_LONG 0x00000000 0x00100000
NOP
WRITE_LONG 0x00000004 0x00000408
NOP
WRITE_LONG 0x00000008 0x00000FFE
NOP
WRITE_LONG 0x0000000C 0x00000FFE
NOP
WRITE_LONG 0x00000010 0x00000FFE
NOP
WRITE_LONG 0x00000014 0x00000FFE
NOP
WRITE_LONG 0x00000018 0x00000FFE
NOP
WRITE_LONG 0x0000001C 0x00000FFE
NOP
WRITE_LONG 0x00000020 0x00000FFE
NOP
WRITE_LONG 0x00000024 0x00000FFE
NOP
WRITE_LONG 0x00000028 0x00000FFE
NOP
WRITE_LONG 0x0000002C 0x00000FFE
NOP
WRITE_LONG 0x00000030 0x00000FFE
NOP
WRITE_LONG 0x00000034 0x00000FFE
NOP
WRITE_LONG 0x00000038 0x00000FFE
NOP
WRITE_LONG 0x0000003C 0x00000FFE
NOP
WRITE_LONG 0x00000040 0x00000FFE
NOP
WRITE_LONG 0x00000044 0x00000FFE
NOP
WRITE_LONG 0x00000048 0x00000FFE
NOP
WRITE_LONG 0x0000004C 0x00000FFE
NOP
WRITE_LONG 0x00000050 0x00000FFE
NOP
WRITE_LONG 0x00000054 0x00000FFE
NOP
WRITE_LONG 0x00000058 0x00000FFE
NOP
WRITE_LONG 0x0000005C 0x00000FFE
NOP
WRITE_LONG 0x00000060 0x00000FFE
NOP
WRITE_LONG 0x00000064 0x00000FFE
NOP
WRITE_LONG 0x00000068 0x00000FFE
NOP
WRITE_LONG 0x0000006C 0x00000FFE
NOP
WRITE_LONG 0x00000070 0x00000FFE
NOP
WRITE_LONG 0x00000074 0x00000FFE
NOP
WRITE_LONG 0x00000078 0x00000FFE
NOP
WRITE_LONG 0x0000007C 0x00000FFE
NOP
WRITE_LONG 0x00000080 0x00000FFE
NOP
WRITE_LONG 0x00000084 0x00000FFE
NOP
WRITE_LONG 0x00000088 0x00000FFE
NOP
WRITE_LONG 0x0000008C 0x00000FFE
NOP
WRITE_LONG 0x00000090 0x00000FFE
NOP
WRITE_LONG 0x00000094 0x00000FFE
NOP
WRITE_LONG 0x00000098 0x00000FFE
NOP
WRITE_LONG 0x0000009C 0x00000FFE
NOP
WRITE_LONG 0x000000A0 0x00000FFE
NOP
WRITE_LONG 0x000000A4 0x00000FFE
NOP
WRITE_LONG 0x000000A8 0x00000FFE
NOP
WRITE_LONG 0x000000AC 0x00000FFE
NOP
WRITE_LONG 0x000000B0 0x00000FFE
NOP
WRITE_LONG 0x000000B4 0x00000FFE
NOP
WRITE_LONG 0x000000B8 0x00000FFE
NOP
WRITE_LONG 0x000000BC 0x00000FFE
NOP
WRITE_LONG 0x000000C0 0x00000FFE
NOP
WRITE_LONG 0x000000C4 0x00000FFE
NOP
WRITE_LONG 0x000000C8 0x00000FFE
NOP
WRITE_LONG 0x000000CC 0x00000FFE
NOP
WRITE_LONG 0x000000D0 0x00000FFE
NOP
WRITE_LONG 0x000000D4 0x00000FFE
NOP
WRITE_LONG 0x000000D8 0x00000FFE
NOP
WRITE_LONG 0x000000DC 0x00000FFE
NOP
WRITE_LONG 0x000000E0 0x00000FFE
NOP
WRITE_LONG 0x000000E4 0x00000FFE
NOP
WRITE_LONG 0x000000E8 0x00000FFE
NOP
WRITE_LONG 0x000000EC 0x00000FFE
NOP
WRITE_LONG 0x000000F0 0x00000FFE
NOP
WRITE_LONG 0x000000F4 0x00000FFE
NOP
WRITE_LONG 0x000000F8 0x00000FFE
NOP
WRITE_LONG 0x000000FC 0x00000FFE
NOP
WRITE_LONG 0x00000100 0x00000FFE
NOP
WRITE_LONG 0x00000104 0x00000FFE
NOP
WRITE_LONG 0x00000108 0x00000FFE
NOP
WRITE_LONG 0x0000010C 0x00000FFE
NOP
WRITE_LONG 0x00000110 0x00000FFE
NOP
WRITE_LONG 0x00000114 0x00000FFE
NOP
WRITE_LONG 0x00000118 0x00000FFE
NOP
WRITE_LONG 0x0000011C 0x00000FFE
NOP
WRITE_LONG 0x00000120 0x00000FFE
NOP
WRITE_LONG 0x00000124 0x00000FFE
NOP
WRITE_LONG 0x00000128 0x00000FFE
NOP
WRITE_LONG 0x0000012C 0x00000FFE
NOP
WRITE_LONG 0x00000130 0x00000FFE
NOP
WRITE_LONG 0x00000134 0x00000FFE
NOP
WRITE_LONG 0x00000138 0x00000FFE
NOP
WRITE_LONG 0x0000013C 0x00000FFE
NOP
WRITE_LONG 0x00000140 0x00000FFE
NOP
WRITE_LONG 0x00000144 0x00000FFE
NOP
WRITE_LONG 0x00000148 0x00000FFE
NOP
WRITE_LONG 0x0000014C 0x00000FFE
NOP
WRITE_LONG 0x00000150 0x00000FFE
NOP
WRITE_LONG 0x00000154 0x00000FFE
NOP
WRITE_LONG 0x00000158 0x00000FFE
NOP
WRITE_LONG 0x0000015C 0x00000FFE
NOP
WRITE_LONG 0x00000160 0x00000FFE
NOP
WRITE_LONG 0x00000164 0x00000FFE
NOP
WRITE_LONG 0x00000168 0x00000FFE
NOP
WRITE_LONG 0x0000016C 0x00000FFE
NOP
WRITE_LONG 0x00000170 0x00000FFE
NOP
WRITE_LONG 0x00000174 0x00000FFE
NOP
WRITE_LONG 0x00000178 0x00000FFE
NOP
WRITE_LONG 0x0000017C 0x00000FFE
NOP
WRITE_LONG 0x00000180 0x00000FFE
NOP
WRITE_LONG 0x00000184 0x00000FFE
NOP
WRITE_LONG 0x00000188 0x00000FFE
NOP
WRITE_LONG 0x0000018C 0x00000FFE
NOP
WRITE_LONG 0x00000190 0x00000FFE
NOP
WRITE_LONG 0x00000194 0x00000FFE
NOP
WRITE_LONG 0x00000198 0x00000FFE
NOP
WRITE_LONG 0x0000019C 0x00000FFE
NOP
WRITE_LONG 0x000001A0 0x00000FFE
NOP
WRITE_LONG 0x000001A4 0x00000FFE
NOP
WRITE_LONG 0x000001A8 0x00000FFE
NOP
WRITE_LONG 0x000001AC 0x00000FFE
NOP
WRITE_LONG 0x000001B0 0x00000FFE
NOP
WRITE_LONG 0x000001B4 0x00000FFE
NOP
WRITE_LONG 0x000001B8 0x00000FFE
NOP
WRITE_LONG 0x000001BC 0x00000FFE
NOP
WRITE_LONG 0x000001C0 0x00000FFE
NOP
WRITE_LONG 0x000001C4 0x00000FFE
NOP
WRITE_LONG 0x000001C8 0x00000FFE
NOP
WRITE_LONG 0x000001CC 0x00000FFE
NOP
WRITE_LONG 0x000001D0 0x00000FFE
NOP
WRITE_LONG 0x000001D4 0x00000FFE
NOP
WRITE_LONG 0x000001D8 0x00000FFE
NOP
WRITE_LONG 0x000001DC 0x00000FFE
NOP
WRITE_LONG 0x000001E0 0x00000FFE
NOP
WRITE_LONG 0x000001E4 0x00000FFE
NOP
WRITE_LONG 0x000001E8 0x00000FFE
NOP
WRITE_LONG 0x000001EC 0x00000FFE
NOP
WRITE_LONG 0x000001F0 0x00000FFE
NOP
WRITE_LONG 0x000001F4 0x00000FFE
NOP
WRITE_LONG 0x000001F8 0x00000FFE
NOP
WRITE_LONG 0x000001FC 0x00000FFE
NOP
WRITE_LONG 0x00000200 0x00000FFE
NOP
WRITE_LONG 0x00000204 0x00000FFE
NOP
WRITE_LONG 0x00000208 0x00000FFE
NOP
WRITE_LONG 0x0000020C 0x00000FFE
NOP
WRITE_LONG 0x00000210 0x00000FFE
NOP
WRITE_LONG 0x00000214 0x00000FFE
NOP
WRITE_LONG 0x00000218 0x00000FFE
NOP
WRITE_LONG 0x0000021C 0x00000FFE
NOP
WRITE_LONG 0x00000220 0x00000FFE
NOP
WRITE_LONG 0x00000224 0x00000FFE
NOP
WRITE_LONG 0x00000228 0x00000FFE
NOP
WRITE_LONG 0x0000022C 0x00000FFE
NOP
WRITE_LONG 0x00000230 0x00000FFE
NOP
WRITE_LONG 0x00000234 0x00000FFE
NOP
WRITE_LONG 0x00000238 0x00000FFE
NOP
WRITE_LONG 0x0000023C 0x00000FFE
NOP
WRITE_LONG 0x00000240 0x00000FFE
NOP
WRITE_LONG 0x00000244 0x00000FFE
NOP
WRITE_LONG 0x00000248 0x00000FFE
NOP
WRITE_LONG 0x0000024C 0x00000FFE
NOP
WRITE_LONG 0x00000250 0x00000FFE
NOP
WRITE_LONG 0x00000254 0x00000FFE
NOP
WRITE_LONG 0x00000258 0x00000FFE
NOP
WRITE_LONG 0x0000025C 0x00000FFE
NOP
WRITE_LONG 0x00000260 0x00000FFE
NOP
WRITE_LONG 0x00000264 0x00000FFE
NOP
WRITE_LONG 0x00000268 0x00000FFE
NOP
WRITE_LONG 0x0000026C 0x00000FFE
NOP
WRITE_LONG 0x00000270 0x00000FFE
NOP
WRITE_LONG 0x00000274 0x00000FFE
NOP
WRITE_LONG 0x00000278 0x00000FFE
NOP
WRITE_LONG 0x0000027C 0x00000FFE
NOP
WRITE_LONG 0x00000280 0x00000FFE
NOP
WRITE_LONG 0x00000284 0x00000FFE
NOP
WRITE_LONG 0x00000288 0x00000FFE
NOP
WRITE_LONG 0x0000028C 0x00000FFE
NOP
WRITE_LONG 0x00000290 0x00000FFE
NOP
WRITE_LONG 0x00000294 0x00000FFE
NOP
WRITE_LONG 0x00000298 0x00000FFE
NOP
WRITE_LONG 0x0000029C 0x00000FFE
NOP
WRITE_LONG 0x000002A0 0x00000FFE
NOP
WRITE_LONG 0x000002A4 0x00000FFE
NOP
WRITE_LONG 0x000002A8 0x00000FFE
NOP
WRITE_LONG 0x000002AC 0x00000FFE
NOP
WRITE_LONG 0x000002B0 0x00000FFE
NOP
WRITE_LONG 0x000002B4 0x00000FFE
NOP
WRITE_LONG 0x000002B8 0x00000FFE
NOP
WRITE_LONG 0x000002BC 0x00000FFE
NOP
WRITE_LONG 0x000002C0 0x00000FFE
NOP
WRITE_LONG 0x000002C4 0x00000FFE
NOP
WRITE_LONG 0x000002C8 0x00000FFE
NOP
WRITE_LONG 0x000002CC 0x00000FFE
NOP
WRITE_LONG 0x000002D0 0x00000FFE
NOP
WRITE_LONG 0x000002D4 0x00000FFE
NOP
WRITE_LONG 0x000002D8 0x00000FFE
NOP
WRITE_LONG 0x000002DC 0x00000FFE
NOP
WRITE_LONG 0x000002E0 0x00000FFE
NOP
WRITE_LONG 0x000002E4 0x00000FFE
NOP
WRITE_LONG 0x000002E8 0x00000FFE
NOP
WRITE_LONG 0x000002EC 0x00000FFE
NOP
WRITE_LONG 0x000002F0 0x00000FFE
NOP
WRITE_LONG 0x000002F4 0x00000FFE
NOP
WRITE_LONG 0x000002F8 0x00000FFE
NOP
WRITE_LONG 0x000002FC 0x00000FFE
NOP
WRITE_LONG 0x00000300 0x00000FFE
NOP
WRITE_LONG 0x00000304 0x00000FFE
NOP
WRITE_LONG 0x00000308 0x00000FFE
NOP
WRITE_LONG 0x0000030C 0x00000FFE
NOP
WRITE_LONG 0x00000310 0x00000FFE
NOP
WRITE_LONG 0x00000314 0x00000FFE
NOP
WRITE_LONG 0x00000318 0x00000FFE
NOP
WRITE_LONG 0x0000031C 0x00000FFE
NOP
WRITE_LONG 0x00000320 0x00000FFE
NOP
WRITE_LONG 0x00000324 0x00000FFE
NOP
WRITE_LONG 0x00000328 0x00000FFE
NOP
WRITE_LONG 0x0000032C 0x00000FFE
NOP
WRITE_LONG 0x00000330 0x00000FFE
NOP
WRITE_LONG 0x00000334 0x00000FFE
NOP
WRITE_LONG 0x00000338 0x00000FFE
NOP
WRITE_LONG 0x0000033C 0x00000FFE
NOP
WRITE_LONG 0x00000340 0x00000FFE
NOP
WRITE_LONG 0x00000344 0x00000FFE
NOP
WRITE_LONG 0x00000348 0x00000FFE
NOP
WRITE_LONG 0x0000034C 0x00000FFE
NOP
WRITE_LONG 0x00000350 0x00000FFE
NOP
WRITE_LONG 0x00000354 0x00000FFE
NOP
WRITE_LONG 0x00000358 0x00000FFE
NOP
WRITE_LONG 0x0000035C 0x00000FFE
NOP
WRITE_LONG 0x00000360 0x00000FFE
NOP
WRITE_LONG 0x00000364 0x00000FFE
NOP
WRITE_LONG 0x00000368 0x00000FFE
NOP
WRITE_LONG 0x0000036C 0x00000FFE
NOP
WRITE_LONG 0x00000370 0x00000FFE
NOP
WRITE_LONG 0x00000374 0x00000FFE
NOP
WRITE_LONG 0x00000378 0x00000FFE
NOP
WRITE_LONG 0x0000037C 0x00000FFE
NOP
WRITE_LONG 0x00000380 0x00000FFE
NOP
WRITE_LONG 0x00000384 0x00000FFE
NOP
WRITE_LONG 0x00000388 0x00000FFE
NOP
WRITE_LONG 0x0000038C 0x00000FFE
NOP
WRITE_LONG 0x00000390 0x00000FFE
NOP
WRITE_LONG 0x00000394 0x00000FFE
NOP
WRITE_LONG 0x00000398 0x00000FFE
NOP
WRITE_LONG 0x0000039C 0x00000FFE
NOP
WRITE_LONG 0x000003A0 0x00000FFE
NOP
WRITE_LONG 0x000003A4 0x00000FFE
NOP
WRITE_LONG 0x000003A8 0x00000FFE
NOP
WRITE_LONG 0x000003AC 0x00000FFE
NOP
WRITE_LONG 0x000003B0 0x00000FFE
NOP
WRITE_LONG 0x000003B4 0x00000FFE
NOP
WRITE_LONG 0x000003B8 0x00000FFE
NOP
WRITE_LONG 0x000003BC 0x00000FFE
NOP
WRITE_LONG 0x000003C0 0x00000FFE
NOP
WRITE_LONG 0x000003C4 0x00000FFE
NOP
WRITE_LONG 0x000003C8 0x00000FFE
NOP
WRITE_LONG 0x000003CC 0x00000FFE
NOP
WRITE_LONG 0x000003D0 0x00000FFE
NOP
WRITE_LONG 0x000003D4 0x00000FFE
NOP
WRITE_LONG 0x000003D8 0x00000FFE
NOP
WRITE_LONG 0x000003DC 0x00000FFE
NOP
WRITE_LONG 0x000003E0 0x00000FFE
NOP
WRITE_LONG 0x000003E4 0x00000FFE
NOP
WRITE_LONG 0x000003E8 0x00000FFE
NOP
WRITE_LONG 0x000003EC 0x00000FFE
NOP
WRITE_LONG 0x000003F0 0x00000FFE
NOP
WRITE_LONG 0x000003F4 0x00000FFE
NOP
WRITE_LONG 0x000003F8 0x00000FFE
NOP
WRITE_LONG 0x000003FC 0x00000FFE
NOP
WRITE_LONG 0x00000FC0 0x307CFC08
NOP
WRITE_LONG 0x00000FC4 0x30FC0009
NOP
WRITE_LONG 0x00000FC8 0x30FC000C
NOP
WRITE_LONG 0x00000FCC 0x32485449
NOP
WRITE_LONG 0x00000FD0 0x347C0400
NOP
WRITE_LONG 0x00000FD4 0x42404241
NOP
WRITE_LONG 0x00000FD8 0x363C0BBF
NOP
WRITE_LONG 0x00000FDC 0x08280006
NOP
WRITE_LONG 0x00000FE0 0x000167F8
NOP
WRITE_LONG 0x00000FE4 0x10280001
NOP
WRITE_LONG 0x00000FE8 0x0200000F
NOP
WRITE_LONG 0x00000FEC 0x6600000C
NOP
WRITE_LONG 0x00000FF0 0x14E90001
NOP
WRITE_LONG 0x00000FF4 0x4A4357CB
NOP
WRITE_LONG 0x00000FF8 0xFFE41340
NOP
WRITE_LONG 0x00000FFC 0x00014AFA
NOP
WRITE_LONG 0x000FFF80 0x00000000
NOP
WSREG RPC 0x00000FC0
NOP
WSREG PCC 0x00000FC0
NOP
WRITE_LONG 0x00000004 0x00000FC0
NOP
GO