Ralim / IronOS

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

TS101 reboots with MacBook M2 Pro PD #1887

Open nuschpl opened 6 months ago

nuschpl commented 6 months ago

Describe the bug It cycles through power state 3, then 6 and reboots.

To Reproduce

  1. Connect to MacBook M2 Pro PD
  2. Observe decvice negotiating then rebooting.
  3. Connect with KeyB pressed, get PD Debug state 3, PD Debug state 6.

Expected behavior Whatever power is provided via USB PD properly negotiate it so the iron will use only supported ones. Ideally when power not sufficient to iron but sufficient for powering up it should display the limitation

Details of your device:

nuschpl commented 6 months ago

As a followup - I've attempted to limit artificially maximum power to 15W by modyfing configuration.h . Compiled the firmware and it was working - on 140W capable PD charger it was runing only at 5V max very slowly heating . This is the behaviour I would expect on Macbook but it with same firmwre it still restarts instead - seems like some PD negotiation issue similar to https://github.com/Ralim/IronOS/issues/762#issuecomment-1827620725 I'm eager to debug it further by collecting some logs or compiling custom firmware with some changes , not sure were to start.

akubak commented 5 months ago

@nuschpl I was able to flash mine by using an old Type-C to USB-A phone cable through a hub connected to my laptop, so that no PD info was passed along to confuse the iron.

nuschpl commented 5 months ago

I'm aware that it should be possible but this issue is not about flashing, it's precisely about proper USB PD support

dennes544 commented 1 month ago

Can confirm this. TS101 flashed with latest artifact CI #4051: Commit [545d568], same behaviour. PD Debug state 3 then PD Debug state 6 then reboot. Flashed back to stock 2.10, reboot gone.

Power adapter used: 140W Macbook Pro M3 Max adapter

dennes544 commented 1 month ago

Worked with Baseus GaN2 100W adapter (2 Type-C, 2 Type-A)

neon12345 commented 1 month ago

Similar problem with an Ugreen Nexode 140W GaN. There are two usb-c ports, 100W and 140W max. With the 100W port it works and with the 140W port there are constant reboots. Also reboots with my laptop usb-c but is working with a desktop pc.

dennes544 commented 1 month ago

Also strange thing i found: If flash V2.22 from releases page, TS101 works with MBP 140W adapter, BUT if i compile firmware from tag V2.22 via github actions it stops woking again. With keyB pressed on compiled firmware it shows PD state 3 then 1 then reboot.

Qwertylex commented 1 month ago

Same thing happens here on MacBook Pro M1