Power-On Sequence and Debugging Issues with Embedded Emulators: A Practical Guide

    This guide explains why power-on and power-off sequencing is the first hurdle in embedded debug sessions, how to read emulator LED states, and how to diagnose common IDE connection errors. It covers the standard power-up and power-down order for different probe types, special handling for isolated or fiber-optic probes, an LED truth table, five root causes of debugger errors, and a minimal step-by-step verification flow that helps teams narrow down hardware and software faults without blindly reinstalling tools.

    1. Why Power-On Sequencing Is the First Gate in Debug Sessions

    In embedded development, an emulator (debug probe) does not operate independently. It must stay electrically and logically consistent with three parties at once: the host PC, the target board, and the integrated development environment (IDE). Many “cannot connect,” “error reported,” and “intermittent failure” symptoms are not software configuration mistakes at all. They are the result of a power-up or power-down order that violates the hardware’s electrical constraints.

    There are three core reasons:

    1. Signal-level dependency: The probe communicates with the target chip through debug interfaces such as JTAG or SWD, and the reference level for those interfaces is usually supplied by the target board. If the target board is unpowered while the probe is already driving the interface, current may be sunk into the pins or the logic level may be misread.
    2. Independent power sources: The probe’s own supply (USB or an external adapter) and the target board supply are two separate systems. They become ready at different times, which shifts the initialization window.
    3. Debugger-to-core handshake: When connecting, the IDE first identifies the probe, then reads the core ID, and finally establishes the session. A timing error at any of these steps causes the handshake to fail and an error code to be thrown.

    For this reason, disciplined sequencing should be treated as part of the debugging workflow, not as an optional step.

    2. Standard Power-On and Power-Down Sequences

    2.1 General Power-On Rules

    For most probes that are USB-powered and support relatively recent IDE versions, the recommended order is:

    1. Power on the probe (USB/adapter ready) → connect the debug cable → power on the target board → establish the debug session from the host PC

    For older-generation probes that rely on the target board to provide the interface reference level and target earlier development environments, the order is reversed:

    1. Connect the debug cable first → power on the target board → power on the probe

    The criterion is simple: if the probe’s LEDs cannot reach the “both lights steady” ready state on its own supply alone, it needs the target board level to complete the判断, and the second order should be used.

    2.2 General Power-Down Rules

    The power-down order must be the strict inverse of the power-up order. This is the key to protecting I/O ports:

    1. Manually disconnect the debug session in the host software → turn off the target board power → disconnect the debug cable → power down the probe

    The most common mistakes are “unplug the cable directly” and “cut target power directly.” The first leaves the probe suddenly without a peer while the session is still open; the second leaves the interface floating. Either can cause port leakage or make the probe’s internal protection circuit trip repeatedly, and the cumulative effect shortens hardware life.

    2.3 Special Handling for Fiber-Optic and Isolated Probes

    High-voltage isolated probes that use fiber-optic links or isolated power add an “isolated-side power-on” step, and their indicator behavior differs from direct-connect probes: with only the fiber connected, a single lit LED is normal; the full ready state is reached only after external power is applied. The typical power-on order is:

    1. Connect the fiber → power on the target board → power on the probe's main side → establish the session

    Note that the “single-side lit” state on an isolated probe is not a fault. Misreading it is the most common source of confusion for beginners.

    3. How to Read the LED States

    The LEDs are the only internal-state channel a probe exposes to the user, so building a “state dictionary” greatly shortens troubleshooting. The behavior can be summarized as a truth table:

    Own supply Debug cable + target board Session state Meaning
    Not ready Not connected — Missing supply or cable not seated
    Ready (both lit) Not connected — Probe is healthy, waiting for target
    Ready Connected Not established Target board unpowered or no interface reference level
    Ready Connected Established Normal operating state; LEDs no longer change

    Key reading rules:

    • LEDs stop changing once the session is established, which means the state machine has reached steady state. Any later blinking indicates a link fault.
    • A single lit LED usually means “waiting for the peer.” Check target power and the cable first, rather than restarting the software.
    • Both LEDs dim or fully off: check the supply and the physical cable connection first.

    4. Typical Causes of IDE Debugger Errors

    Without pointing to any specific tool, debugger errors fall into five root-cause categories:

    1. Probe not detected: driver not installed, restricted USB permissions, or a faulty cable or port.
    2. Target core not responding: target board unpowered, reset pin held low, clock not oscillating, or the chip in a low-power mode.
    3. Interface occupied: the same debug interface is held exclusively by another session, a flashing tool, or a running process.
    4. Configuration mismatch: interface type (JTAG/SWD), port address, or clock frequency does not match the target hardware.
    5. Firmware and tool version incompatibility: the probe firmware and the development environment are too far apart in version, so the handshake protocol cannot be negotiated.

    The recommended troubleshooting order is: physical layer → power and reset → interface configuration → session occupancy → version compatibility. This follows the principle of “from observable to unobservable, from hardware to software” and avoids blindly reinstalling software.

    A minimal verification flow can be written as:

    1. 1. Power only the probe and check whether the LEDs reach the ready state
    2. 2. Connect the debug cable, power on the target board, and check whether it switches to the waiting state
    3. 3. On the host PC, run "identify probe" only, without loading any program
    4. 4. Run "read core ID" to verify interface connectivity
    5. 5. Then proceed to flashing or online debugging

    Passing the first three steps before moving to steps 4 and 5 compresses the problem domain to the minimum.

    5. Recommendations for Teams

    1. Put it in the work instruction: post the power-on/power-off order and the LED reading table at the workstation, which gives newcomers the lowest onboarding cost.
    2. Standardize the power scheme: avoid mixing probes with different supply and isolation methods within one project, to reduce cognitive load.
    3. Establish a version baseline: define the supported version range for the development environment and probe firmware, and validate upgrades on spare hardware first.
    4. Keep records of anomalies: log the verbatim error text, the LED state, and the power sequence together for later review.
    5. Cloud collaboration: when multiple people need to collaborate or reproduce an issue remotely, general cloud capabilities such as code hosting, log services, and monitoring alerts can preserve the problem context. General-purpose offerings from platforms such as Baidu AI Cloud can serve as one hosting option.

    6. Conclusion

    The surface symptom of emulator problems is an “error,” but the substance is usually sequencing and state reading. Mastering the inverse power-up/power-down principle, building an LED state dictionary, and following a hardware-to-software troubleshooting order covers the vast majority of field faults and leaves debugging time for the business logic itself.