-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards/stm32f4discovery: Change sda pin #10445
boards/stm32f4discovery: Change sda pin #10445
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, looks good. Verified with datasheet.
Just had a look at this one and tested it on a board. From the datasheet, the changes are good. But the testing procedure doesn't work:
This is weird because it should work normally. |
Hmm I will try to look into it more, maybe I missed something. |
Hi, Thank you for taking over the pull-request! I still have a board and will try to investigate the issues at the weekend. Cheers Michael |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blocking, until further testing
any news here? |
Maybe things clear up when the #10610 gets merged, it should fix a bunch of these types of problems. |
#10610 is merged, so? |
@aabadie I think just needs retest when you have time. |
This commit changes the I2C0 SDA pin to 9 from 7. This is because the CS43L22 is connected to scl6 and sda9.
Well a few things I noticed. The correct address is 0b1001010x which is actually 0x4A or if the addr pin is high it would be 0x4B. I was looking at the actual pins on the scope and couldn't find why it doesn't want to ack the address. I can confirm the pin change is there as I probed the actual CS43L22 but I can confirm communication (maybe some other initialization stuff needs to be done). Do we want to merge or not? |
looks good, waiting for test confirmation
c6a7ced
to
46e8f71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By setting PORT_D 4
to 1 I got the CS43L22 to respond:
2020-06-24 17:29:11,316 - INFO # Connect to serial port /dev/ttyUSB0
Welcome to pyterm!
Type '/exit' to exit.
i2c_acquire 0
2020-06-24 17:29:18,804 - INFO # i2c_acquire 0
2020-06-24 17:29:18,805 - INFO # Command: i2c_acquire(0)
2020-06-24 17:29:18,805 - INFO # Success: i2c_0 acquired
> i2read_reg 0 0x4a 1re 0
2020-06-24 17:29:22,162 - INFO # i2c_read_reg 0 0x4a 1 0
2020-06-24 17:29:22,163 - INFO # Command: i2c_read_reg(0, 0x4a, 0x01, 0x00)
2020-06-24 17:29:22,168 - INFO # Success: i2c_0 read 1 byte(s) from reg 0x01 : [0xe3]
Change looks good. ACK!
Contribution description
This commit changes the I2C0 SDA pin to 9 from 7.
This is because the CS43L22 is connected to scl6 and sda9.
This PR has been taken over from #8812 from @graznik.
It states:
The CS43L22 has an address of 0x5A (since the A0 pin is pulled down to ground) or 90 in decimal.
I don't have hardware to test on (at least stuff that works).
Testing procedure
If you get an acked response with a value between 0b11100000 and 0b11100011 (or 224 to 227 in decimal) which is the CHIP ID and REVISION.
Issues/PRs references
Taken over from #8812