Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM263P4-Q1: Controller doesn't start every time after short power off reset

Part Number: AM263P4-Q1
Other Parts Discussed in Thread: AM263P4, TPS6538600-Q1, LP-AM263P

Deat Support team,

The microcontroller AM263p4 doesn't boot every time if the power down length is shorther than ~ 1 second.

The below image shows oscilloscope traces of the behaviour in this case the power off lenght was set to 320 ms. After the 3V3 and 1V2 rails are stable the reset line driven high by the PMIC but the controller doesn't strat the QSPI CLK (Gray trace) to read out our boot loader from the QSPI flash. But after the next reset pulse it starts. If this power down length increased over 900ms the controller boots every time. The power down pulse period is 5 second.

The right oscilloscope screen captures the Boot mode pins vs RST at the event of non booting. What is as expected QSPI 4S mode.

What other test should I do to bring closer to the root cause?

 

Thank you

 

Zoltan

image.png

  • Hi Zoltan,
    Thank you for reaching out and providing the details!!

    For QSPI 4S booting, SOP[3:0] pins should be in 0000 state at release of PORz. SOP boot mode latching happens only once during release of PORz after that same pins can be used in functional modes. PORz path should not have any delays and should be releases only after both 3.3V and 1.2V are stable.

    Could you please help me with the below details:
    1. Could you please check if there are any capacitors in the path of the PORz line? If so, could you try removing them to see if it resolves the boot issue?
    2. Zoom in on your oscilloscope traces during the 320 ms power-down window. Measure exactly how low the 1V2 (core) and 3V3 (I/O) rails drop before they start ramping back up.
    3. Additionally, to help us investigate further, could you please share snippets of your schematic? Specifically, we would like to review
      1. The generation circuits for the 3.3V and 1.2V core rails
      2. The PORz release logic
      3. All QSPI signals including QSPI reset if any
      4. The SOP (Boot Mode) latching circuitry
    Thanks & Regards,
    Rijohn
  • Here is a zoomed in view. The twist in the story that at every second power off pulse the controller starts!

    Here is a zoomed in digital capture of the boot strap signals when starts normally.

    Here is a zoomed in digital capture of the boot strap signals when doesn't start. The same Boot code: b'0000

    Schematic:

    There is a 100pF capacitor on PORz.

    The PORz is driven by the PMIC. TPS6538600-Q1

    PMIC LDO1 output is the Controler 3V3 supply.

    1V2 generated by a DC-DC from BB_Out of the PMIC enabled by the LDO1_3V3

  • Hi,

    Sincere apologies for the long delay!!

    Can you please share

    1. The SOP latching circuitry 
    2. All QSPI signals including QSPI reset if any
    Here is a zoomed in digital capture of the boot strap signals when doesn't start. The same Boot code: b'0000

    Is there a provision to connect debugger / CCS via JTAG. If yes can you check if you are able to connect to Debug Access Port(DAP) and please provide the value of TOP_RCM_SOP_MODE_VALUE register? 


    Thanks & Regards,
    Rijohn

  • Hello Rijohn,

    Here are the requested data.

    QSPI signals when starts:

    The TOP_RCM_TOP_RCM_SOP_MODE_VALUE: 0x0

    QSPI signals when doesn't start:

    The TOP_RCM_TOP_RCM_SOP_MODE_VALUE: 0x04

    Boot mode select latching circuit.

  • Hi Zoltan,

    Thank you for providing the detailed data. Based on your inputs and a review of the schematic, here is the analysis of the SOP/BOOTMODE logic along with the recommended workaround and next-revision design fixes.

    Below are by observations:

    1. BOOTMODE/SOP Logic Analysis
      1. SOP[3] - JD
      2. SOP[2] - ! (JD | UD)
      3. SOP[1] - JD
      4. SOP[0] - JD | UD
        1. Where JD is JTAG DET and UD is UART DET
        2. For QSPI Boot mode - 0000
        3. SOP[3:0] - 0100 is an invalid boot mode as per the AM263P-TRM. 
        4. So as per you use case i believe we need not have an inverted connection [ ! (JD | UD)] to BOOTMODE 2. It can be directly shorted to GND or JD or UD.
    2. SOP Latch Timing & PORz Dependency
      1. The root cause of the latching failure stems from how the SOP latch buffer (U19) is enabled:
        • U19 features an active-high Output Enable (OE), which is driven by an inverting buffer (U22) followed by an RC delay line.
        • When PORz is asserted low, U22 outputs a high pulse to charge the RC circuit. This turns U19 ON to allow the SoC to sample the SOP pins.
        • Consequently, the enablement window for the SOP buffer is directly governed by the low-pulse duration of PORz.
        • If the PORz low time is too brief (e.g., 330ms), the RC circuit does not charge sufficiently. This truncates the buffer's enablement window, preventing the MCU from accurately latching the SOP values upon the rising edge of PORz.
    3. Recommended Next-Revision Implementation
      1. To decouple the SOP latch timing from the PORz low-pulse width, the circuit should utilize an active-low SOP latch buffer controlled by a non-inverting Schmitt trigger.
        • Behavior: The active-low configuration ensures the SOP buffer is inherently enabled by default while PORz is low.
        • Release Timing: When PORz transitions from low to high, the RC delay element will postpone the disablement of the buffer by approximately 20 to 50 microseconds. This provides a reliable timing margin for the MCU to sample the SOP values immediately after reset release.
        • Reference: Please refer to the standard LP-AM263P LaunchPad schematics for the exact implementation of this active-low SOP latch logic. Use the same RC delay values.

    Immediate Workaround for Current Revision to just try

    Currently, your default boot configuration evaluates to SOP[3:0] = 0100.
    • Action: Disconnect the current trace driving BOOTMODE[2] and physically tie BOOTMODE[2] to Ground and Remove 100nF capacitor
    • Result: This forces the default boot mode to 0000, successfully placing the device into QSPI Boot Mode.
    For your upcoming board spin, we highly recommend migrating to the active-low buffer architecture outlined above.

    Thanks & Regards,
    Rijohn
  • Hello Rijohn,

    The explanation is not 100% accurate or my understanding is still not on your level. The R value from RC is 0 Ohm in our circuit. So it adds only "ns" delay to the buffer's enable signal. As well as the time delay on the example schematic is 500ns (50 Ohm and 10nF) not 20-50 us.

    The differences are to our design:

    -  There is a combination logic to the buffer input instead of a resistor pull up/down  and manual switch circuit. Slower settling time maybe.

    - The buffer in our design is non-schmitt trigger type. -> Undefined state around transition.

    The good news is that connecting the MODE2 to GND (R126 removed)  solved the symphtom. Now it is restarting even with 20ms pulse.

    Thank you for the brainstorming.

    Have a great Day.