Documentation/DebugMenu.md
In this firmware there is extra debugging information in a hidden sub-menu. This menu is meant to be simple, so it has no fancy GUI animations.
-/B) on the iron while it is on the home screen.+/A) to scroll through the menu.-/B) again.Items are shown in the menu on a single line, so they use short codes.
There is a static line on top which is presented on every sub-screen and reflects exact version of firmware. Version line on top has the following format - vX.YYN.[ZZZZZZZZ]:
I.e.:
v2.22H means firmware built locally from tarball with release version of 2.22v2.22D.1A2B3C4D means firmware with development version of 2.22 from git dev branch & with commit ID 1A2B3C4D (so it can be traced for debug purposes)v2.22R.5E6F7G8H means firmware with official release version of 2.22 and it's properly tagged with v2.22 git tag & with commit ID 5E6F7G8H'Additional scroll-able items appear in this order:
YYYYMMDD HHMMSS (i.e., 20230701 213456 means it has been built in July, 1st, 2023 at 9:34:56 pm)This indicates the accelerometer that is fitted inside the unit.
This indicates the current power source for the iron. This may change during power up as the sources are negotiated in turn.
The input voltage as read by the internal ADC. Can be used to sanity check it is being read correctly.
This is the tip temperature in °C. This can be used with RTip for assessing temperature processing performance.
This is the handle temperature or more accurately the reading of the Cold Junction Compensation (CJC) temperature sensor. This is expressed in °C. Range of 20-40 °C is normal depending on how hot/cold the room is and how long power has been plugged in which warms the PCB further. This is used for CJC of the tip temperature.
If CHan is extremely high, this indicates the temperature sensor isn't reading correctly (see Troubleshooting)
This indicates the max temperature in °C that the system estimates it can measure the tip reliably to. This is dependent on a few factors including the handle temperature so it can move around during use. As you use the iron, the Max increases to a point.
This shows how many deciseconds the unit has been powered for (600 ds = 1 minute).
This is the last timestamp of movement. When the iron is moved, this should update to match the Time field (previous menu item). This can be used for checking performance of the movement detection code.
This indicates the tip resistance that the device is currently using. For devices with multiple possible values to choose from (Pinecil V2), the appropriate value is automatically detected at every boot-up. Tip should be installed before boot-up or reading can not be done.
This is the raw tip reading in μV. Tip must be installed or reading will be high/inaccurate. At cool, the range of 700-1000 is normal for larger tips and ~1500 for smaller tips (TS80). This is used to evaluate the calibration routines.
This is the offset resulting from the 'Cold Junction Compensation Calibration'.
This indicates the high water mark for the stack for the GUI thread. The smaller this number is, the less headroom we have in the stack. As this is a high-water mater, you should only trust this once you have walked through all GUI options to "hit" the worst one.
This indicates the high-water mark for the stack for the movement detection thread. The smaller this number is, the less headroom we have in the stack.
This indicates the high-water mark for the stack for the PID thread. The smaller this number is, the less headroom we have in the stack.
This appears if your device is capable of having a hall effect sensor installed (Pinecil). This shows the current magnetic field strength reading from the sensor. It is used to check if the sensor is operational, and for diagnostics and optimal placement of magnets on a stand (higher number is better/stronger). See Hall Sensor for details.
On the Pinecil; if the iron is booted up while long holding the front button (+); it will show an extra hidden menu for inspecting USB-PD power adapters. We can also connect to any PD USB power to check Vbus status, even some cell phones with a USB-C port will work if it is PD. It will not show PD messages when Pinecil is powered by DC port, QC, or USB 5V (non-PD). For example, if you connect to a QC charger, you may simply see "PD State 6" which indicates "waiting for source" as no PD messages will be ever be sent and you will not be able to use (+) to scroll through PD negotiated messages.
Pressing (+) cycles through elements, and (-) or unplugging will exit the menu.
The first page shows the PD negotiation stage number; which can be used for diagnosing if PD is not working. Once negotiation is complete; use (+) button to advance to other screens which show the different proposals advertised for voltage and current (State 12 means all is good with the PD charger).
⚠️ Warning: do this at your own risk, read everything in this document, and go to the Pine64 community chat if you desire advice. An incorrect cut of the trace could render the Pinecil non-working.
Background: a simple user modification to the PCB on some models of original V1 allows it to safely use DC barrel 24V by cutting a trace line to the Vbus which held it back to 21V. You can check whether your Pinecil V1 needs the update or can benefit from it by using a hidden trick in the PD debug menu.
[PD No VBus] if it is not needed (i.e., late model V1). Alternately, if it shows [VBus], then the mod has not been done and there is still a connection to the Vbus (the Vbus connection limits you to 21V until you do the mod).[PD No Vbus] before attaching any 24V PSU to the DC barrel. If you do not get the message, then try cutting the trace a little deeper or using alcohol to clear the gap of copper dust. Then check PD messages again. If you need advice/tips, join the Pine64 chat room.The mod method is shown in the February 2022 PINE64 community updates. Early Pinecil V1 models required cutting a trace to achieve 24V safety with DC barrel PSU. Late model V1 made sometime in 2022 came with [No Vbus] already displayed, and no mod is required.
| Pinecil V2 model released Aug. 2, 2022 is an overhaul of the PCB with all relevant components capable of 28V. V2 requires no mods to support the use of 24V DC Barrel jack charger. |
|---|