Commit e00f13f5 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.
Browse files

test: Add SSP config to BTR_FD feature test!

On high data bit-rates this is needed!
parent 1f0550de
......@@ -106,6 +106,7 @@ package body btr_fd_feature is
variable clock_meas : natural := 0;
variable frames_equal : boolean;
variable ssp_pos : std_logic_vector(7 downto 0);
......@@ -182,6 +183,11 @@ package body btr_fd_feature is
CAN_configure_timing(bus_timing, ID_1, mem_bus(1));
CAN_configure_timing(bus_timing, ID_2, mem_bus(2));
-- Configure SSP so that it samples in Data-bit rate and in 50 % of
-- expected received bit! We need it only for Node 1!
ssp_pos := std_logic_vector(to_unsigned(clock_per_bit/2, 8));
CAN_configure_ssp(ssp_meas_n_offset, ssp_pos, ID_1, mem_bus(1));
-- 2. Enable both Nodes and send CAN FD frame where bit-rate is shifted
-- by Node 1. Wait until data field in Node 1 and measure duration
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