I2C transmit lost byte !!!

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
dovnti18051996
Offline
Last seen:2 years 2 months ago
加入:2018-05-06 13:54
I2C transmit lost byte !!!

Hi Dialog,
Currently, I use SDK_1.0.14.1081 for USB KIT DA14683. Programming for OLED 128x32.
I have some problem.

1. When I using func "hw_i2c_write_buffer_sync()" for write data, but function stop at "while (hw_i2c_is_master_busy(id));".
所以我读数据表,认为它不需要so I remove that. After I remove that line, I can write data to OLED.
Something wrong, I test and compare with other board. I sure bytes order auto change in FIFO. How to fix that?
2. I want to write slave address when I transmit data. Because I use that I2C for mult slave. I want it easy to use so you can help me?

I really need help-Please, feedback soon
Thank!

Device:
CYibin
Offline
Last seen:7 months 21 hours ago
Staff
加入:2017-12-14 02:48
Hello,

Hello,

Can you upload the datasheet of the OLED you used?

For the questions:

1. What's the meaning of "test and compare with other board"? Do you mean that one firmware in different board that has the different results?

2. On master side, you have to give the slave address to the slave no matter there is only one slave or mult slaves. The target slave would feedback the ACK to the master when it got the address of itself