To progress further it would be great to know the planned pin/peripheral mapping:
- I've been assuming that SPI1 and SPI2 are available
- I'm driving both SPI CS lines as GPIO so they can be anything convenient
- I think it makes sense to hook the gate driver interrupt/fault line up to the existing DESAT line (GPIOC/GPIO9) as it'll automatically do good things in the existing openinverter FW.
- PMIC fault monitoring will need a GPIO interrupt line though unused for now
- Gate driver enable GPIO
- Gate drive PSU enable (when to turn this on? All the time OR only when the inverter is running?)
Next up I was going to hack on the temperature monitoring. Looks similar to the existing tesla temperature stuff.