Skip to content
Workshop: repairs and experiments

Bosch dishwasher board SWS4118: the board map — what we found in the firmware and by testing (part 2)

Published 19.11.2026
Contents 10
  1. What we need and what we leave out
  2. How we went about it
  3. What the firmware switches on in the chip
  4. How the board talks to the panel: the D-Bus
  5. The board map
  6. What is still unknown
  7. What use this is to us
  8. Next
  9. For anyone repeating this
  10. Article changelog

Part two of three on the Bosch dishwasher board 702168823.01GA / SWS4118 Rev.4. Part one covers what is on the board, the EEPROM and firmware copies, and how the firmware is put together. This part is the board map: which microcontroller pin controls what, and how we found out. Without this map we could not write our own firmware. In this article:

  • what we need and what we deliberately leave out;
  • what the original firmware switches on in the chip: two inverters, field-oriented control of the pump, temperature sensors, inputs;
  • the D-Bus the board uses to talk to the panel;
  • the board map: every point found, with measurements; the relays, the power module and shunts, the driver supply, the sensor, the resonator, free pins for a display;
  • every microcontroller pin, in a collapsible table;
  • what is still unknown and what use all this is to us;
  • an appendix for anyone repeating this: preparing for continuity testing and reading registers.

Our own firmware, stage by stage, is in part three.

draft — the map is still being filled in

⚠ All continuity testing is done on an unpowered board: unplugged, ST-Link disconnected, the big capacitor discharged. The registers were read with the board powered only by the ST-Link over USB (3.3 V, no mains), and read-only. The board ground is tied to mains, so while the board is on mains we connect neither the ST-Link, nor a computer, nor an oscilloscope. The reasons are in part three.

What we need and what we leave out

We need little from the board: run the pump with its built-in heater, measure the heater temperature, switch the heater on, and perhaps set the flow rate through the pump speed. Everything else the water heater needs will be handled by another controller with its own sensors and buttons.

So we do not look for the dishwasher's sensors: flood, door, salt and rinse aid, water level and turbidity, the buttons. We would need them if we kept the original firmware: it runs the wash program and stops with an error without them. Our own firmware does without them, and disconnected connectors do not bother it.

How the heater stays safe without the dishwasher's sensors

A 2.6 kW heater with no water overheats within seconds. In the dishwasher the level and flow sensors guarded against that; we are removing them, so we build the protection like this:

  1. The thermal fuses on the pump-heater itself stay in place. That protection works without any firmware.
  2. The heater runs only while the pump turns and water really flows. A pump running dry draws noticeably less current, and the firmware sees that. We took the rules from the original firmware: the current threshold, the delay after start-up, the limits for both temperature sensors on the heater. Our own firmware does the same (version 25, not yet written to the board; part three).
  3. The flood sensor on the other controller is best wired to cut the power physically, with a relay or contactor, rather than just send a command.

How we went about it

We built the map from four sources, and each one covers what the others cannot see:

  • Live board registers: STM32_Programmer_CLI with -r32 while the original firmware runs. They give the mode of every pin (output, input, analog input or a peripheral pin such as a timer output) and the timer, comparator and port settings.
  • The original firmware's code: the Capstone disassembler for a first look, then Ghidra (ARM Cortex, little endian, base 0x08000000). It tells which pins the program reads and which ones it waits on for interrupts: a plain input after reset looks exactly like a pin the firmware never touches, and only the code tells them apart.
  • A pull-up/pull-down test: through the ST-Link we switched each pin's internal pull-up and then pull-down on in turn. A pin whose level follows the pull has nothing on the board holding its level.
  • Continuity testing: the beeper and resistance ranges, a needle on the probe. It tells where a pin leads on the board and through which parts.

⚠ The sensors and buttons were disconnected during the pull-up/pull-down test, so "floating" does not mean "goes nowhere": the pin may lead to a connector.

How to read registers without disturbing the program, and how to prepare the board for continuity testing, is in the appendix at the end.

What the firmware switches on in the chip

This was read from the live board's registers with the original firmware already running (the board on 3.3 V from the ST-Link, no motors connected).

PeripheralWhat we readWhat it means
clocksexternal oscillator × 9, APB2 bus undivided, APB1 /2an 8 MHz resonator × 9 = 72 MHz, this chip's top speed; our firmware runs from it the same way (resonator)
USART1 (PE0, PE1)divider 7500, 8 bits without parity, interrupt-driven receive9600 baud, 8N1: exactly the D-Bus
TIM1 (PE8–PE13)at rest: three complementary output pairs, centre-aligned PWM, period 1562, 2 µs dead timea three-phase inverter that drives the FSB50550AB power module; PWM ≈ 23 kHz at rest, 10 kHz in operation (see below)
TIM8 (PC6–PC8, PC10–PC12)at rest the same, period 3446a second three-phase inverter (PWM ≈ 10.4 kHz at rest); not populated on our board
outputs of both timersmain output enable offthe motors are stopped, as they should be without mains
comparators COMP1–COMP6all six on, outputs routed to the timers' break inputsovercurrent protection: three per inverter, one per phase
op-amps OPAMP1–OPAMP4onthey amplify the current-shunt signals for the ADC
DAC, both channels1806 of 4095 (≈ 1.46 V)the threshold for the protection comparators
ADC 1–423 pins in analog modecurrents, voltages, temperatures, levels
TIM2 (PA9, PA10), TIM3 (PB5), TIM4 (PD13, PD15)pins in timer modePB5 and PA9 are the heater relays, PD13 the JW2SN relay (relays); PA10 and PD15 float on the board
UART5transmit only, ≈ 900 baud; not routed to any pinpurpose unknown
watchdogsindependent and windowif the program hangs, the chip restarts
CRC unitcomputes a checksum of flash areas while runninga self-test (part one)

We read the timers at rest, with the pump stopped. In operation the original firmware sets both to a period of 3600 with centre-aligned PWM, which is 10 kHz, and computes field-oriented control for the two motors in turn, about 5,000 times a second for each (field-oriented control).

Two inverters, one power module

The firmware is ready to drive two three-phase motors: both timers are set up the same way, each with its own protection. The board, though, carries a single FSB50550AB power module. Tracing showed that its inputs go to pins 39–44, so TIM1 drives it. The TIM8 outputs (63–65 and 78–80) lead through 1 kΩ resistors to an empty footprint for a second such module. Most likely the board is made for several dishwasher models, and on ours the second inverter is simply not populated (free pins).

The one module runs two pumps in turn: the JW2SN relay switches its three phases between them.

PumpMarkingRating plateWhen connected
circulation with heater, ours9001.230.206 (genuine BSH spare part 12019637, also 1BS3610-6AA)not copied yetJW2SN relay off
drain, which we do not needC002979193 phases, AC, 54 V, 55 Hz, 50 W, 0.6 AJW2SN relay on

The original firmware also confirms that the relay off means our pump: it has three sets of motor settings, and before a start it decides whether to switch the relay on. The set with the relay on gives a field frequency of command / 60, up to ≈ 58 Hz at a command of 3500, which matches the 55 Hz on the drain pump's rating plate. The set with the relay off has speeds of 1500…5000 rpm and three rotor pole pairs, a field of 75…250 Hz: that is our pump. So our firmware never switches the JW2SN on, and the module always runs the pump with the heater.

Field-oriented motor control

The original firmware runs the pump with field-oriented control (FOC): it keeps measuring the phase currents and from them works out where the rotor is and how fast it turns. There is no rotor position sensor. We worked out how this is done for our pump:

  • Current is measured in two phases only, U and V. Each phase's shunt voltage goes through one of the microcontroller's built-in op-amps (×4) to its own ADC. A timer triggers the measurement roughly in the middle of the time the low-side switches are on, when the phase current is actually flowing through the shunt. The W shunt goes only to a protection comparator (PB11 has no ADC channel), and the firmware computes the third phase current as minus the sum of the other two.
  • Then comes the usual FOC chain: the currents are converted into the rotor's frame of reference, two regulators hold the required currents, the result is converted back into three phases, divided by the DC bus voltage and applied through space-vector PWM.
  • The rotor position comes from an observer: it compares the measured current with what a model of the winding predicts, estimates from the difference the voltage the rotor induces in the windings, and from that the angle.
  • Start-up: the rotor is lined up with a current of ≈ 0.42 A for 0.3 s, then accelerated for about a second at the same current without estimating the position, and only then is control handed over to the observer.
  • Loss of synchronism: if the rotor turns the wrong way, or runs slower than half the set speed for more than 100 cycles in a row, the firmware decides it has fallen behind the field.

The control cycle runs about 5,000 times a second per motor. Which motor parameters this needs, which of them we found in the original firmware, and how to measure them for an unknown motor is in part three. For now our own firmware runs the pump more simply, "blind": it applies a rotating field without checking that the rotor keeps up (part three).

Temperature sensors

The firmware has two tables that convert a 12-bit ADC reading (0–4095) into degrees, both from 0 to 125 °C. These are thermistors (NTC), and both sit on the heater itself: the sensor's three wires arrive at connector X13 (heater temperature sensor). Pin 34 uses table 1 and pin 26 table 2: we checked this with our own firmware (part three).

°CTable 1, ADC (pin 34)Table 2, ADC (pin 26)
031473492
1028103244
2024392948
3020622616
4017022268
5013781923
6011011600
708751317
826611029
90548870
100435703
125249416

The hotter it gets, the lower the number: the thermistor is in the lower leg of the divider. Between the points the firmware most likely interpolates linearly. The 82 °C point instead of 80 comes straight from the firmware table. The original firmware treats a sensor as healthy if it reads between −10 and 95 °C; anything else is an open or a short. For our water heater this is a ready calibration table: it is the same board, so the table can be used as it is.

Which inputs the firmware reads

The registers only show a pin's mode, so we looked for the inputs in the code. Direct reads turned up on pins 67 (PA8), 47 (PB10), 82 (PD1), 83 (PD2) and a few others. A separate function reads pin 71 (PA12) as active-low, like a button or a switch. There are two pin interrupts: EXTI7 on pin 93 (PB7), most likely from something that pulses, and EXTI1 on pin 98 (PE1), the receive line from the panel, to catch the start of a byte.

We now understand pin 47 (PB10) better: it looks like the firmware uses it to check that the power module's driver supply chain has worked (driver supply). The rest, 67, 71, 82, 83 and 93, have nothing on the board holding their level, yet the firmware reads them. So most likely they lead to connectors, where dishwasher sensors sit that are not connected now. We leave them alone.

The firmware picks some pins at run time from tables, so this list may be incomplete.

How the board talks to the panel: the D-Bus

What D-Bus is. It is the name BSH (Bosch, Siemens, Neff, Gaggenau) uses for the internal bus in its home appliances. Over it the control board, the button panel and the Wi-Fi module send each other commands: "program selected", "start the pump", "time remaining". Physically it is three wires: ground, a supply for the nodes and a single data wire. On the data wire all nodes take turns sending bytes, just like an ordinary serial port. Not to be confused with D-Bus on Linux, which is something else entirely: messaging between programs on the same computer. How D-Bus compares with other buses such as I²C, RS-485, CAN or LIN is in the overview of communication protocols.

The hn/bsh-home-appliances project describes this bus for dishwashers of the same family. What in that description matches our firmware:

Whathn's descriptionIn our firmware
wiresthree: GND, DATA, VBUS; in dishwashers VBUS ≈ 13.5 V, DATA is 5 V logicUSART1 on pins 97 (PE0) and 98 (PE1); where they go is still to be found
speed and format9600 baud, 8N1yes: divider 7500 at 72 MHz, no parity
framelength, address and subsystem, command (2 bytes), data, CRC16 (XMODEM)not analysed
acknowledgementone byte right after an addressed framenot analysed

Node addresses according to hn: 1 the washing control unit (our board), 2 the control panel, 0x6 the floor time projector, 0xA/0xB internet modules. Known commands: 17.10-10 xx selects wash program xx, 17.10-00 the options, 24.20-06 the rinse aid and salt indicators, 25.20-08 the remaining time.

According to the same description our board is the dishwasher's main unit: the panel only sends it the selected program and options, while the "run the pump" command is generated by the board's own firmware as it runs a wash program. That is why we cannot drive the pump over the D-Bus and keep the original firmware: it would wait for the water, door and valve sensors. We went another way, our own firmware (part three). Later on, the D-Bus can serve as a ready-made serial port on a connector: through it the board running our firmware will be able to talk to our own controller.

⚠ All of this is described for hn's boards; we have not recorded the real exchange between the panel and our board.

The board map

The board map with every node found and every measurement

Everything we found, in one picture: where each node is on the board, which microcontroller pin it leads to and what was measured there. Below is the same as a table, and after that each node on its own, with photos and probe points.

STM32F30x VCT6as it sits on the board: text reads upright,dot in the lower left corner = pin 1pin modes read from the live board on 10.11.2026, read-onlyPin 1 · PE2 · input · where: not needed for now1 PE2Pin 2 · PE3 · input · where: not needed for now2 PE3Pin 3 · PE4 · input · where: not needed for now3 PE4Pin 4 · PE5 · input · where: not needed for now4 PE5Pin 5 · PE6 · input · where: not needed for now5 PE6Pin 6 · VBAT · power / system · where: not needed for now6 VBATPin 7 · PC13 · output, state off mains 1 · firmware: toggled together with PD4 (0x0800d614) · measured: through a diode and a 473 (47 kΩ) resistor to a "1GW 37" transistor; keeps the board powered from mains: PC13 = 1, otherwise the supply shuts down in ≈ 1 s (part five) · where: step 2, relays7 PC13 out=1 ✓ power holdPin 8 · PC14 · input · where: not needed for now8 PC14Pin 9 · PC15 · input · where: not needed for now9 PC15Pin 10 · PF9 · output, state off mains 0 · firmware: the firmware reads it as an input, then switches it on (0x08004354) · where: step 2, relays10 PF9 out=0Pin 11 · PF10 · output, state off mains 0 · firmware: the firmware reads it as an input, then switches it on (0x08004354) · where: step 2, relays11 PF10 out=0Pin 12 · PF0 · input · measured: 80.K resonator (most likely 8 MHz), 1 MΩ between 12 and 13 · where: step 5, crystal12 PF0 ✓ 8 MHzPin 13 · PF1 · input · measured: 80.K resonator (most likely 8 MHz), 1 MΩ between 12 and 13 · where: step 5, crystal13 PF1 ✓ 8 MHzPin 14 · NRST · power / system · measured: X20 pad 3 through a 221 resistor · where: not needed for now14 NRST ✓ NRST X20.3Pin 15 · PC0 · analog · ADC12_IN6 · where: step 4, temperature sensor (candidate)15 PC0 ADCPin 16 · PC1 · analog · ADC12_IN7 · where: step 4, temperature sensor (candidate)16 PC1 ADCPin 17 · PC2 · input · where: not needed for now17 PC2Pin 18 · PC3 · analog · ADC12_IN9 · where: step 4, temperature sensor (candidate)18 PC3 ADCPin 19 · PF2 · analog · ADC12_IN10 · where: step 4, temperature sensor (candidate)19 PF2 ADCPin 20 · VSSA · power / system · where: not needed for now20 VSSAPin 21 · VREF+ · power / system · where: not needed for now21 VREF+Pin 22 · VDDA · power / system · where: not needed for now22 VDDAPin 23 · PA0 · output, state off mains 1 · firmware: switched off at 0x0800d81e · where: step 2, relays23 PA0 out=1Pin 24 · PA1 · analog · ADC1_IN2 · where: step 3, power module and shunts24 PA1 shunt?Pin 25 · PA2 · analog · ADC1_IN3 · where: step 3, power module and shunts25 PA2 OPAMP outPin 26 · PA3 · analog · ADC1_IN4 · measured: heater temperature sensor, X13.5 through 47 kΩ · where: step 4, temperature sensor26 PA3 ADC ✓ NTC X13.5Pin 27 · PF4 · analog · ADC1_IN5 · where: step 4, temperature sensor (candidate)27 PF4 ADCPin 28 · VDD · power / system · where: not needed for now28 VDDPin 29 · PA4 · analog · ADC2_IN1 · where: step 4, temperature sensor (candidate)29 PA4 ADCPin 30 · PA5 · analog · ADC2_IN2 · where: step 4, temperature sensor (candidate)30 PA5 ADCPin 31 · PA6 · analog · ADC2_IN3 · where: step 3, power module and shunts31 PA6 OPAMP outPin 32 · PA7 · analog · ADC2_IN4 · where: step 3, power module and shunts32 PA7 shunt?Pin 33 · PC4 · analog · ADC2_IN5 · where: step 4, temperature sensor (candidate)33 PC4 ADCPin 34 · PC5 · analog · ADC2_IN11 · measured: heater temperature sensor, X13.3 through 47 kΩ · where: step 4, temperature sensor34 PC5 ADC ✓ NTC X13.3Pin 35 · PB0 · analog · ADC3_IN12 · measured: through an 18B (1.5 kΩ) to shunt C1 (power module pin 19 NU); the shunt is 0.41 Ω (a pair of R820 in parallel); plus a 01C (10 kΩ) resistor to 3.3 V, an offset of ≈ 0.43 V with no current · where: step 3, power module and shunts35 PB0 ✓ shunt NUPin 36 · PB1 · analog · ADC3_IN1 · where: step 3, power module and shunts36 PB1 OPAMP outPin 37 · PB2 · analog · ADC2_IN12 · where: step 4, temperature sensor (candidate)37 PB2 ADCPin 38 · PE7 · analog · ADC3_IN13 · where: step 4, temperature sensor (candidate)38 PE7 ADCPin 39 · PE8 · alternate function · TIM1_CH1N · measured: through 1 kΩ to power module pin 5 IN(UL) · where: step 3, power module and shunts39 PE8 TIM1_CH1N ✓ → IN(UL)Pin 40 · PE9 · alternate function · TIM1_CH1 · measured: through 1 kΩ to power module pin 4 IN(UH) · where: step 3, power module and shunts40 PE9 TIM1_CH1 ✓ → IN(UH)Pin 41 · PE10 · alternate function · TIM1_CH2N · measured: through 1 kΩ to power module pin 10 IN(VL) · where: step 3, power module and shunts41 PE10 TIM1_CH2N ✓ → IN(VL)Pin 42 · PE11 · alternate function · TIM1_CH2 · measured: through 1 kΩ to power module pin 9 IN(VH) · where: step 3, power module and shunts42 PE11 TIM1_CH2 ✓ → IN(VH)Pin 43 · PE12 · alternate function · TIM1_CH3N · measured: through 1 kΩ to power module pin 15 IN(WL) · where: step 3, power module and shunts43 PE12 TIM1_CH3N ✓ → IN(WL)Pin 44 · PE13 · alternate function · TIM1_CH3 · measured: through 1 kΩ to power module pin 14 IN(WH) · where: step 3, power module and shunts44 PE13 TIM1_CH3 ✓ → IN(WH)Pin 45 · PE14 · input · where: not needed for now45 PE14Pin 46 · PE15 · analog · ADC4_IN2 · where: step 4, temperature sensor (candidate)46 PE15 ADCPin 47 · PB10 · input · seen on our firmware display: 0 while PB6 pulses, briefly 1 after they stop, then 0; the original firmware reads it as a VCC chain check; where it goes on the board is not traced · where: not needed for now47 PB10 ✓ VCC check?Pin 48 · PB11 · analog · measured: through an 18B (1.5 kΩ) to shunt C3 (power module pin 22 NW); the shunt is 0.41 Ω (a pair of R820 in parallel); plus a 01C (10 kΩ) resistor to 3.3 V, an offset of ≈ 0.43 V with no current · where: step 3, power module and shunts48 PB11 ✓ shunt NWPin 49 · VSS · power / system · where: not needed for now49 VSSPin 50 · VDD · power / system · where: not needed for now50 VDDPin 51 · PB12 · analog · ADC4_IN3 · where: step 3, power module and shunts51 PB12 OPAMP outPin 52 · PB13 · analog · ADC3_IN5 · measured: through an 18B (1.5 kΩ) to shunt C2 (power module pin 20 NV); the shunt is 0.41 Ω (a pair of R820 in parallel); plus a 01C (10 kΩ) resistor to 3.3 V, an offset of ≈ 0.43 V with no current · where: step 3, power module and shunts52 PB13 ✓ shunt NVPin 53 · PB14 · analog · ADC4_IN4 · where: step 3, power module and shunts53 PB14 shunt?Pin 54 · PB15 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relays54 PB15 out=0Pin 55 · PD8 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relays55 PD8 out=0Pin 56 · PD9 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relays56 PD9 out=0Pin 57 · PD10 · output, state off mains 1 · firmware: start-up set of outputs (0x08008a80): switched on · where: step 2, relays57 PD10 out=1Pin 58 · PD11 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relays58 PD11 out=0Pin 59 · PD12 · input · where: not needed for now59 PD12Pin 60 · PD13 · alternate function · TIM4_CH2 · measured: through a 472 (4.7 kΩ) drives the JW2SN relay (pump changeover); timer mode TIM4_CH2 · where: step 2, relays60 PD13 TIM4_CH2 ✓ JW2SN relayPin 61 · PD14 · output, state off mains 0 · firmware: switched on together with PF9/PF10 (0x08004354) · where: step 2, relays61 PD14 out=0Pin 62 · PD15 · alternate function · TIM4_CH4 · where: D-Bus and the zero-cross detector62 PD15 TIM4_CH4Pin 63 · PC6 · alternate function · TIM8_CH1 · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH1) · where: step 3, power module and shunts63 PC6 TIM8_CH1 ✓ OLED SCLPin 64 · PC7 · alternate function · TIM8_CH2 · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH2) · where: step 3, power module and shunts64 PC7 TIM8_CH2 ✓ OLED SDAPin 65 · PC8 · alternate function · TIM8_CH3 · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH3) · where: step 3, power module and shunts65 PC8 TIM8_CH3 ✓ key K1Pin 66 · PC9 · output, state off mains 1 · firmware: start-up set of outputs (0x08008a80): switched on · where: step 2, relays66 PC9 out=1Pin 67 · PA8 · input · where: not needed for now67 PA8Pin 68 · PA9 · alternate function · TIM2_CH3 · measured: through a 472 (4.7 kΩ) drives the right heater relay (point 6 on the driver photo); timer mode TIM2_CH3 · where: step 2, relays68 PA9 TIM2_CH3 ✓ heater relay RPin 69 · PA10 · alternate function · TIM2_CH4 · where: D-Bus and the zero-cross detector69 PA10 TIM2_CH4Pin 70 · PA11 · output, state off mains 1 · firmware: start-up set of outputs (0x08008a80): switched on · where: step 2, relays70 PA11 out=1Pin 71 · PA12 · input · where: not needed for now71 PA12Pin 72 · PA13 · alternate function · SWDIO · measured: X20 pad 2 (SWDIO) · where: not needed for now72 PA13 ✓ SWDIO X20.2Pin 73 · PF6 · output, state off mains 1 · firmware: toggled in a step-by-step sequence with delays (0x08003b80) · where: step 2, relays73 PF6 out=1Pin 74 · VSS · power / system · measured: the middle wire of the heater sensor (X13.4) goes here · where: not needed for now74 VSS ✓ GND X13.4Pin 75 · VDD · power / system · where: not needed for now75 VDDPin 76 · PA14 · alternate function · SWCLK · measured: X20 pad 1 (SWCLK) · where: not needed for now76 PA14 ✓ SWCLK X20.1Pin 77 · PA15 · input · where: not needed for now77 PA15Pin 78 · PC10 · alternate function · TIM8_CH1N · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH1N) · where: step 3, power module and shunts78 PC10 TIM8_CH1N ✓ key K2Pin 79 · PC11 · alternate function · TIM8_CH2N · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH2N) · where: step 3, power module and shunts79 PC11 TIM8_CH2N ✓ key K3Pin 80 · PC12 · alternate function · TIM8_CH3N · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH3N) · where: step 3, power module and shunts80 PC12 TIM8_CH3N ✓ key K4Pin 81 · PD0 · output, state off mains 0 · where: step 2, relays81 PD0 out=0Pin 82 · PD1 · input · where: not needed for now82 PD1Pin 83 · PD2 · input · where: not needed for now83 PD2Pin 84 · PD3 · output, state off mains 1 · firmware: the same step-by-step sequence (0x08003ab0) · where: step 2, relays84 PD3 out=1Pin 85 · PD4 · output, state off mains 1 · firmware: the same step-by-step sequence (0x08003c66) · where: step 2, relays85 PD4 out=1Pin 86 · PD5 · input · firmware: now an input, now an output: looks like bit-banged I²C (EEPROM?) · where: not needed for now86 PD5 *Pin 87 · PD6 · input · firmware: now an input, now an output: looks like bit-banged I²C (EEPROM?) · where: not needed for now87 PD6 *Pin 88 · PD7 · output, state off mains 1 · firmware: toggled on its own (0x0800c18e) · where: step 2, relays88 PD7 out=1Pin 89 · PB3 · input · where: not needed for now89 PB3Pin 90 · PB4 · input · measured: X20 pad 4 · where: not needed for now90 PB4 ✓ X20.4Pin 91 · PB5 · alternate function · TIM3_CH2 · measured: through a 472 (4.7 kΩ) drives the left heater relay (point 1 on the driver photo); timer mode TIM3_CH2 · where: step 2, relays91 PB5 TIM3_CH2 ✓ heater relay LPin 92 · PB6 · input · firmware: its mode changes at run time (0x0801709c) · measured: through a 472 to capacitor C2 of the charge pump ("A7W" → "1GW" → "5BW") → module VCC (pin 3); 1 kHz pulses on PB6 → 13.48 V, no pulses → 0 V · where: not needed for now92 PB6 * ✓ VCC pumpPin 93 · PB7 · input · where: not needed for now93 PB7Pin 94 · BOOT0 · power / system · where: not needed for now94 BOOT0Pin 95 · PB8 · input · where: not needed for now95 PB8Pin 96 · PB9 · input · where: not needed for now96 PB9Pin 97 · PE0 · alternate function · USART1_TX · where: D-Bus and the zero-cross detector97 PE0 USART1_TXPin 98 · PE1 · alternate function · USART1_RX · where: D-Bus and the zero-cross detector98 PE1 USART1_RXPin 99 · VSS · power / system · where: not needed for now99 VSSPin 100 · VDD · power / system · where: not needed for now100 VDDoutput (relays, switches, LEDs) — 17PWM TIM1 — inverter 1PWM TIM8 — inverter 2current: shunts, amplifiers, comparatorsanalog input (sensors, voltages)timer input (pulses, frequency)D-Bus (USART1)debug: SWD, NRST, BOOT0, PB4plain input or not connected (* — the firmware toggles it)power
STM32F30x VCT6 on the board: pins by function (read from the live board on 10.11.2026)STM32F30x VCT6 on the board:pins by function (read from thelive board on 10.11.2026)STM32F30xVCT6Pin 1 · PE2 · input · where: not needed for nowPin 2 · PE3 · input · where: not needed for nowPin 3 · PE4 · input · where: not needed for nowPin 4 · PE5 · input · where: not needed for nowPin 5 · PE6 · input · where: not needed for nowPin 6 · VBAT · power / system · where: not needed for nowPin 7 · PC13 · output, state off mains 1 · firmware: toggled together with PD4 (0x0800d614) · measured: through a diode and a 473 (47 kΩ) resistor to a "1GW 37" transistor; keeps the board powered from mains: PC13 = 1, otherwise the supply shuts down in ≈ 1 s (part five) · where: step 2, relaysPin 8 · PC14 · input · where: not needed for nowPin 9 · PC15 · input · where: not needed for nowPin 10 · PF9 · output, state off mains 0 · firmware: the firmware reads it as an input, then switches it on (0x08004354) · where: step 2, relaysPin 11 · PF10 · output, state off mains 0 · firmware: the firmware reads it as an input, then switches it on (0x08004354) · where: step 2, relaysPin 12 · PF0 · input · measured: 80.K resonator (most likely 8 MHz), 1 MΩ between 12 and 13 · where: step 5, crystalPin 13 · PF1 · input · measured: 80.K resonator (most likely 8 MHz), 1 MΩ between 12 and 13 · where: step 5, crystalPin 14 · NRST · power / system · measured: X20 pad 3 through a 221 resistor · where: not needed for nowPin 15 · PC0 · analog · ADC12_IN6 · where: step 4, temperature sensor (candidate)Pin 16 · PC1 · analog · ADC12_IN7 · where: step 4, temperature sensor (candidate)Pin 17 · PC2 · input · where: not needed for nowPin 18 · PC3 · analog · ADC12_IN9 · where: step 4, temperature sensor (candidate)Pin 19 · PF2 · analog · ADC12_IN10 · where: step 4, temperature sensor (candidate)Pin 20 · VSSA · power / system · where: not needed for nowPin 21 · VREF+ · power / system · where: not needed for nowPin 22 · VDDA · power / system · where: not needed for nowPin 23 · PA0 · output, state off mains 1 · firmware: switched off at 0x0800d81e · where: step 2, relaysPin 24 · PA1 · analog · ADC1_IN2 · where: step 3, power module and shuntsPin 25 · PA2 · analog · ADC1_IN3 · where: step 3, power module and shuntsPin 26 · PA3 · analog · ADC1_IN4 · measured: heater temperature sensor, X13.5 through 47 kΩ · where: step 4, temperature sensorPin 27 · PF4 · analog · ADC1_IN5 · where: step 4, temperature sensor (candidate)Pin 28 · VDD · power / system · where: not needed for nowPin 29 · PA4 · analog · ADC2_IN1 · where: step 4, temperature sensor (candidate)Pin 30 · PA5 · analog · ADC2_IN2 · where: step 4, temperature sensor (candidate)Pin 31 · PA6 · analog · ADC2_IN3 · where: step 3, power module and shuntsPin 32 · PA7 · analog · ADC2_IN4 · where: step 3, power module and shuntsPin 33 · PC4 · analog · ADC2_IN5 · where: step 4, temperature sensor (candidate)Pin 34 · PC5 · analog · ADC2_IN11 · measured: heater temperature sensor, X13.3 through 47 kΩ · where: step 4, temperature sensorPin 35 · PB0 · analog · ADC3_IN12 · measured: through an 18B (1.5 kΩ) to shunt C1 (power module pin 19 NU); the shunt is 0.41 Ω (a pair of R820 in parallel); plus a 01C (10 kΩ) resistor to 3.3 V, an offset of ≈ 0.43 V with no current · where: step 3, power module and shuntsPin 36 · PB1 · analog · ADC3_IN1 · where: step 3, power module and shuntsPin 37 · PB2 · analog · ADC2_IN12 · where: step 4, temperature sensor (candidate)Pin 38 · PE7 · analog · ADC3_IN13 · where: step 4, temperature sensor (candidate)Pin 39 · PE8 · alternate function · TIM1_CH1N · measured: through 1 kΩ to power module pin 5 IN(UL) · where: step 3, power module and shuntsPin 40 · PE9 · alternate function · TIM1_CH1 · measured: through 1 kΩ to power module pin 4 IN(UH) · where: step 3, power module and shuntsPin 41 · PE10 · alternate function · TIM1_CH2N · measured: through 1 kΩ to power module pin 10 IN(VL) · where: step 3, power module and shuntsPin 42 · PE11 · alternate function · TIM1_CH2 · measured: through 1 kΩ to power module pin 9 IN(VH) · where: step 3, power module and shuntsPin 43 · PE12 · alternate function · TIM1_CH3N · measured: through 1 kΩ to power module pin 15 IN(WL) · where: step 3, power module and shuntsPin 44 · PE13 · alternate function · TIM1_CH3 · measured: through 1 kΩ to power module pin 14 IN(WH) · where: step 3, power module and shuntsPin 45 · PE14 · input · where: not needed for nowPin 46 · PE15 · analog · ADC4_IN2 · where: step 4, temperature sensor (candidate)Pin 47 · PB10 · input · seen on our firmware display: 0 while PB6 pulses, briefly 1 after they stop, then 0; the original firmware reads it as a VCC chain check; where it goes on the board is not traced · where: not needed for nowPin 48 · PB11 · analog · measured: through an 18B (1.5 kΩ) to shunt C3 (power module pin 22 NW); the shunt is 0.41 Ω (a pair of R820 in parallel); plus a 01C (10 kΩ) resistor to 3.3 V, an offset of ≈ 0.43 V with no current · where: step 3, power module and shuntsPin 49 · VSS · power / system · where: not needed for nowPin 50 · VDD · power / system · where: not needed for nowPin 51 · PB12 · analog · ADC4_IN3 · where: step 3, power module and shuntsPin 52 · PB13 · analog · ADC3_IN5 · measured: through an 18B (1.5 kΩ) to shunt C2 (power module pin 20 NV); the shunt is 0.41 Ω (a pair of R820 in parallel); plus a 01C (10 kΩ) resistor to 3.3 V, an offset of ≈ 0.43 V with no current · where: step 3, power module and shuntsPin 53 · PB14 · analog · ADC4_IN4 · where: step 3, power module and shuntsPin 54 · PB15 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relaysPin 55 · PD8 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relaysPin 56 · PD9 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relaysPin 57 · PD10 · output, state off mains 1 · firmware: start-up set of outputs (0x08008a80): switched on · where: step 2, relaysPin 58 · PD11 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relaysPin 59 · PD12 · input · where: not needed for nowPin 60 · PD13 · alternate function · TIM4_CH2 · measured: through a 472 (4.7 kΩ) drives the JW2SN relay (pump changeover); timer mode TIM4_CH2 · where: step 2, relaysPin 61 · PD14 · output, state off mains 0 · firmware: switched on together with PF9/PF10 (0x08004354) · where: step 2, relaysPin 62 · PD15 · alternate function · TIM4_CH4 · where: D-Bus and the zero-cross detectorPin 63 · PC6 · alternate function · TIM8_CH1 · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH1) · where: step 3, power module and shuntsPin 64 · PC7 · alternate function · TIM8_CH2 · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH2) · where: step 3, power module and shuntsPin 65 · PC8 · alternate function · TIM8_CH3 · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH3) · where: step 3, power module and shuntsPin 66 · PC9 · output, state off mains 1 · firmware: start-up set of outputs (0x08008a80): switched on · where: step 2, relaysPin 67 · PA8 · input · where: not needed for nowPin 68 · PA9 · alternate function · TIM2_CH3 · measured: through a 472 (4.7 kΩ) drives the right heater relay (point 6 on the driver photo); timer mode TIM2_CH3 · where: step 2, relaysPin 69 · PA10 · alternate function · TIM2_CH4 · where: D-Bus and the zero-cross detectorPin 70 · PA11 · output, state off mains 1 · firmware: start-up set of outputs (0x08008a80): switched on · where: step 2, relaysPin 71 · PA12 · input · where: not needed for nowPin 72 · PA13 · alternate function · SWDIO · measured: X20 pad 2 (SWDIO) · where: not needed for nowPin 73 · PF6 · output, state off mains 1 · firmware: toggled in a step-by-step sequence with delays (0x08003b80) · where: step 2, relaysPin 74 · VSS · power / system · measured: the middle wire of the heater sensor (X13.4) goes here · where: not needed for nowPin 75 · VDD · power / system · where: not needed for nowPin 76 · PA14 · alternate function · SWCLK · measured: X20 pad 1 (SWCLK) · where: not needed for nowPin 77 · PA15 · input · where: not needed for nowPin 78 · PC10 · alternate function · TIM8_CH1N · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH1N) · where: step 3, power module and shuntsPin 79 · PC11 · alternate function · TIM8_CH2N · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH2N) · where: step 3, power module and shuntsPin 80 · PC12 · alternate function · TIM8_CH3N · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH3N) · where: step 3, power module and shuntsPin 81 · PD0 · output, state off mains 0 · where: step 2, relaysPin 82 · PD1 · input · where: not needed for nowPin 83 · PD2 · input · where: not needed for nowPin 84 · PD3 · output, state off mains 1 · firmware: the same step-by-step sequence (0x08003ab0) · where: step 2, relaysPin 85 · PD4 · output, state off mains 1 · firmware: the same step-by-step sequence (0x08003c66) · where: step 2, relaysPin 86 · PD5 · input · firmware: now an input, now an output: looks like bit-banged I²C (EEPROM?) · where: not needed for nowPin 87 · PD6 · input · firmware: now an input, now an output: looks like bit-banged I²C (EEPROM?) · where: not needed for nowPin 88 · PD7 · output, state off mains 1 · firmware: toggled on its own (0x0800c18e) · where: step 2, relaysPin 89 · PB3 · input · where: not needed for nowPin 90 · PB4 · input · measured: X20 pad 4 · where: not needed for nowPin 91 · PB5 · alternate function · TIM3_CH2 · measured: through a 472 (4.7 kΩ) drives the left heater relay (point 1 on the driver photo); timer mode TIM3_CH2 · where: step 2, relaysPin 92 · PB6 · input · firmware: its mode changes at run time (0x0801709c) · measured: through a 472 to capacitor C2 of the charge pump ("A7W" → "1GW" → "5BW") → module VCC (pin 3); 1 kHz pulses on PB6 → 13.48 V, no pulses → 0 V · where: not needed for nowPin 93 · PB7 · input · where: not needed for nowPin 94 · BOOT0 · power / system · where: not needed for nowPin 95 · PB8 · input · where: not needed for nowPin 96 · PB9 · input · where: not needed for nowPin 97 · PE0 · alternate function · USART1_TX · where: D-Bus and the zero-cross detectorPin 98 · PE1 · alternate function · USART1_RX · where: D-Bus and the zero-cross detectorPin 99 · VSS · power / system · where: not needed for nowPin 100 · VDD · power / system · where: not needed for now1–25 →← 51–7526–50 →← 76–100as it sits on the board: text readsupright, dot in the lower left corner= pin 1output (relays, switches, LEDs)— 17Pin 7 · PC13 · output, state off mains 1 · firmware: toggled together with PD4 (0x0800d614) · measured: through a diode and a 473 (47 kΩ) resistor to a "1GW 37" transistor; keeps the board powered from mains: PC13 = 1, otherwise the supply shuts down in ≈ 1 s (part five) · where: step 2, relays7 · PC13 out=1 ✓ power holdPin 10 · PF9 · output, state off mains 0 · firmware: the firmware reads it as an input, then switches it on (0x08004354) · where: step 2, relays10 · PF9 out=0Pin 11 · PF10 · output, state off mains 0 · firmware: the firmware reads it as an input, then switches it on (0x08004354) · where: step 2, relays11 · PF10 out=0Pin 23 · PA0 · output, state off mains 1 · firmware: switched off at 0x0800d81e · where: step 2, relays23 · PA0 out=1Pin 54 · PB15 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relays54 · PB15 out=0Pin 55 · PD8 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relays55 · PD8 out=0Pin 56 · PD9 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relays56 · PD9 out=0Pin 57 · PD10 · output, state off mains 1 · firmware: start-up set of outputs (0x08008a80): switched on · where: step 2, relays57 · PD10 out=1Pin 58 · PD11 · output, state off mains 0 · firmware: start-up set of outputs (0x08008a80): switched off · where: step 2, relays58 · PD11 out=0Pin 61 · PD14 · output, state off mains 0 · firmware: switched on together with PF9/PF10 (0x08004354) · where: step 2, relays61 · PD14 out=0Pin 66 · PC9 · output, state off mains 1 · firmware: start-up set of outputs (0x08008a80): switched on · where: step 2, relays66 · PC9 out=1Pin 70 · PA11 · output, state off mains 1 · firmware: start-up set of outputs (0x08008a80): switched on · where: step 2, relays70 · PA11 out=1Pin 73 · PF6 · output, state off mains 1 · firmware: toggled in a step-by-step sequence with delays (0x08003b80) · where: step 2, relays73 · PF6 out=1Pin 81 · PD0 · output, state off mains 0 · where: step 2, relays81 · PD0 out=0Pin 84 · PD3 · output, state off mains 1 · firmware: the same step-by-step sequence (0x08003ab0) · where: step 2, relays84 · PD3 out=1Pin 85 · PD4 · output, state off mains 1 · firmware: the same step-by-step sequence (0x08003c66) · where: step 2, relays85 · PD4 out=1Pin 88 · PD7 · output, state off mains 1 · firmware: toggled on its own (0x0800c18e) · where: step 2, relays88 · PD7 out=1PWM TIM1 — inverter 1Pin 39 · PE8 · alternate function · TIM1_CH1N · measured: through 1 kΩ to power module pin 5 IN(UL) · where: step 3, power module and shunts39 · PE8 TIM1_CH1N ✓ → IN(UL)Pin 40 · PE9 · alternate function · TIM1_CH1 · measured: through 1 kΩ to power module pin 4 IN(UH) · where: step 3, power module and shunts40 · PE9 TIM1_CH1 ✓ → IN(UH)Pin 41 · PE10 · alternate function · TIM1_CH2N · measured: through 1 kΩ to power module pin 10 IN(VL) · where: step 3, power module and shunts41 · PE10 TIM1_CH2N ✓ → IN(VL)Pin 42 · PE11 · alternate function · TIM1_CH2 · measured: through 1 kΩ to power module pin 9 IN(VH) · where: step 3, power module and shunts42 · PE11 TIM1_CH2 ✓ → IN(VH)Pin 43 · PE12 · alternate function · TIM1_CH3N · measured: through 1 kΩ to power module pin 15 IN(WL) · where: step 3, power module and shunts43 · PE12 TIM1_CH3N ✓ → IN(WL)Pin 44 · PE13 · alternate function · TIM1_CH3 · measured: through 1 kΩ to power module pin 14 IN(WH) · where: step 3, power module and shunts44 · PE13 TIM1_CH3 ✓ → IN(WH)PWM TIM8 — inverter 2Pin 63 · PC6 · alternate function · TIM8_CH1 · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH1) · where: step 3, power module and shunts63 · PC6 TIM8_CH1 ✓ OLED SCLPin 64 · PC7 · alternate function · TIM8_CH2 · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH2) · where: step 3, power module and shunts64 · PC7 TIM8_CH2 ✓ OLED SDAPin 65 · PC8 · alternate function · TIM8_CH3 · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH3) · where: step 3, power module and shunts65 · PC8 TIM8_CH3 ✓ key K1Pin 78 · PC10 · alternate function · TIM8_CH1N · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH1N) · where: step 3, power module and shunts78 · PC10 TIM8_CH1N ✓ key K2Pin 79 · PC11 · alternate function · TIM8_CH2N · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH2N) · where: step 3, power module and shunts79 · PC11 TIM8_CH2N ✓ key K3Pin 80 · PC12 · alternate function · TIM8_CH3N · measured: through 1 kΩ to the empty second power module footprint (TIM8_CH3N) · where: step 3, power module and shunts80 · PC12 TIM8_CH3N ✓ key K4current: shunts, amplifiers,comparatorsPin 24 · PA1 · analog · ADC1_IN2 · where: step 3, power module and shunts24 · PA1 shunt?Pin 25 · PA2 · analog · ADC1_IN3 · where: step 3, power module and shunts25 · PA2 OPAMP outPin 31 · PA6 · analog · ADC2_IN3 · where: step 3, power module and shunts31 · PA6 OPAMP outPin 32 · PA7 · analog · ADC2_IN4 · where: step 3, power module and shunts32 · PA7 shunt?Pin 35 · PB0 · analog · ADC3_IN12 · measured: through an 18B (1.5 kΩ) to shunt C1 (power module pin 19 NU); the shunt is 0.41 Ω (a pair of R820 in parallel); plus a 01C (10 kΩ) resistor to 3.3 V, an offset of ≈ 0.43 V with no current · where: step 3, power module and shunts35 · PB0 ✓ shunt NUPin 36 · PB1 · analog · ADC3_IN1 · where: step 3, power module and shunts36 · PB1 OPAMP outPin 48 · PB11 · analog · measured: through an 18B (1.5 kΩ) to shunt C3 (power module pin 22 NW); the shunt is 0.41 Ω (a pair of R820 in parallel); plus a 01C (10 kΩ) resistor to 3.3 V, an offset of ≈ 0.43 V with no current · where: step 3, power module and shunts48 · PB11 ✓ shunt NWPin 51 · PB12 · analog · ADC4_IN3 · where: step 3, power module and shunts51 · PB12 OPAMP outPin 52 · PB13 · analog · ADC3_IN5 · measured: through an 18B (1.5 kΩ) to shunt C2 (power module pin 20 NV); the shunt is 0.41 Ω (a pair of R820 in parallel); plus a 01C (10 kΩ) resistor to 3.3 V, an offset of ≈ 0.43 V with no current · where: step 3, power module and shunts52 · PB13 ✓ shunt NVPin 53 · PB14 · analog · ADC4_IN4 · where: step 3, power module and shunts53 · PB14 shunt?analog input (sensors, voltages)Pin 15 · PC0 · analog · ADC12_IN6 · where: step 4, temperature sensor (candidate)15 · PC0 ADCPin 16 · PC1 · analog · ADC12_IN7 · where: step 4, temperature sensor (candidate)16 · PC1 ADCPin 18 · PC3 · analog · ADC12_IN9 · where: step 4, temperature sensor (candidate)18 · PC3 ADCPin 19 · PF2 · analog · ADC12_IN10 · where: step 4, temperature sensor (candidate)19 · PF2 ADCPin 26 · PA3 · analog · ADC1_IN4 · measured: heater temperature sensor, X13.5 through 47 kΩ · where: step 4, temperature sensor26 · PA3 ADC ✓ NTC X13.5Pin 27 · PF4 · analog · ADC1_IN5 · where: step 4, temperature sensor (candidate)27 · PF4 ADCPin 29 · PA4 · analog · ADC2_IN1 · where: step 4, temperature sensor (candidate)29 · PA4 ADCPin 30 · PA5 · analog · ADC2_IN2 · where: step 4, temperature sensor (candidate)30 · PA5 ADCPin 33 · PC4 · analog · ADC2_IN5 · where: step 4, temperature sensor (candidate)33 · PC4 ADCPin 34 · PC5 · analog · ADC2_IN11 · measured: heater temperature sensor, X13.3 through 47 kΩ · where: step 4, temperature sensor34 · PC5 ADC ✓ NTC X13.3Pin 37 · PB2 · analog · ADC2_IN12 · where: step 4, temperature sensor (candidate)37 · PB2 ADCPin 38 · PE7 · analog · ADC3_IN13 · where: step 4, temperature sensor (candidate)38 · PE7 ADCPin 46 · PE15 · analog · ADC4_IN2 · where: step 4, temperature sensor (candidate)46 · PE15 ADCtimer input (pulses, frequency)Pin 60 · PD13 · alternate function · TIM4_CH2 · measured: through a 472 (4.7 kΩ) drives the JW2SN relay (pump changeover); timer mode TIM4_CH2 · where: step 2, relays60 · PD13 TIM4_CH2 ✓ JW2SN relayPin 62 · PD15 · alternate function · TIM4_CH4 · where: D-Bus and the zero-cross detector62 · PD15 TIM4_CH4Pin 68 · PA9 · alternate function · TIM2_CH3 · measured: through a 472 (4.7 kΩ) drives the right heater relay (point 6 on the driver photo); timer mode TIM2_CH3 · where: step 2, relays68 · PA9 TIM2_CH3 ✓ heater relayRPin 69 · PA10 · alternate function · TIM2_CH4 · where: D-Bus and the zero-cross detector69 · PA10 TIM2_CH4Pin 91 · PB5 · alternate function · TIM3_CH2 · measured: through a 472 (4.7 kΩ) drives the left heater relay (point 1 on the driver photo); timer mode TIM3_CH2 · where: step 2, relays91 · PB5 TIM3_CH2 ✓ heater relayLD-Bus (USART1)Pin 97 · PE0 · alternate function · USART1_TX · where: D-Bus and the zero-cross detector97 · PE0 USART1_TXPin 98 · PE1 · alternate function · USART1_RX · where: D-Bus and the zero-cross detector98 · PE1 USART1_RXdebug: SWD, NRST, BOOT0, PB4Pin 14 · NRST · power / system · measured: X20 pad 3 through a 221 resistor · where: not needed for now14 · NRST ✓ NRST X20.3Pin 72 · PA13 · alternate function · SWDIO · measured: X20 pad 2 (SWDIO) · where: not needed for now72 · PA13 ✓ SWDIO X20.2Pin 76 · PA14 · alternate function · SWCLK · measured: X20 pad 1 (SWCLK) · where: not needed for now76 · PA14 ✓ SWCLK X20.1Pin 90 · PB4 · input · measured: X20 pad 4 · where: not needed for now90 · PB4 ✓ X20.4Pin 94 · BOOT0 · power / system · where: not needed for now94 · BOOT0plain input or not connected (*— the firmware toggles it)Pin 12 · PF0 · input · measured: 80.K resonator (most likely 8 MHz), 1 MΩ between 12 and 13 · where: step 5, crystal12 · PF0 ✓ 8 MHzPin 13 · PF1 · input · measured: 80.K resonator (most likely 8 MHz), 1 MΩ between 12 and 13 · where: step 5, crystal13 · PF1 ✓ 8 MHzPin 47 · PB10 · input · seen on our firmware display: 0 while PB6 pulses, briefly 1 after they stop, then 0; the original firmware reads it as a VCC chain check; where it goes on the board is not traced · where: not needed for now47 · PB10 ✓ VCC check?Pin 86 · PD5 · input · firmware: now an input, now an output: looks like bit-banged I²C (EEPROM?) · where: not needed for now86 · PD5 *Pin 87 · PD6 · input · firmware: now an input, now an output: looks like bit-banged I²C (EEPROM?) · where: not needed for now87 · PD6 *Pin 92 · PB6 · input · firmware: its mode changes at run time (0x0801709c) · measured: through a 472 to capacitor C2 of the charge pump ("A7W" → "1GW" → "5BW") → module VCC (pin 3); 1 kHz pulses on PB6 → 13.48 V, no pulses → 0 V · where: not needed for now92 · PB6 * ✓ VCC pumppins: 1–5, 8–9, 17, 45, 59, 67,71, 77, 82–83, 89, 93, 95–96powerPin 74 · VSS · power / system · measured: the middle wire of the heater sensor (X13.4) goes here · where: not needed for now74 · VSS ✓ GND X13.4pins: 6, 20–22, 28, 49–50, 75,99–100pin modes read from the live board on10.11.2026, read-only
All 100 microcontroller pins in the same orientation as on the board: the marking reads upright, the dot at the bottom left marks pin 1, and the numbering runs anticlockwise from there. The colour shows what the pin does on the live board under the original firmware; "out=1" or "out=0" is the state an output was in without mains. A ✓ marks what continuity testing has found.
The STM32 microcontroller on the board with the number and name of every pin
Every pin's number and name are right on the photo, so there is no need to count. Every fifth pin is labelled in yellow. Click to enlarge; the enlarged photo can be dragged with the mouse. Green with a ✓ marks what continuity testing has found.

Points found

STM32 close-up: the pins we traced and where they go
MCU pinWhatWhere on the boardWhat was measured
39–44 (PE8–PE13)power module inputs, timer TIM1through 102 (1 kΩ) to FSB50550AB pins 4, 5, 9, 10, 14, 15our stage 3 test (our firmware, 20 kHz PWM): each input has its own pin; at 50 % PWM the sum of the voltages on a phase's high-side and low-side inputs is ≈ 3.0 V instead of 3.3 V, so the 2 µs dead time is there
35 (PB0), 52 (PB13), 48 (PB11)phase shunts U, V, W → TIM1 protection comparators; U and V also via op-amps to the ADCthrough 18B (1.5 kΩ) to R820 pairs; plus 01C (10 kΩ) to 3.3 Vshunt 0.41 Ω (two R820 in parallel); ≈ 0.43 V on the pin with no current; protection trips at ≈ 2.9 A [calculated]
91 (PB5), 68 (PA9)ALZ51B12T heater relays, left and rightthrough 472 (4.7 kΩ) to the 1GW transistors (points 1 and 6)0.70 and 0.71 V at the transistor input when the pin is "1"
60 (PD13)JW2SN relay: off is our pump, on is the drain pumpthrough 472 (4.7 kΩ) to a transistor; contacts to connector X5_10.756 V at the transistor input when the pin is "1"
92 (PB6)pulses for the charge pump that turns on the power module's driver supply (VCC)through 472 (4.7 kΩ) to a capacitor and the "A7W" diode pair; then the "1GW" and "5BW" transistorsmodule VCC: 0 V without pulses, 13.48 V with 1 kHz pulses
47 (PB10)apparently feedback from the VCC chainnot traced0 while the pulses run; briefly 1 when they stop
7 (PC13)keeps the board powered from mainsthrough a diode and 473 (47 kΩ) to the "1GW 37" transistor by the power supplyat "1" the supply holds (VDDA 3373–3375 mV on mains); without it the board dies in ≈ 1 s
34 (PC5), 26 (PA3)two temperature sensors on the heater, tables 1 and 2X13.3 and X13.5 through 473 (47 kΩ); the middle X13.4 is ground22.7 and 22.6 °C in the room; 4091–4093 of 4095 with no sensor
12 (PF0), 13 (PF1)8 MHz resonator80.K ceramic resonator, 1 MΩ (105) between the pinsour firmware runs from it at 72 MHz, and the dead time comes out as calculated
63–65 (PC6–PC8), 78–80 (PC10–PC12)TIM8 outputs for the missing second inverter → display and buttonsthrough 102 (1 kΩ) to the empty second power module footprintthe display answers at address 0x3C with no transfer errors
76 (PA14), 72 (PA13), 14 (NRST)SWD: SWCLK, SWDIO, resetpads X20.1, X20.2, X20.3 (NRST through 220 Ω)we read and write the firmware through them
90 (PB4)freepad X20.4we found no access to it in the original firmware's code
—ground and 3.3 Vpads X20.5 and X20.63.26 V from the ST-Link; 3.35 V on mains with the original firmware
97 (PE0), 98 (PE1)D-Bus (USART1)not found yet—
—the power module's DC busFSB50550AB pin 17, the big capacitor296–300 V on mains

Relays

The board has three relays with 12 V coils: two 16 A Panasonic ALZ51B12T switch the heater, and one 5 A JW2SN-B-DC12V switches the power module's phases between the two pumps. Each relay coil is switched by its own transistor, and the transistor by a microcontroller pin through a 472 (4.7 kΩ) resistor.

Heater relay drivers: 0.70 and 0.71 V at the transistor inputs
The numbers are probe points. The photo is turned the same way as the microcontroller on the pin-numbered photo. Both transistors are marked 1GW; the left one drives the left relay, the right one the right relay.
PointWhat it isWhat was measured
1the end of resistor 473 (47 kΩ) next to the left transistorthrough a 472 resistor (4.7 kΩ; the meter shows 4.6 kΩ on the board) to pin 91 (PB5): the left heater relay
6the end of resistor 473 next to the right transistorthrough the same kind of 472 to pin 68 (PA9): the right heater relay

The upper ALZ51B12T (left on the driver photo) is driven by pin 91, the lower one (right) by pin 68; the two switch the heater on together. The JW2SN relay is driven by pin 60, and its contacts switch the module's three phases between the pumps (connector X5_1).

The 1GW marking most likely means a BC847C NPN transistor (code 1G, W is the factory mark), but other parts use the same code too. The relay candidates the original firmware's code suggested (pins 10, 11, 61) were not confirmed.

Under the original firmware all three pins are in timer mode (PB5 TIM3_CH2, PA9 TIM2_CH3, PD13 TIM4_CH2): the coil is first pulled in with a full signal, then held with ≈ 16 kHz PWM at 70 % so it runs cooler. Our own firmware does the same (version 25, not yet written to the board; part three).

How to test the relays off mains. The ST-Link powers the board at 3.3 V; the coils need 12 V, so the relays will not click. With a multimeter we measure the transistor input, points 1 and 6 and the JW2SN transistor input, to ground: ≈ 0.7 V means the pin is driving "1" and the transistor is on. That is how we checked all three relays: 0.70 V, 0.71 V, and 0.756 V on the JW2SN (part three). No separate 12 V supply for the coils is needed for this.

Power module and shunts

Six switch inputs connect the FSB50550AB to the microcontroller, module pins 4, 5, 9, 10, 14, 15, plus pin 16 (Vts, the module temperature, to an analog input; we have not found that pin yet). The phase shunts sit next to the module.

FSB50550AB: 0.41 Ω shunts, VCC 13.48 V, 296–300 V bus
The letters are probe areas; the module's pin numbers and names are labelled right on the photo, taken from the datasheet. Yellow pins run to the microcontroller, red ones to the shunts. The photo is turned the same way as the microcontroller on the pin-numbered photo. The module pinout is in the manufacturer's datasheet: FSB50550AB-D.pdf · 1.5 MB Green with a ✓ marks what continuity testing has found.
  • Area A: a column of 102 (1 kΩ) and 104 (100 kΩ) resistors by the module's control pins. The ends of the 102 resistors that do not go to the module lead to pins 39–44, each input through its own 1 kΩ: 4 IN(UH) → 40 PE9 (TIM1_CH1), 5 IN(UL) → 39 PE8 (TIM1_CH1N), 9 IN(VH) → 42 PE11 (TIM1_CH2), 10 IN(VL) → 41 PE10 (TIM1_CH2N), 14 IN(WH) → 44 PE13 (TIM1_CH3), 15 IN(WL) → 43 PE12 (TIM1_CH3N). So TIM1 drives the module: the high-side switches are on the main channels, the low-side ones on the complementary ones.
  • Areas C1, C2, C3: three pairs of R820 resistors (0.82 Ω: the R is the decimal point). These are the three phase shunts, two in parallel each: we measured 0.41 Ω. Each pair goes through an 18B resistor (EIA-96 code, 1.5 kΩ; the meter shows 1.325 kΩ on the board): C1, pin 19 NU → 35 PB0; C2, pin 20 NV → 52 PB13; C3, pin 22 NW → 48 PB11. All three pins are comparator inputs that shut TIM1 down on overcurrent; the TIM8 protection pins (24, 32, 53) do not lead to the shunts.
  • Offset. Each of these three pins also has a 01C (10 kΩ) resistor to 3.3 V: ≈ 0.43 V on the pin with no current (the meter reads 0.4272 V), which is what the calculation for such a divider gives.
  • Area D: the dot on the package, module pin 1. The numbering starts from it: 1–16 along the bottom row right to left (the module has no pins 6 and 11), 17–23 along the top row, also right to left.

The comparator does not see the shunt voltage itself but 10/11.5 of it plus 0.43 V. So the protection trips at ≈ 2.9 A [calculated], below the module's pulse limit (5 A for no more than 100 ms). How the original firmware sets this up, and how we repeated it, is in part three. The same shunts also feed the U and V phase currents to the ADC: pin 35 through op-amp OPAMP3, pin 52 through OPAMP4. Pin 48 (phase W) has no ADC channel, only a comparator input.

Module driver supply and keeping the board powered

Two pins without which the board does not work on mains were revealed not by continuity testing but by our firmware's failures: until it did the same as the original, the board did not work on mains.

  • Pin 7 (PC13) keeps the board powered. As long as it is "1", the power supply runs; without it the board dies on mains in about a second. The pin leads through a diode and a 473 (47 kΩ) resistor to the "1GW 37" transistor by the power supply. How we tracked it down is in part three.
  • Pin 92 (PB6) turns on the power module's driver supply (VCC, pins 3, 8, 13). A steady "1" will not do here: it takes pulses. Through a 472 (4.7 kΩ) resistor and a capacitor they reach a diode charge pump (the "A7W" part, two diodes in series), which turns on the "1GW" and "5BW" transistors that feed 13.5 V to the module. Without pulses VCC is 0 V and the module does not switch any of its transistors on; with 1 kHz pulses it is 13.48 V. The original firmware toggles PB6 in software, and on a fault turns it into an input and locks its configuration until a restart. Meanwhile it reads pin 47 (PB10), apparently to check that the chain has worked. The details, with photos and measurements, are in part three.

Heater temperature sensor

The heater sensor has three grey wires: 10 kΩ between the 1st and 2nd, 10 kΩ between the 2nd and 3rd. These are two thermistors sharing the middle wire. On the board the wires arrive at connector X13, pins 3, 4 and 5. The middle one, X13.4, goes to ground, so both thermistors have one end on ground and the other on an analog input of its own.

Sensor wireMCU pinResistor to pinFirmware table
X13.334 (PC5)473 (47 kΩ; 46 kΩ measured on the board)1
X13.4 (middle)ground: 74 (VSS)——
X13.526 (PA3)473 (47 kΩ; 46 kΩ measured on the board)2

With no sensor the input reads close to full scale, 4091–4093, so there is a resistor to 3.3 V somewhere on the board. We have not measured its value: the original firmware's tables already account for the divider, and with them our firmware shows the right degrees (part three).

Resonator

There is a clock source next to pins 12 and 13.

WhatResult
marking80.K
what it isan 8 MHz ceramic resonator with built-in capacitors: 6 pads on the board but really 3 terminals
outer pinspins 12 (PF0, oscillator input) and 13 (PF1, oscillator output)
between thema 105 resistor, 1 MΩ (10 × 10⁵ Ω), which is the usual way to wire the oscillator
middle pinthe continuity test shows pin 21 (VREF+). On a resonator like this the middle pin normally goes to ground: it needs checking again against pins 20 (VSSA) and 74 (VSS)

Our firmware runs from this resonator at 72 MHz (8 MHz × 9), as the original does. A ceramic resonator is less accurate than a crystal: its frequency can be off by about half a percent. That is fine for the serial port and the inverter PWM; it would not do for a real-time clock, but we do not need one.

Connectors

WhatBoard connectorPinsWire colours
pump, three phasesX5_1, through the JW2SN relay——
heater temperature sensor (3 wires)X133, 4, 5all three grey

We have not yet traced the heater and mains input connectors, or the pins carrying phases U, V, W (what is still unknown).

Free pins for a display and buttons

Pins 63–65 and 78–80 via 1 kΩ to the empty footprint holes: display and buttons

The original firmware sets up the six TIM8 outputs for a second inverter, but our board does not have that inverter: the 1 kΩ resistors are fitted, while the module footprint is empty. Nothing sits behind those resistors on our board, so using these pins takes nothing away from any sensor. We used them for a small I²C display with four buttons (part three):

TIM8 outputs: 1 kΩ resistors under the empty second power module footprint and the microcontroller pins they lead to
The colours come from the tracing: each resistor and the pin it leads to.
DisplayMicrocontroller pinWhere to solder
SCL63 (PC6)the footprint hole behind the 1 kΩ resistor
SDA64 (PC7)the same
K165 (PC8)the same
K278 (PC10)the same
K379 (PC11)the same
K480 (PC12)the same
VCC3.3 Vpad 6 of connector X20
GNDgroundpad 5 of connector X20

A 1 kΩ resistor in the line bothers neither the buttons nor the display at ordinary I²C speed: the display answers at address 0x3C without a single transfer error. One more free pin is 90 (PB4) on pad 4 of connector X20: we found no access to it in the original firmware's code.

⚠ On mains, the board ground is at mains potential, and so are the display and the buttons. So on mains the display with its buttons runs only inside a closed insulated enclosure, and we do not touch the buttons.

Every pin: what the original firmware does with it and what is on the board

What the original firmware's code suggested

Before any tracing we searched the code for the pins the program switches. The search was static, so these were hints; here is what became of them:

What the firmware doesPinsWhat it turned out to be
reads two pins as inputs and, depending on them, sets three outputsPF9, PF10, PD14neither the relays nor the driver supply; most likely recognising the board variant
an initial set of outputs right after start-upPA11, PC9, PD10 to 1; PD8, PD9, PD11, PB15, PF6 to 0a safe state after power-on
a step-by-step sequence with pausesPF6, PD3, PD4, PC13PC13 keeps the board powered; the rest is unknown
pins that are sometimes inputs, sometimes outputsPD5, PD6most likely bit-banged I²C to the EEPROM
overcurrent protection comparator inputsPB0, PB13, PB11 → TIM1; PA1, PA7, PB14 → TIM8the shunts are on the TIM1 trio; the TIM8 trio does not lead to the shunts
current op-amp outputsPA2, PA6, PB1, PB12the amplified shunt signal goes to the ADC inside the chip; on the board these pins float

Which pin belongs to which comparator and op-amp comes from ST's reference manual, not from measurement. It fits with all these pins being in analog mode on the live board.

Pin modes on the live board under the original firmware:

ModePins
output17
analog input23
alternate function (timers, ports, SWD)21
plain input or unconnected26
power and service pins (NRST, BOOT0, VBAT)13
All pins: the original firmware and what is on the board

Mark *: "floating" comes from the pull-up/pull-down test with the sensors disconnected (how we went about it). "Reads" means it was found in the original firmware's code. The firmware picks some pins at run time from tables, and a plain reading of the code misses such places, so "not configured" only means we found no access to the pin. Power pins and BOOT0 are not in the table.

PinPortOriginal firmwareOn the board
1PE2not configuredheld by external circuitry (not traced)
2PE3not configuredheld by external circuitry (not traced)
3PE4not configuredheld by external circuitry (not traced)
4PE5not configuredheld by external circuitry (not traced)
5PE6not configuredheld by external circuitry (not traced)
7PC13output (currently 1)through a diode and 473 (47 kΩ) to the "1GW 37" transistor: keeps the board powered from mains
8PC14not configuredheld by external circuitry (not traced)
9PC15not configuredheld by external circuitry (not traced)
10PF9output (currently 0); also reads itheld by external circuitry (not traced); most likely recognising the board variant
11PF10output (currently 0); also reads itheld by external circuitry (not traced); most likely recognising the board variant
12PF0clock oscillator (external resonator)80.K resonator, 8 MHz; 1 MΩ between 12 and 13
13PF1clock oscillator (external resonator)80.K resonator, 8 MHz; 1 MΩ between 12 and 13
14NRSTresetpad X20.3 through 220 Ω
15PC0analog input ADC12_IN6held by external circuitry (not traced)
16PC1analog input ADC12_IN7held by external circuitry (not traced)
17PC2reads it as an inputheld by external circuitry (not traced)
18PC3analog input ADC12_IN9held by external circuitry (not traced)
19PF2analog input ADC12_IN10held by external circuitry (not traced)
23PA0output (currently 1)held by external circuitry (not traced)
24PA1analog input ADC1_IN2; OPAMP1 and COMP1 input (TIM8 protection)held by external circuitry (not traced); does not lead to the shunts
25PA2analog input ADC1_IN3; OPAMP1 output → ADCfloating: nothing on the board holds the level*
26PA3analog input ADC1_IN4heater temperature sensor, X13.5 through 47 kΩ; table 2
27PF4analog input ADC1_IN5held by external circuitry (not traced)
29PA4analog input ADC2_IN1; also DAC1 channel 1 outputfloating: nothing on the board holds the level*
30PA5analog input ADC2_IN2; also DAC1 channel 2 outputheld by external circuitry (not traced)
31PA6analog input ADC2_IN3; OPAMP2 output → ADCfloating: nothing on the board holds the level*
32PA7analog input ADC2_IN4; OPAMP2 and COMP2 input (TIM8 protection)held by external circuitry (not traced); does not lead to the shunts
33PC4analog input ADC2_IN5held by external circuitry (not traced)
34PC5analog input ADC2_IN11heater temperature sensor, X13.3 through 47 kΩ; table 1
35PB0analog input ADC3_IN12; OPAMP3 and COMP4 input (TIM1 protection)phase U shunt (C1, pin 19 NU) via 18B; 01C to 3.3 V; U current via OPAMP3 to the ADC
36PB1analog input ADC3_IN1; OPAMP3 output → ADCfloating: nothing on the board holds the level*
37PB2analog input ADC2_IN12held by external circuitry (not traced)
38PE7analog input ADC3_IN13held by external circuitry (not traced)
39PE8peripheral pin: TIM1_CH1Nthrough 1 kΩ to power module pin 5 IN(UL)
40PE9peripheral pin: TIM1_CH1through 1 kΩ to power module pin 4 IN(UH)
41PE10peripheral pin: TIM1_CH2Nthrough 1 kΩ to power module pin 10 IN(VL)
42PE11peripheral pin: TIM1_CH2through 1 kΩ to power module pin 9 IN(VH)
43PE12peripheral pin: TIM1_CH3Nthrough 1 kΩ to power module pin 15 IN(WL)
44PE13peripheral pin: TIM1_CH3through 1 kΩ to power module pin 14 IN(WH)
45PE14reads it as an inputheld by external circuitry (not traced)
46PE15analog input ADC4_IN2held by external circuitry (not traced)
47PB10reads it as an inputfloating*; apparently feedback from the module driver supply (not traced)
48PB11COMP6 input (TIM1 protection); no ADC channelphase W shunt (C3, pin 22 NW) via 18B; 01C to 3.3 V
51PB12analog input ADC4_IN3; OPAMP4 output → ADCfloating: nothing on the board holds the level*
52PB13analog input ADC3_IN5; OPAMP4 and COMP5 input (TIM1 protection)phase V shunt (C2, pin 20 NV) via 18B; 01C to 3.3 V; V current via OPAMP4 to the ADC
53PB14analog input ADC4_IN4; COMP3 input (TIM8 protection)held by external circuitry (not traced); does not lead to the shunts
54PB15output (currently 0); also reads itfloating: nothing on the board holds the level*
55PD8output (currently 0)floating: nothing on the board holds the level*
56PD9output (currently 0)held by external circuitry (not traced)
57PD10output (currently 1)held by external circuitry (not traced)
58PD11output (currently 0)floating: nothing on the board holds the level*
59PD12not configuredheld by external circuitry (not traced)
60PD13peripheral pin: TIM4_CH2through 472 (4.7 kΩ) to the JW2SN relay transistor (pump changeover); 0.756 V at the transistor input at "1"
61PD14output (currently 0); also reads itheld by external circuitry (not traced); most likely recognising the board variant
62PD15peripheral pin: TIM4_CH4floating: nothing on the board holds the level*
63PC6peripheral pin: TIM8_CH1through 1 kΩ to the empty second power module footprint, display: SCL
64PC7peripheral pin: TIM8_CH2through 1 kΩ to the empty second power module footprint, display: SDA
65PC8peripheral pin: TIM8_CH3through 1 kΩ to the empty second power module footprint, button K1
66PC9output (currently 1)held by external circuitry (not traced)
67PA8reads it as an inputfloating: nothing on the board holds the level*
68PA9peripheral pin: TIM2_CH3through 472 (4.7 kΩ) to the right heater relay transistor (point 6 on the driver photo); 0.71 V at "1"
69PA10peripheral pin: TIM2_CH4floating: nothing on the board holds the level*
70PA11output (currently 1)held by external circuitry (not traced)
71PA12reads it as an active-low inputfloating: nothing on the board holds the level*
72PA13peripheral pin: SWDIOpad X20.2
73PF6output (currently 1); also reads it; later switched by the firmware's sequenceheld by external circuitry (not traced)
76PA14peripheral pin: SWCLKpad X20.1
77PA15not configuredheld by external circuitry (not traced)
78PC10peripheral pin: TIM8_CH1Nthrough 1 kΩ to the empty second power module footprint, button K2
79PC11peripheral pin: TIM8_CH2Nthrough 1 kΩ to the empty second power module footprint, button K3
80PC12peripheral pin: TIM8_CH3Nthrough 1 kΩ to the empty second power module footprint, button K4
81PD0output (currently 0); also reads itheld by external circuitry (not traced)
82PD1reads it as an inputfloating: nothing on the board holds the level*
83PD2reads it as an inputfloating: nothing on the board holds the level*
84PD3output (currently 1)held by external circuitry (not traced)
85PD4output (currently 1)floating: nothing on the board holds the level*
86PD5reads it as an input; sometimes an input, sometimes an outputheld by external circuitry (not traced); most likely bit-banged I²C to the EEPROM
87PD6sometimes an input, sometimes an outputheld by external circuitry (not traced); most likely bit-banged I²C to the EEPROM
88PD7output (currently 1)held by external circuitry (not traced)
89PB3not configuredheld by external circuitry (not traced)
90PB4not configuredpad X20.4; free
91PB5peripheral pin: TIM3_CH2through 472 (4.7 kΩ) to the left heater relay transistor (point 1 on the driver photo); 0.70 V at "1"
92PB6toggles it in software (pulses)through 472 (4.7 kΩ) to the "A7W" charge pump that turns on the module driver VCC
93PB7interrupt EXTI7floating: nothing on the board holds the level*
95PB8not configuredheld by external circuitry (not traced)
96PB9not configuredheld by external circuitry (not traced)
97PE0peripheral pin: USART1_TX (D-Bus)held by external circuitry (not traced)
98PE1peripheral pin: USART1_RX (D-Bus); interrupt EXTI1held by external circuitry (not traced)

What is still unknown

This was enough for our own firmware, which already clicks the relays, shows degrees and runs the pump. What remains unknown:

  • connectors: which pins carry the power module's phases U, V, W, and where the heater and mains come in;
  • the DC bus voltage divider: a chain of high-value resistors should run from the "+" of the big capacitor to an analog input; we have found neither the values nor the pin, and the original firmware divides by this voltage in its field-oriented control;
  • SEN013DG (a chip that disconnects the mains voltage sensing resistors in standby; see part one): which pin its control input goes to;
  • module temperature: which pin FSB50550AB pin 16 (Vts) goes to;
  • D-Bus: which connector pins 97 and 98 go to and which parts are on the way; the VBUS voltage;
  • mains zero-cross detector: whether there is one and on which pin;
  • the 12 V switch: whether +12 V reaches the relay coils directly or through another transistor (candidates PF6, PD3, PD4); the coil resistance;
  • pin 47 (PB10) and the other two leads of the "1GW 37" transistor behind pin 7: where they go;
  • the resonator's middle pin: check it against ground once more;
  • the resistor to 3.3 V on the temperature sensor inputs;
  • pins 67, 71, 82, 83, 93, which the original firmware reads: which connectors they go to.

What use this is to us

What we learned, and what we took from it:

  • From part one: no read protection, copy saved → the board can always be returned to its factory state (part one), so we can try our own things freely.
  • CRC self-test → the original firmware cannot be patched, and without the dishwasher's sensors it will not run the pump, so our way is our own firmware (part three).
  • PWM pins, frequency, dead time, comparator protection → our firmware sets up TIM1, the 2 µs dead time and the hardware overcurrent protection the same way (part three).
  • PC13 keeps the board powered, PB6 pulses give module VCC → without them the board dies on mains and the module switches nothing on; we repeated both (keeping power, VCC).
  • The motor set for our pump and the JW2SN relay → speeds 1500…5000 rpm, three pole pairs; we never switch the JW2SN on (stage 4).
  • Heater rules and relay drive → the "water flows" current threshold, sensor limits, relay order and holding at 70 %, as in the original (heater, relays).
  • NTC tables → degrees without our own calibration (stage 2).
  • Field-oriented control of the pump → motor parameters and start-up order for the next step of our firmware (parameters).
  • Free TIM8 pins → a display and buttons to see the firmware's state without a computer (display).
  • D-Bus: 9600 8N1 → in future, a link between the board and our own controller.

Next

The map was enough to write our own firmware: it already clicks the relays, shows degrees and runs the pump on mains. What comes next is in part three: running the pump with water, porting field-oriented control from the original firmware, heating. We will fill in the map from what is still unknown as the items become needed, starting with the DC bus voltage divider for field-oriented control.

For anyone repeating this

Before continuity testing

  1. The board has been disconnected from mains for at least 10 minutes, and the ST-Link is disconnected too.
  2. With the multimeter on DC volts, check the big capacitor: it must read under 5 V. If it is higher, discharge it through a 2–10 kΩ 5 W resistor and check again.
  3. Meter ranges: continuity (beeper) and resistance on 2 kΩ and 20 kΩ. Many signals pass through a resistor of 100 Ω to 10 kΩ: the beeper stays silent while the meter shows the value. Write the number down. On the board the reading can be lower than the marked value because of parallel paths, so measure with both probe polarities.
  4. The microcontroller pins are thin, at 0.5 mm pitch. Tape a sewing needle to the probe. Touch the "knee" of the pin or the pad of a resistor next to it.
  5. If neither end of a resistor beeps straight to the microcontroller, the track goes through a via to the other side of the board: probe from that via.

Reading the live board's registers

The board is powered only by the ST-Link, the original firmware is running, and we read the registers "hot" (mode=HOTPLUG) without stopping it. Every command only reads; the output is hexadecimal words. Below are RCC, one port (GPIOE), TIM1, TIM8 and USART1; the other ports were read the same way at a 0x400 step:

STM32_Programmer_CLI -c port=SWD mode=HOTPLUG freq=100 -r32 0x40021000 0x20
STM32_Programmer_CLI -c port=SWD mode=HOTPLUG freq=100 -r32 0x48001000 0x28
STM32_Programmer_CLI -c port=SWD mode=HOTPLUG freq=100 -r32 0x40012C00 0x50
STM32_Programmer_CLI -c port=SWD mode=HOTPLUG freq=100 -r32 0x40013400 0x50
STM32_Programmer_CLI -c port=SWD mode=HOTPLUG freq=100 -r32 0x40013800 0x14
AddressWhat is there
0x40021000RCC, the clocks
0x48000000…0x48001400GPIOA…GPIOF, the mode of every pin (0x400 step)
0x40012C00, 0x40013400timers TIM1 and TIM8, the inverter PWM
0x40013800USART1, configuration registers only, up to 0x10
0x4001001C…0x40010044comparators and op-amps
0x40007400DAC

What else can be read the same way to settle a question without a multimeter:

What we readAddressWhat we learn
ADC 1–40x50000000, …0100, …0400, …0500which channels the program samples and in what order
SYSCFG, EXTI0x40010000, 0x40010400which pin the interrupt comes from, on which edge
timers TIM2, TIM3, TIM40x40000000, …0400, …0800pulse capture or PWM, frequencies
DMA1, DMA20x40020000, 0x40020400where in memory the measurements go
STM32_Programmer_CLI -c port=SWD mode=HOTPLUG freq=100 -r32 0x50000000 0x40
STM32_Programmer_CLI -c port=SWD mode=HOTPLUG freq=100 -r32 0x40010000 0x1C
STM32_Programmer_CLI -c port=SWD mode=HOTPLUG freq=100 -r32 0x40000000 0x34

⚠ We deliberately skip the serial port data registers (from 0x24 in USART1), the ADC data registers and the timer capture registers: reading them clears their flags, and the program on the board could lose a byte or a measurement.

Article changelog

  • 2026-11-18 — the series was restructured from five parts into three. This part brings together the former part three (what the firmware does: chip peripherals, inverters, NTC, D-Bus, inputs) and part four (the board map and continuity testing); the firmware layout moved to part one. A new "board map" picture; one summary table of points found instead of seven step tables; the all-pins table updated (92 PB6 pulses for module VCC, 47 PB10 feedback, 7 PC13, NRST 14, SWD, display and buttons, shunts, relays, sensors); a short account of field-oriented control of the pump in the original firmware; "What use this is" and "Next" now follow our own firmware; the empty "not measured yet" tables replaced with a "What is still unknown" list; relays off mains are tested at the transistor input with the ST-Link rather than with a 12 V supply; preparation for continuity testing and register reading moved to an appendix.
  • 2026-11-16 — corrected: pin 48 (PB11) has no ADC channel, only a comparator and op-amp input; the table wrongly said "ADC12_IN14". Pin 7 (PC13) keeps the board powered from mains.
  • 2026-11-15 — "Every pin" section: all 87 pins from the registers, the original firmware's code, the pull-up/pull-down test and continuity tracing; the inputs the firmware reads (67, 71, 47, 82, 83, and 93 as an interrupt); the TIM8 outputs (63–65, 78–80) lead to the empty second-module footprint and go to the display and buttons; marked-up photo; interrupts and timers in "A second register read".
  • 2026-11-15 — TIM1 drives the FSB50550AB, the TIM8 outputs lead to the empty second-module footprint; timers TIM2–TIM4 drive the relays; "Which inputs the firmware reads" section (direct reads, an active-low input, EXTI7 and EXTI1 interrupts).
  • 2026-11-12 — the sections on working safely on mains and the start-up order moved to the part about our own firmware.
  • 2026-11-12 — no series incandescent lamp.
  • 2026-11-12 — "Board ground and mains" section: what happens to USB, how to check with a multimeter off mains, how we work without a USB isolator.
  • 2026-11-12 — two pumps: ours, 9001.230.206 (BSH 12019637), and the drain pump C00297919 (54 V, 55 Hz, 50 W); with the JW2SN relay off, ours is connected. New start-up order: from the board itself, no separate power supplies.
  • 2026-11-12 — relays: the heater on pins 91 (PB5) and 68 (PA9), the JW2SN on 60 (PD13), all through 4.7 kΩ and in timer mode (probably coil PWM).
  • 2026-11-12 — everything found by continuity testing marked on the pin diagram (✓) and on the microcontroller and module photos (green, ✓); the phase shunts go to pins 35, 52, 48 through 1.5 kΩ (18B), so the protection is TIM1's too.
  • 2026-11-12 — the power module inputs go to pins 39–44 through 1 kΩ: TIM1 drives the module.
  • 2026-11-12 — clock source: an 80.K resonator (most likely 8 MHz) on pins 12 and 13 with 1 MΩ between them; middle pin still being checked.
  • 2026-11-12 — every module pin labelled on its photo from the datasheet; pins 4, 5, 9, 10, 14, 15 and 16 run to the microcontroller.
  • 2026-11-12 — photos with probe points by the relay drivers and the power module (turned the same way as the microcontroller); the FSB50550AB datasheet as a file.
  • 2026-11-12 — heater temperature sensor (three grey wires): X13.3 → 47 kΩ → pin 34 (PC5), X13.5 → 47 kΩ → pin 26 (PA3), the middle X13.4 is ground.
  • 2026-11-12 — photo of the microcontroller with every pin numbered; first measurements: two ALZ51B12T relays switch the heater, the JW2SN switches the power module outputs between the pump with the heater and the drain pump (connector X5_1), the temperature sensor is on connector X13, pins 3–5, with a 47 kΩ resistor from X13.3.
  • 2026-11-12 — "What to measure first" section: the minimum for the first firmware (relays and temperature, no motor) and how to power the board without mains.
  • 2026-11-11 — first draft of the board map: goals and limits, what is known from the live board and the firmware, the pin diagram, the testing order with empty result tables, the second register read.
  • 2026-11-10 — first draft of the firmware analysis: firmware layout, bootloader, chip peripherals from the live board, two inverters, NTC tables, self-test, D-Bus, use and plan.