I’ve published a couple of Python scripts on GitHub that may be helpful for users of the BDM scripts.
The scripts are designed to split .map files and .bin/.ori images into component parts to allow programing using BDM.
The .bin/.ori script splits the full flash binary into four parts:
- boot code
- variant code
- VIN and programming information
- fuel map
Most .bin/.ori files have swapped byte order which needs to be corrected before BDM programming or use in .map files. The script swaps the byte order if necessary.
The .map split script extracts the variant code and fuel map from a supplied .map file, and pads the sections to suit the underlying blocksize.
You can finds the scripts on GitHub