# MG1CS002

CAN Hi and Low is only for comms with drivetrain, Flex is used for MG1CS002
CAN Hi and Low is only for comms with drivetrain, Flex is used for MG1CS002

Tool OBD Bench Boot Notes
AutoTuner
bFlash
CMDFlash
BSL100
K-Suite
PCMFlash

# MG1CS002 SPC

UDS Block Number File Offset Processor Offset Size Label
01 0x018000 ?? 0x028000 CBOOT
02 0x040000 ?? 0x340000 ASW1
03 0x380000 ?? 0x2C0000 ASW2
04 0x00C000 ?? 0x004000 ASW3
05 0x640000 ?? 0x180000 Maps

# MG1CS002 Aurix

UDS Block Number File Offset Processor Offset Size Label
01 0x600000 ?? 0x030000 CBOOT
02 0x200000 ?? 0x200000 ASW1
03 0x400000 ?? 0x200000 ASW2
04 0x630000 ?? 0x1D0000 ASW3
05 0x01C000 ?? 0x044000 ASW4
06 0x01C000 ?? 0x180000 Maps

# Block Identification

Bosch files have markers for identification of the block areas, these represent different classes of blocks.

The known classes are:

ID Name
10 SBOOT
20 CODE
40 CODE
50 CODE
60 CODE
61 CODE
62 CODE
63 CODE
70 Maps

To find these block identifiers search for DE AD BE EF or EF BE AD DE, you'll need to properly configure you values in 32 bit to the matching endian-ness.

Shortly after the DEADBEEF marker you will see the block class at the beginning. Here's an example of both little and big endian in MG1CS002, showing block class 0x10 (SBOOT):

SA2
/algorithms/sa2.md

# MG1CS002 SPC

Algorithm Parameters
SA2 Normal 6807873107201493010820154A03826B068193020920168403102017494C4C

# MG1CS002 Aurix

Algorithm Parameters
SA2 Normal 6807870401201593050220164A03826B068193060320178407042018494C4C