I have found the part in the code that you have mentioned. Unfortunately I still do not have any communication between PTB2(board1)-->PTB2(board2) and PTB3(board1)-->PTB3(board2) on both boards. These are the follwoing changes I have made thus far:
In board.h
/* The i2c instance used for i2c DAC demo */
#define BOARD_DAC_I2C_INSTANCE 1
/* The i2c instance used for i2c connection by default */
#define BOARD_I2C_INSTANCE 0 //<-- changed here
/* The spi instance used for spi example */
#define BOARD_SPI_INSTANCE 0
In hardware_init.h
/* enable clock for PORTs */
CLOCK_SYS_EnablePortClock(PORTA_IDX);
CLOCK_SYS_EnablePortClock(PORTB_IDX); //<-- added this
CLOCK_SYS_EnablePortClock(PORTC_IDX);
CLOCK_SYS_EnablePortClock(PORTD_IDX);
CLOCK_SYS_EnablePortClock(PORTE_IDX);
configure_i2c_pins(0U);//<-- changed from 1U to 0U