I've been playing with IDA for a while now. Thought I'd share this little autoIT script I hacked together for parsing those "B_", "S_" and "Z_" flag variables generated by ME7info. It's based on one of the scripts posted in
this thread, originally started by prj. I modded it for my needs and added the function to parse those flag vars, adding them as enums.
Anyways, I made it for IDA 6.4, but it could be easily modded for any other version. The "Parse FLAGS" button is added to the menu.
Prereqs: default IDA view ("structures" tab 2 tabs to the right from "ida view" tab), specially pre-parsed .csv file with flags.
How to prepare csv: you take the appropriate .ecu file from me7i, leave only flags inside (B_, S_, Z_), sort it by address, remove duplicate names, leave only 3 columns:
Separated by semicolon for my locale, fix accordingly for your needs.
Abstract of said csv:
B_dlahieg;0xFD08;0x8000
B_elaof;0xFD0A;0x0008
B_lamka;0xFD0A;0x1000
B_fasla;0xFD0C;0x2000
B_mslon;0xFD0C;0x4000
B_dsl1;0xFD0E;0x0008
B_dsl4;0xFD0E;0x0010
B_sla;0xFD0E;0x1000
B_aircan;0xFD10;0x0080
B_sksc;0xFD16;0x0010
B_fofstp;0xFD26;0x0800
B_fonstp;0xFD26;0x2000
B_lustop;0xFD26;0x8000
B_mdstop_m;0xFD28;0x0020
B_mdarv;0xFD2A;0x0200
B_mdkat;0xFD2A;0x1000
B_mil;0xFD2C;0x0020
B_nowuc;0xFD2C;0x0008
Fire IDA up, launch the script, press "Parse FLAGS", feed said .csv in, sit back and enjoy! (Optionally) get a cup of coffee, it will take ~5 mins to finish for average .ecu.
P.S. I'm posting this here because the script is generally pretty messed up for anything else. It works for my needs, but the "parse ECU" is broken for example, etc.