An industrial test node sends status through a MCP2517FD timed by a 40 MHz passive crystal. The host logs success as soon as its SPI write finishes. Some corresponding messages never appear at the receiver, and ordinary bus activity does not identify which one was missed. Record host submission, bus transmission and transmit-event retrieval separately. A free transmit entry allows more work but does not prove that one particular message reached the bus.
Follow a request to its transmit event
Microchip distinguishes submission objects and the transmit event FIFO. The host writes a message and requests transmission according to the selected queue. The controller still faces bus availability, arbitration and possible errors. Counting an SPI return as success hides those intervals or retries. Capture host select, actual bus traffic and an event-read marker together.
Enable transmit-event storage and allocate its memory. The event contains identifiers and a sequence field that help match the original message. The MCP2517FD sequence field is seven bits. An application's larger sequence repeats in that field after 128 values. Prevent reuse while an older record with the same field is pending. A separate application sequence in the test payload can help match bus traffic and local logs.
Budget how long the event queue can go without service
Suppose the controller runs with a 40 MHz passive crystal and its bus configuration is verified. The fixture completes 2,000 messages per second, each adding one event. With eight event objects available, eight arrivals represent 4 ms of steady event load. A task that blocks reads for 5 ms can allow ten events, exceeding eight entries. This is an average-load estimate. Account for arrival phase, bursts and any items already queued.
Use actual completed messages per second. If the nominal arbitration rate is 500 kbit/s, one bit is 2 µs or 80 cycles of a 40 MHz reference. Frame format, data phase, arbitration, interframe gaps and retries still affect completion intervals. Measure completed traffic and compare it with the longest host service gap. Concentrated events can exhaust space before an average alone shows a problem.
Reproduce missing records and missing messages separately
Use a correctly terminated second node to receive known frames. Match host requests, successful bus traffic and transmit events. Then change only the event drain interval. Complete bus capture with missing local events calls for inspecting event overflow, pointer advancement after reads and resets. Missing bus payload calls for examining requests or bus errors. An identifiable application sequence makes the distinction repeatable.
An application may also require confirmation that a remote operation ran. A transmit event represents the local controller's transmission record. Application acknowledgment or a remote receive log supplies separate proof. Use a common sequence to correlate them and retain any preceding bus errors when studying retransmissions.
Estimate memory before increasing depth. Each event has two header-related words and may include a timestamp word. Eight events use 64 bytes without timestamps or 96 bytes with them. These figures exclude receive and transmit objects. Recalculate the complete memory allocation and confirm that the other queues still meet the load.
Create a controlled mismatch by delaying event retrieval after proving a positive case. Keep the external capture and overflow status. Complete bus traffic with missing local entries locates the problem in the event path for that trial. Restore normal service and check that old events cannot be matched to new submissions.
Document which task advances the event queue. With multiple readers, missing entries may have been consumed elsewhere. Verify mapping with one consumer, then repeat under the production scheduler.
Record the 40 MHz passive crystal and effective clock configuration, event depth, service intervals and single-frame and burst captures. Repeat the longest host delay after changing memory allocation or adding competing work. The log can then distinguish missing events, missing bus messages and missing remote processing.
