So I was just looking at the log in this post. I'm somewhat unfamiliar with GMLAN protocol, so did I understand it correctly that the flashloader (0x14e0 bytes, in service id 0x34) gets loaded to 0x3fb800 RAM address (message with sid 0x36)antus wrote: ↑Fri Feb 28, 2020 4:07 pm Today I was attempting to gather some debug info by logging the bus traffing while testing v0004. And, on my first attempt while logging bus traffic, it read the bin successfully!
pcmflasher0004-2.logCode: Select all
initialising Tool J2534 PassThru Bosch - MDI... ok. connecting... start diagnostic session (0x10 0x03)...ok. disable normal communication (0x28)...ok. security access (0x27)... request seed...NOT ok, no valid seed received. Wait 30s after power on or failed attempt. connecting... start diagnostic session (0x10 0x03)...ok. disable normal communication (0x28)...ok. security access (0x27)... request seed...ok. seed: 0x0000335F key: 0x000075A3 sending key...ok. request programming mode...ok. sending enable programming mode...done. downloading prog... busy. ok. run prog...ok. ready to upload flash or download calibration. upload flash... upload progress: 4% (0x010000) upload progress: 7% (0x020000) upload progress: 10% (0x030000) upload progress: 13% (0x040000) upload progress: 16% (0x050000) upload progress: 19% (0x060000) upload progress: 22% (0x070000) upload progress: 25% (0x080000) upload progress: 29% (0x090000) upload progress: 32% (0x0A0000) upload progress: 35% (0x0B0000) upload progress: 38% (0x0C0000) upload progress: 41% (0x0D0000) upload progress: 44% (0x0E0000) upload progress: 47% (0x0F0000) upload progress: 50% (0x100000) upload progress: 54% (0x110000) upload progress: 57% (0x120000) upload progress: 60% (0x130000) upload progress: 63% (0x140000) upload progress: 66% (0x150000) upload progress: 69% (0x160000) upload progress: 72% (0x170000) upload progress: 75% (0x180000) upload progress: 79% (0x190000) upload progress: 82% (0x1A0000) upload progress: 85% (0x1B0000) upload progress: 88% (0x1C0000) upload progress: 91% (0x1D0000) upload progress: 94% (0x1E0000) upload progress: 97% (0x1F0000) upload progress: 100% (0x200000) done. validating upload...ok, valid.
pcmflasher0004-2.bin
The log is AVT Format, so the first byte, or two bytes depending on the length of the packet are the length. If you understand the can packets you will be able to see where they start. It was logged on the bus.
and then the routine at that 0x3fb800 address gets executed:--> 0B 00 07 E0 05 34 00 00 14 E0 00 00
--> 0B 00 07 E8 03 7F 34 78 AA AA AA AA
--> 05 00 07 E8 01 74
--> 0B 00 07 E0 14 06 36 00 00 3F B8 00
I'm not quite clear what 0x14 in 0B 00 07 E0 14 06 36 00 00 3F B8 00 does, doesn't look like the number of bytes in the message, is that a response code?--> 0B 00 07 E0 06 36 80 00 3F B8 00 00