Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First build for this iron, i´ve been doing a lot of reverse to make this "work".
Firmware boots up and all seems to be working. Can heat up and maintain stable temp.
TO DO:
-OLED loses format when in right. In left mode (default) UI and icons look good.
-This iron can use two tips, with 2 opamps and 2 mosfets. By now only working with the short tip, we need to write the logic to switch from one to another.
-PD chip is not working properly, i´ve selected HUSB238 in the config file but only can see: PD Debug state 55.
The way to upload the firm is pretty simple using the .hex file with the correct offset and uploading it with Sequre stock bootloader (flash looks like a FAT drive on windows, simply dragging the .hex).
SWD pinout for debugging:

CSK32F103 (STM32 clone) pinout:

PB9 - T13_PWM
PB8 - T12_PWM
PB7 - SDA
PB6 - SCL
PB3 - LED10
PA15 - LED9
PA14 - SWCLK
PA13 - SWDIO
PA12 - D+
PA11 - D-
PA8 - (gates D+ MOSFET)
PB15 - LED 6
PB14 - LED 5
PB13 - LED 4
PB12 - BUZZER
PB11 - LED8
PB10 - LED7
PB1 - B_switch (Pulled up)
PB0 - A_switch (Pulled up)
PA6 - T13_TEMP
PA5 - NTC
PA4 - Voltage reading (VBUS = PA4 reading * 0.1176)
PA3 - MOTION SENSOR (Pulled down)
PA2 - Ambient Temp sensor (TC1047)
PA0 - T12_TEMP
PC15 - LED3
PC14 - LED2
PC13 - LED1
This iron uses double tip support (T12 and TS/SI), this is the T12 and T13 temp.
Pics with OLED left/right mode:


ZIP file with .bin of stock bootloader dump (if you brick the soldering iron could revive flashing this with STM32CubePRogrammer) and first pre-ALPHA working firmware (.hex).
Si012Pro_dev.zip