Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

The KDS DSX321G is still at 12 MHz. Why did the RP2040 watchdog take twice as long?

Check clk_ref and the watchdog TICK setting before blaming the crystal. Consider an RP2040 board with a working 12 MHz KDS DSX321G. A firmware revision divides the actual clk_ref to 6 MHz but leaves the tick generator set to wait for 12 reference cycles. The tick now lasts 2 µs instead of 1 µs. With the same watchdog load and logic, the elapsed timeout is roughly twice as long. The crystal did not change frequency; the downstream reference divider changed.

Why can the software timer appear to agree?

The RP2040 datasheet says the tick generator also supplies the hardware TIMER. If both modules use the same lengthened tick, a timer readout expressed in nominal microseconds can still agree with the configured watchdog value. It is not independent evidence. For a test that expects a reset after 100 ms, use an independent instrument timebase and capture the request marker and reset event in an approved test setup.

The example assumes clk_ref actually changes at run time and the tick divisor is not adjusted. SDK initialization may configure the tick differently, so the fault is not inherent to the RP2040. The system-clock value, a locked PLL or a measurement of the crystal alone does not establish the frequency of this tick.

Restore the timebase, then retest the application

Record the actual clk_ref source and divisor, tick configuration, measured application timing and elapsed reset delay. To obtain one tick per microsecond from a 6 MHz input, this example requires six input cycles per tick. Use the procedure appropriate to the firmware and SDK in the project. If the debugger can pause watchdog operation, record its state during testing. Verify timing in the normal mode and after the clock transfer so an apparently correct internal timer cannot conceal a mismatch to elapsed real time.

Related selection guide: MERLIN Crystal Timing: Qualifying an RP2040 Fractional Clock Near 5 MHz: Average Rate and Shortest Period

Resource link: https://www.mecxtal.com.cn/en/handbook/rp2040-fractional-clock-periods.html

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.