-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
I2C does not send correct data #319
I2C does not send correct data #319
Comments
Last informations about this issue. Here are two outputs, one expected (1st one, produced by TinyCLR) and the one produced by nanoFramework. They should be identical, which is obviously not the case. The code that generated those outputs is exactly the same for both systems. Output from TinyCLR (expected result) :
And the one produced by nf :
I think that there is something wrong in the buffers handling, here. |
Same behaviour on Quail, F429iDiscovery and Nucleo F746ZG. |
I would now add another issue raised by Stefan Falk on Slack : a simple Write() operation is taking between 8 and 11 ms to achieve ! |
That's explained by the new workflow with CLR events. |
I don't think that this applies, here. The 10ms timing is for 2 bytes sent... If 2 bytes don't fit in an execution slot, then we have another problem. |
Please read again the above. The smart algorithm is NOT implemented in the I2C code. Yet. If you have a different understanding please point the code line (or code block) that you see that is causing this behaviour. |
What I understand here is that when the "smart algorithm" will be coded, we will have such a 10ms penalty if the code decides that the data to be transferred won't fit in an execution slot. |
The penalty will depend on cpu clock and execution time, but yes, it will exist. |
- Fix nanoframework/Home#319 Signed-off-by: josesimoes <jose.simoes@eclo.solutions>
Details about Problem
When writing to an eeprom (I2C device), no data is written (resulting in no data read in this case).
The SDA line does not show any activity.
Quail firmware : preview617
Worked before? Yes, but can't remember which firmware version was ok.
Detailed repro steps so we can see the same problem
The following code was working "before" and is currently working as is on the same board with TinyCLR.
Screenshot (if applicable/relevant)
Screenshot using nanoFramework :
Screenshot using TinyCLR :
The text was updated successfully, but these errors were encountered: