Skip to content

Conversation

@Iooon
Copy link
Contributor

@Iooon Iooon commented Aug 29, 2025

Implement the i2c target interface from https://github.com/embassy-rs/embassy/tree/main/embassy-rp for mspm0.
In the interface we define a listen function that is used to receive the commands from the i2c controller asynchronously so that the user can handle them accordingly.
Currently the implementation heavily favors async because of the easier implementation with interrupts.

The example was tested on the dev. board: MSPM0G3507
Sadly my MSPM0L1306 board is broken at the moment, but the example should work exactly the same. So if needed I can add the example to the L1306 , but someone else would need to test it.

@charlesbmi
Copy link
Contributor

Just dropping in to say thanks for writing this; since there was a comment about not yet testing on MSPM0L1306, which I'm using, I tried it out on an LP-MSPM0L1306 and it worked after making basic pin-revisions:

  • Peripheral: I2C1 → I2C0
  • Pins: SCL PB2 → PA1, SDA PB3 → PA0
  • Interrupt: I2C1 => InterruptHandler → I2C0 => InterruptHandler

Posting screenshot of aardvark + logs in case it's helpful
image

@Iooon
Copy link
Contributor Author

Iooon commented Oct 1, 2025

Just dropping in to say thanks for writing this; since there was a comment about not yet testing on MSPM0L1306, which I'm using, I tried it out on an LP-MSPM0L1306 and it worked after making basic pin-revisions:

  • Peripheral: I2C1 → I2C0
  • Pins: SCL PB2 → PA1, SDA PB3 → PA0
  • Interrupt: I2C1 => InterruptHandler → I2C0 => InterruptHandler

Posting screenshot of aardvark + logs in case it's helpful image

Perfect, thank you. I have added the example for the l130 and changed it accordingly.

Copy link
Member

@i509VCB i509VCB left a comment

Choose a reason for hiding this comment

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

Need to rebase on main to get the ci janitor to run and resolve conflicts.

@Iooon Iooon requested a review from i509VCB October 10, 2025 05:45
@lulf lulf added this pull request to the merge queue Oct 13, 2025
Merged via the queue into embassy-rs:main with commit aaf5443 Oct 13, 2025
8 checks passed
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.

4 participants