Ralim / IronOS

Open Source Soldering Iron firmware
https://ralim.github.io/IronOS/
GNU General Public License v3.0
7.25k stars 718 forks source link

Quecoo T85 96w #1844

Closed iLLiac4 closed 2 months ago

iLLiac4 commented 11 months ago

https://www.quecoo.com/products/quecoo-electric-soldering-iron-kit-t85-96w-repair-tool-welding-solder-rework-station-heat-pencil-smart-portable-solder-iron-tips

Will this one also be compatible with the IronOS?

Ralim commented 11 months ago

Please see other requests; need to know the MCU in use and its specifications before we can even guess.

turtle-bazon commented 11 months ago

I think this is near impossible. There are CPU with 32Kb flash. T85CPU

turtle-bazon commented 11 months ago

This is nearly same as STM32F030K6U6

nightflasher commented 10 months ago

as i didn't got the pcb out, i only have those pictures, maybe it helps? photo_2024-01-08_10-38-14 photo_2024-01-08_10-38-19

bspunker commented 9 months ago

Hello,

Is this iron now supported? What we need to test or try it?

Greetings

Heiko

ia commented 9 months ago

Hello.

Is this iron now supported?

No, sorry but there is no support for this device.

discip commented 9 months ago

Is this iron now supported?

Please refer to the readme, all supported devices are listed there.

image

SergijF commented 9 months ago

Please see other requests; need to know the MCU in use and its specifications before we can even guess.

Hello, @Ralim. If I order and give you such a soldering iron, can you adapt ironOS firmware for T85?

teodoro31570 commented 8 months ago

HI i heave an iron soldering T85 y plug in red says in display NO TOOL what can by???

teodoro31570 commented 8 months ago

CAN ANYONE PROVIDE AN ELECTRICAL DIAGRAM? iron soldering T85 THANKS

Ralim commented 8 months ago

Please contact the manufacturer, we are not a support forum. @teodoro31570

Marcovecchio commented 4 months ago

@Ralim, I have one of these irons, and I would like to help evaluating if the port is possible, and if so, help doing the port.

But I need some pointers. What info do you need initially, to see if the port is possible? I have the iron already opened.

Ralim commented 4 months ago

@Marcovecchio Hia,

So the standard docs list is here : https://ralim.github.io/IronOS/PortingToNewDevice/

The processor is already confirmed likely to work. Usually my first step is to backup the existing firmware, then figure out the flash offsets to flash to, in order to work with the existing bootloader.

If your lucky, holding one of the buttons will make it show up in some form of update mode. As the chip is only a 32K flash ic most likely you will be lucky if they used the rom updater as then you get the full 32K.

Once the flash start/end addresses are known, next step is to figure out the pinout.

Your likely looking for I2C to the screen, a pwm output to the heater control, and GPIO for buttons. Depending on how they have done the QC+PD implementation you may also have I2C to that or it could be standalone hardware with no software control.

Once a pinmap is figured out, the code change is to make a new BSP folder basically, put in the required libraries for hardware support/ boot. Then implement all the functions in the BSP*.h files in that folder somewhere. This is often easiest if you take a similar device (Say a sequre) and modify it, as a lot of the logic will be same-same.

Marcovecchio commented 4 months ago

Thank you very much for the great guide! I'll start the research this weekend and post the progress.

Marcovecchio commented 4 months ago

@Ralim, I did some preliminary research already, and I have some points:

1) No reaction on plugging it to usb, with buttons pressed or not. I suppose it has no self-flash capability, and no bootloader. Since it's a 32kb only part, it makes sense. I also found 4 test points, and they will allow me to reprogram the mcu:

<--- power connectors     GND    PA14 (CLK)    PA13 (DIO)    Vcc       ---> iron tip

I'm not too familiar with STM32 chips / clones, but is there any chance to backup the contents if the security / lock bit has been set?

2) The docs say IronOS minimal flash memory requirement is 64kb, but this part is 32kb. Will IronOS really work on this?

3) I already found a complication, regarding OLED display: it's a 128x32 pixels, 0.87in display, which is nice. But I have two T85 irons, and I swapped the OLEDs, and it didn't work: the image got shifted half screen vertically, and wrapped around. I suspect my irons are from different batches, with different displays, and also different firmwares. Does that make sense? Anyway, I found 2 models of 0.87in OLEDs on Aliexpress, made with SSD1312 and SSD1316 drivers. I bought both to test.

Thanks!

Marcovecchio commented 4 months ago

I managed to access the MCU with ST Link programmer, but it's protected against flash reading, Level 1, whatever it means.

Does anyone know if there's any workaround? The iron is functional, I would not like to erase it's flash and risk bricking it forever...

In the mean time, I'll study the hardware to identify where the OLED, buttons, heating are all connected.

Marcovecchio commented 4 months ago

I did some more research, and read carefully the porting docs. I think I found at least a deal breaker for a possible port: the device is clearly not updatable externally, without opening. There's no apparent DFU, it seems the T85 was never meant to be user updatable. I will play some more with Boot0 pin, so there's hope still, but it's very small.

And according to the docs, 32kb of flash and 4kb of SRAM is not enough, this is probably another deal breaker. I'll not give up, I'll keep trying, it will serve as a STM32 learning project for me. But I really doubt it will turn into a real user flashable IronOS port.

nickon89 commented 4 months ago

Hello @Marcovecchio ! Your attempts to flash the chip are very interesting. It is unknown how to bypass the protection. My T85 says "No tool", but the heating goes to red. I think the problem is in the chip. This happened when I supplied AC 12V instead of DC 12V. I accidentally mixed up the AC power cord). Maybe you know what the problem is with "No tool"? no tool

Marcovecchio commented 4 months ago

No tool means there's no tip installed. You should never see this with a tip installed, and even worse: with high current flow.

If the iron starts heating immediately after power on, I think something got damaged around the power MOSFET: it may be in turn on state all the time. Or a mcu pin shorted.

But this is off topic here, we should be talking about IronOS porting to the T85 model.

turtle-bazon commented 3 months ago

@Marcovecchio nice job! I also interested how 32Kb could be sufficient if in IronOS docs said that 64Kb minimum? But you can desolder CKS32F030K6U6 and solder CKS32F103C8T6 i think. :)

turtle-bazon commented 3 months ago

@Ralim could you clarify the question about sufficiency of 32Kb for the IronOS?

Ralim commented 3 months ago

To make IronOS work on 32KiB will require cutting out features. TS100 is the most "minimal" iron at the moment and it current comes in around 35KiB. Cuttng out at least 3-4 KiB could be done by reducing drivers (depending on the accelerometer used can likely cut out code there, or if its a gpio accelerometer thats even less code), or by carefully minimising any FreeRToS features.

The bigger problem is the lack of ram. 4KiB of ram is a no-go as the font/oled code needs a fair bit of ram for the on the fly decompression. Likely supporting this unit would require a microcontroller swap out; which I think would drastically limit the user count / people to help maintain this unit?

discip commented 2 months ago

As pointed out by Marcovecchio and Ralim, this won't work without replacing / modifying almost everything. At this point, it's very obvious that this device is not going to be supported.