Skip to content

Added chip level I2C Device TX_RX test#633

Open
KinzaQamar wants to merge 3 commits into
lowRISC:mainfrom
KinzaQamar:i2c_device_smoke
Open

Added chip level I2C Device TX_RX test#633
KinzaQamar wants to merge 3 commits into
lowRISC:mainfrom
KinzaQamar:i2c_device_smoke

Conversation

@KinzaQamar

@KinzaQamar KinzaQamar commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Added a host Vseq and device SW. The host will initiate read / write transfer. The device SW waits for the transfers to finish and compare the data bytes in each transfer at the end

@KinzaQamar KinzaQamar force-pushed the i2c_device_smoke branch 5 times, most recently from dafa77b to c434d75 Compare June 22, 2026 16:43
@KinzaQamar KinzaQamar linked an issue Jun 22, 2026 that may be closed by this pull request
@KinzaQamar KinzaQamar force-pushed the i2c_device_smoke branch 2 times, most recently from fbf55a9 to 13af90e Compare June 23, 2026 09:32
@KinzaQamar KinzaQamar changed the title I2c device smoke Added chip level I2C Device TX_RX test Jun 23, 2026
@KinzaQamar KinzaQamar force-pushed the i2c_device_smoke branch 3 times, most recently from 81bb879 to 3f1a2ff Compare June 23, 2026 10:59
…vice

Signed-off-by: Kinza Qamar <kqzaman@lowrisc.org>
@KinzaQamar KinzaQamar force-pushed the i2c_device_smoke branch 2 times, most recently from d5e3010 to 74cf3b0 Compare June 25, 2026 09:15
Comment thread sw/device/tests/i2c/device_tx_rx_test.c Outdated
Signed-off-by: Kinza Qamar <kqzaman@lowrisc.org>
Signed-off-by: Kinza Qamar <kqzaman@lowrisc.org>

@engdoreis engdoreis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a suggestion, otherwise it LGTM.

Comment thread sw/device/lib/hal/i2c.c
VOLATILE_WRITE(i2c->txdata, txdata);
}

void i2c_clear_cmd_complete(i2c_t i2c)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest making a function to clear interrupts that take the interrupt as argument like uart:

void uart_interrupt_enable_clear(uart_t uart, uart_intr intrs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

I2C DV -- Device TX-RX test

2 participants