Skip to content

Conversation

JochiSt
Copy link
Owner

@JochiSt JochiSt commented Jan 18, 2023

as an additional connection option, the I2C bus is quite handy in its connectivity. This pull request will focus on the I2C slave implementation in order to make the configuration and measurements available via I2C.

@JochiSt JochiSt self-assigned this Jan 18, 2023
@JochiSt JochiSt added the enhancement New feature or request label Jan 18, 2023
@JochiSt JochiSt modified the milestone: 2nd Board Commissioning Jan 18, 2023
@JochiSt
Copy link
Owner Author

JochiSt commented Jan 22, 2023

The device gets found when doing and I2C scan

 01 -- 02 -- 03 -- 04 -- 05 -- 06 -- 07 -- 08 --
 09 -- 0a -- 0b -- 0c -- 0d -- 0e -- 0f -- 10 --
 11 -- 12 -- 13 -- 14 -- 15 -- 16 -- 17 -- 18 --
 19 -- 1a -- 1b -- 1c -- 1d -- 1e -- 1f -- 20 OK
 21 -- 22 -- 23 -- 24 -- 25 -- 26 -- 27 -- 28 --
 29 -- 2a -- 2b -- 2c -- 2d -- 2e -- 2f -- 30 --
 31 -- 32 -- 33 -- 34 -- 35 -- 36 -- 37 -- 38 --
 39 -- 3a -- 3b -- 3c -- 3d -- 3e -- 3f -- 40 --
 41 -- 42 -- 43 -- 44 -- 45 -- 46 -- 47 -- 48 --
 49 -- 4a -- 4b -- 4c -- 4d -- 4e -- 4f -- 50 --
 51 -- 52 -- 53 -- 54 -- 55 -- 56 -- 57 -- 58 --
 59 -- 5a -- 5b -- 5c -- 5d -- 5e -- 5f -- 60 --
 61 -- 62 -- 63 -- 64 -- 65 -- 66 -- 67 -- 68 --
 69 -- 6a -- 6b -- 6c -- 6d -- 6e -- 6f -- 70 OK
 71 -- 72 -- 73 -- 74 -- 75 -- 76 -- 77 -- 78 --
 79 -- 7a -- 7b -- 7c -- 7d -- 7e --

address 0x70 is a I2C multiplexer. 0x20 (64 = 0x40 right aligned) is the OFM.

@JochiSt
Copy link
Owner Author

JochiSt commented Jan 23, 2023

Unfortunately, the read / write does not yet work. It seems, that the interrupts are not called. This needs further debugging.

@JochiSt
Copy link
Owner Author

JochiSt commented Feb 15, 2023

I started a new project for just testing the I2C slave implementation: https://github.com/JochiSt/STM32_I2C_slave
If the implementation is working there, I'll forward the findings into the OFM.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant