Commit 7ebb7132 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

src: Consider form error on Normal CAN FD frame only for transmitter!

Receiver must be able to Accept CAN FD frame. It only throws error when
FD frame format is disabled!
parent 736ef38a
......@@ -1736,8 +1736,9 @@ begin
end if;
end if;
if ((drv_can_fd_ena = FDE_DISABLE or tran_frame_type = NORMAL_CAN)
and (rx_data_nbs = RECESSIVE))
if ((drv_can_fd_ena = FDE_DISABLE) or
(tran_frame_type = NORMAL_CAN and is_transmitter = '1'))
and (rx_data_nbs = RECESSIVE)
then
form_err_i <= '1';
end if;
......@@ -1814,8 +1815,9 @@ begin
ssp_reset_i <= '1';
end if;
if ((drv_can_fd_ena = FDE_DISABLE or tran_frame_type = NORMAL_CAN)
and (rx_data_nbs = RECESSIVE))
if ((drv_can_fd_ena = FDE_DISABLE) or
(tran_frame_type = NORMAL_CAN and is_transmitter = '1'))
and (rx_data_nbs = RECESSIVE)
then
form_err_i <= '1';
end if;
......
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