-
-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pinecil V2 repeatedly reboots on 5v directly connected to MacBook after 2.21 update #1680
Comments
I can reproduce the issue |
Would be great to know what is causing this; by any chance do either of you have access to a usb pd sniffer? Alternatively does Mac OS log why it power reset the port? |
Mac m1, reproduced. IronOS 2.21. |
Attached is a log of a couple of reboot cycles from Console.app, filtered on "usb": I see a line |
I can report the same on my Linux laptop when connected to my TB3 port. Built 5d96470 myself, not that it seems relevant in this case. I could potentially try to bisect if it would help. |
This has just happened to me, using PineFlash on MacOS Ventura 13.3.1a. Holding down + before inserting the USB-C cable shows some debug info when it's connected. When plugged in to a Pine Desktop supply (so 60W PD), it steps: State 3 and stays online. When connected to my iMac Thunderbird/USB-C port, it steps as follows: State 3 The Mac console has:
I'm working back through releases to find out what changed and where! |
Would absolutely love a bisection to see what borked it. Even a quick and dirty check after every N PR merges would be amazing if you can. No pressure of course :) USB failing to execute / act is expected (as we don't run a USB stack). Would be great if you could turn off the power pules in advanced settings and try again juust in case its that. |
I did, and it didn't help. Neither does enabling or disabling PDVpdo. Haven't had time to fully explore a bisect yet (up to my elbows in writing a plugin for SpamAssassin at work) but it'd help if someone could provide a me .bin file that doesn't have the problem, which might be easier than starting with 😄 |
Welp... I went to bisect and found this issue occurring all the way back on 1fbcdcd, so bisecting to the source of the problem is out. Of note, it doesn't crash immediately after flashing the firmware, only after replugging the device. Right after flashing it boots and works fine. |
Oh. I plugged my pinecil in (PD65W) yesterday because I was building an ADS-B antenna and had forgotten it wouldn't boot. It booted cleanly. I haven't changed anything nor tried to flash it since last Friday. Doncha just love non-deterministic behaviour? |
@blackketter |
No, it's not related. This seems to be a separate issue that keeps happening regardless of wether BLE is on or off |
Not sure if related, but I experience the same on my TS101 original FW 2.0 when connected to Macbook pro. Just keeps rebooting.... |
Same issue here, with a brand new just-arrived Pinecil V2 running v2.20.14DAF70 (13-12-22). I cannot update the firmware due to the rebooting issue as I only have access to a Macbook Air at the moment. |
You shouldn't need to; updates work fine. Hold down the minus button and then plug the device in. It should work fine. The Iron only restarts when booting into the main OS and trying to request PD data. |
Never connect both barrel jack and USB at the same time. The documentation warns you that doing so can damage your device. |
@aguilaair Thanks! That worked, and I got my Pinecil updated to the latest version. |
@blackketter |
Updated to Release 2.22 - Release Candidate 2 and the issue still exist. Plugging into a USB hub or charger works fine, plugging directly into a MacBook Air M2 USB-C port directly causes a continuous reboot. Plugging in to USB-C port on MacBook with a USB-C to A adapter then a USB-A to C cable works ok (though it's undervoltage at 5.1v) |
I have the same issue just plugging in a PD sniffer into my MBP without the Pinecil attached so it could be an issue on that side |
USB C to C directly to my Steam Deck or Ally both power cycled even in flashing mode on the factory firmware. Haven't had the need yet to test on 2.22 but assuming it's the same. |
Looks un-relevant on the first glance, but I've just got things strange. Sorry for the long story, but I want to describe all the nuances. Yesterday I've got my new Pinecil V2 (moved from my old TS100 in case of USB-C powering). Just from the box Pinecil power–off itself at a random time from a standby mode simply when I'm browsing the settings. Trying to fix this I've decided to update firmware, and it's actually solved the described problem, but after this I've generated a new .dfu version of my custom boot logo and flash it using blisp (sudo ./blisp write -c bl70x --reset mylogo.png.dfu). This is where things become strange.
|
This will be because your connecting the unit in bootloader mode first, which doesnt do any PD negoitation so the laptop times out into "dumb" 5V mode. It isn't related to the logo itself. If you put it into bootloader mode, leave it for a minute or two and then use blisp to reboot it without replugging it will behave the same. When in flashing mode (screen blank) there is no software running on the device to do the PD negotiation, so it just requests 5V via the default pull-down resistors in the PD IC. The cycle looping is the PD not negotiating with the laptop (i.e. device and laptop are not coming to an agreement on the power profile). I'm not sure why and I would need a USB-PD capture of the negotiation to know why. I do not have access to Apple hardware to capture this.
This should be unrelated, a boot logo should not break boot. Its best this is kept in its own issue. |
Yes, I understand this. Maybe it's hard to pin-point the main thing from my wall of text (sorry for that), but the thing is, that before there was a logo on my device (factory clean), the Pinecil boots well on the same port, on the same mac, with the same cable, but after I flashed a logo – the issue described in this thread appears. I understand that it sounds absurd and like the problem SHOULD be un-relevant, but I just describe things as they happened. And also at the same time the behaviour of working with the power brick changed, so maybe there is something happened with the power management at the end. Maybe there IS a connection. As a developer you never know for sure. |
After updating to 2.21.5d96470 with MacBook Air M2 with a USB-C cable directly connected between the devices, the Pinecil boots briefly, shows a 5.1v level, then crashes and reboots continuously.
This appears to be a PD issue, as the Pinecil won't crash if connected to a5v USB-A power source with a USB-A to USB-C cable.
Plugging into an 18v coax or 60w USB-C port, the device functions normally (after disabling bluetooth per #1661).
I can still put the device into the boot loader and refresh while connected to the Mac, but the expected behavior is that the device stays up with status and menus working (albeit with a DC low warning).
version 2.21.5d96470
The text was updated successfully, but these errors were encountered: