I have had the mirrors on for a while and not had the right module to make them power fold. After abit of research I see people use gen 3 max modules off scirroco or passat cc with 'a' suffix prt no.
2 problems with these. 1st the window drops slightly when door is open as the cars are framless windows. 2nd is can only modify eprom with vcp which I do not have.
B7 passat have gen 4 modules and they can be played with adaptation channels on vcds. They don't have the frameless window drop, and the pinouts are same as gen 3.
Found some on ebay for a reasonable price with 'a' price no. so fully capable of all options.
Fitted modules with motors as they came and got out the laptop.
Firstly, windows worked in reverse.
Secondly the mirror adjustment was all in the wrong directions from the switch.
Also needed to be told to power fold on the key.
So started with basic long coding using the helper. Indicators turned off, rear doors off and power fold turned on.
Now the adaptations.
Drivers door
Security access, then find system_parameter_14.
Factory code 74 E0 1E E4 00 00 00 00 00 etc
Byte 0, 74 to 7F changed window switch direction to correct way
Byte 1, E0 to E5 fold mirror on key and open on ignition.
Or
Byte 1, E9 fold mirror on key and open on drivers door open after unlock.
Byte 2, 1E to E4 changes mirror adjustment to caddy switch
Byte 3, E4 to B1 changes mirror adjustment to caddy switch
Final code in second pic.
Then I did passenger module and all I did was window reversal
Security access, then find system_parameter_14.
Byte 0, 7F to 74 changed window direction
This was all done with reading online posts and trying codes. Alot of trial and error and about 2hrs of head scratching.
It all seems to work perfectly on my van.
Windows and comfort closing with switch.
Windows and power fold mirrors on the key.
Power open mirrors when unlocked and drivers door opened.

Sent from my SM-G981B using Tapatalk