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

After installing a 40 MHz oscillator, why does a working TCAN4550 still need a watchdog test?

An industrial communications board changes its optional 20 MHz reference to a 40 MHz active oscillator. Firmware recalculates the CAN timing and the production fixture sends test frames successfully. Later, the controller recovery timing no longer matches its requirement. Check the device's watchdog reference setting. Correct bus timing establishes the communication path. The watchdog separately needs the correct reference field, initial trigger, and timeout action. Frame exchange can pass while all three remain untested.

Check the physical reference and its independent settings

TI's external-clock connection uses OSC1, with OSC2 grounded, and the external input voltage should match VIO. Identify the 40 MHz active-oscillator assembly and verify the waveform at the actual input. Then read CLK_REF, bit 27 of register 0x0800. TI specifies zero for 20 MHz and one for 40 MHz, with a reset value of one. An initialization routine written for the 20 MHz assembly may still override the default after a hardware update. Verify effective state rather than assuming the reset value remains active.

CAN timing and watchdog timing have separate evidence. Record the physical reference, configured bus timing, watchdog field, and measured timeout. Do not assume that a wrong reference field necessarily gives a known doubling or halving under every condition. The approved configuration is the documented matching setting, followed by a measured event on the real board.

The first service event starts the timer

TI specifies watchdog availability in standby or normal operation, with timing starting after the first input trigger. This can be the documented SPI write, or an input edge in the applicable pin mode. Waiting without having provided the initial trigger does not exercise active supervision. Capture the actual initial event, then use the last valid service as the time origin for a planned timeout. TI also describes the timer as off in sleep. Record that as a distinct initial condition.

For example, suppose WD_TIMER selects a nominal 600 ms window. Application service normally occurs every 250 ms, and one iteration incurs an additional 200 ms. Its interval is 450 ms, leaving 150 ms relative to the nominal setting. This is a preliminary budget. Use the earliest applicable timeout and account for host scheduling, the SPI transfer, and when the device actually receives service. A nominal setting alone cannot qualify a minimum time to reset. Check whether a timeout reports status, enters standby, or alters an external signal in the way the board actually uses.

Observe the selected action under a controlled missed service

Record enable, reference selection, timer setting, and service path. TI requires disabling the watchdog before changing its registers and then re-enabling it. Confirm that the pin under observation is configured for the expected source and use the corresponding status to identify the event. Service normally for several cycles, then stop on a known iteration. Measure from the actual last service to the selected action. Retain the SPI or pin trace so controller scheduling does not become the assumed timing origin.

Repeat for cold start, recovery after a timeout, and the supported return from sleep. A configured action can put the device into standby. Verify whether and when supervision restarts. Qualify replacement 40 MHz surface-mount oscillators at the loaded input, then verify CAN traffic and watchdog timing separately. Working frames establish only part of the behavior.

Also ensure the fixture does not keep servicing the watchdog during the deliberate failure. Probe activity or debugging code that changes the selected trigger pin can conceal a stopped controller. Preserve passive observation and disable any auxiliary tasks that can issue service during that test.

Avoid mistaking retained status from the previous timeout for a new event. Give each expected event a sequence number and account for old flags using the documented behavior before beginning the next run. Another controlled test can lengthen only the normal service interval, still within valid operation, and compare measured margin. If external power control resets the board, capture supply enable and reset. That establishes whether the selected watchdog action caused the restart or the fixture had already removed power.

References

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.