Commit 27f06c1c authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

test: Debug BTR FD feature test.

RTR must not be present! Also RWCNT must be recalculated accordingly!
parent e4862727
......@@ -218,6 +218,16 @@ package body btr_fd_feature is
CAN_frame_1.dlc := "0001";
decode_dlc(CAN_frame_1.dlc, CAN_frame_1.data_length);
CAN_frame_1.data(0) := x"AA";
-- We need to make sure that frame is not RTR frame, because CAN FD
-- frames have no RTR frames! This would lead to fail in check between
-- TX and RX frame! Also, we have to re-calculate RWCNT for the check
-- accordingly!
CAN_frame_1.rtr := NO_RTR_FRAME;
decode_dlc_rx_buff(CAN_frame_1.dlc, CAN_frame_1.rwcnt);
-- These data bytes are preloaded to have all elements of memory word
-- defined!
CAN_frame_1.data(1) := x"BB";
CAN_frame_1.data(2) := x"CC";
CAN_frame_1.data(3) := x"DD";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment