Thanks to Damien I got an Ampera board that I want to install in a chevy spark inverter.The inverter is except of the missing part for the second motor the same as the Ampera/Volt, and the board fits perfectly. They are also the right plugs wired for the connector.
As a precaution, I have some material removed from the aluminum carrier plate in the area of conn2 so that the connections below have enough space.
I swapped pins 16 and 17 on the dsPIC to correct the polarity. After supplying the board with 12V, a green LED next to the STM32 and a red LED next to the dsPIC light up. Fine, no smoke, power supply OK.
To program the STM32, I use the STM32 ST-Link utility with an STM demo board (STM32L053) and the SWPROG01 port. As with the Prius Board, this was possible without problems.
After programming, one green LED next to the STM lights up and the second flashes.
I ordered a PicKit2 programmer for the dsPIC to program via the DSPIC PROG PORT. I use the PICkit2 programmer as software.
When read the dsPIC, the message "No device detected" appears, and the red LED flashes briefly once. OK, try to program, LED flashes twice, message "No device detected" nothing else.
After ordering a replacement dsPIC I search again all connections in the circuit diagram and also compared it with the version by BobC. When tracking the leads in the Schematic.PDF from Damien I came across SJ7 and SJ8.
Oops, the lines on the programming port hang in the air.
After bridging the jumper SJ7 and SJ8 the next attempt and what a surprise, it works. The dsPIC is found by software and after programming, all 4 LEDs next to the dsPIC also flash.
Now it is time to connect the further connections and testing.
Martin