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
......@@ -213,11 +213,21 @@ package body btr_fd_feature is
CAN_generate_frame(rand_ctr, CAN_frame_1);
CAN_frame_1.brs := BR_SHIFT;
CAN_frame_1.frame_format := FD_CAN;
-- Force DLC length to 1 byte only not to have long test run time!
CAN_frame_1.dlc := "0001";
decode_dlc(CAN_frame_1.dlc, CAN_frame_1.data_length); := 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! := x"BB"; := x"CC"; := 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