I2C Loopback (FAILED)

Overview

See tests/drivers/i2c for the original scope of tests, its structure and description.

Requirements

You will need an ST-LINK/V2 debug tool adapter already connected to the TiaC Magpie board, which has an already configured UART console connection.

On the TiaC MAGPIE pin headers the following I2C pins must be connected.

TiaC MAGPIE Pin Header I2C Loopback Wiring

Building and Running

Build and run the tests on target as follows:

$ west twister \
       --verbose --jobs 4 --inline-logs \
       --enable-size-report --platform-reports \
       --device-testing --hardware-map map.yaml \
       --extra-args SHIELD="loopback_test_tmph" \
       --alt-config-root bridle/zephyr/alt-config/tests \
       --testsuite-root zephyr/tests --tag i2c

Open Issues

Dual role with one I2C controller and one I2C device

... ... ...
.../zephyr/drivers/i2c/target/eeprom_target.c:234:12: error: 'i2c_eeprom_target_init' defined but not used
.../zephyr/drivers/i2c/target/eeprom_target.c:217:43: error: 'api_funcs' defined but not used
... ... ...
... ... ...
... ... ...