VVDISHOP.com here shares Xhorse vvdi prog pinouts to volvo s40 CEM module.
There are 2 types.
Type 1 pinout
Type 2 Pinout
I was able to read and write both processors eeprom & flash with vvdi prog by following pinouts on mcu. I used hooks to connect straight to legs. The new installed bcm works great with old keys and no error codes are current.