-
Notifications
You must be signed in to change notification settings - Fork 986
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 write a buffer bug ? #661
Comments
it seems like it is depended on the size of what im sending ... so ... can anyone explain why ? |
Hi @amirc2013 To Reproduce Desktop (please complete the following information):
Board (please complete the following information):
Additional context Full sketch. Which I2C device you used. how it is wired. Do you use PULLUP resistors on the line... |
@amirc2013 |
Bug : |
@amirc2013 |
I will send everything later when I come back home ok ? Thanks
…On Tue, Sep 24, 2019, 11:13 Frederic Pillon ***@***.***> wrote:
@amirc2013 <https://github.com/amirc2013>
OK but you do not provide enough information.
Which board you used, which I2C hardware, how it is wired.
As said I could not help without more info.
I do not ask to close the issue, only to have more info to be able to
help...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#661?email_source=notifications&email_token=ACX2F4UVHRE2SNUOD5GHMYTQLHD4DA5CNFSM4IYOIVM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7NQAQA#issuecomment-534446144>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACX2F4S5MNJ7YDGMX3CQDJDQLHD4DANCNFSM4IYOIVMQ>
.
|
No worries ;) |
I2C buffer is 32 bytes. Maybe that is the problem? |
Right by default |
Writing and uploading an answer right now. sorry for the delay
בתאריך יום ג׳, 24 בספט׳ 2019 ב-11:42 מאת Frederic Pillon <
notifications@github.com>:
… No worries ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#661?email_source=notifications&email_token=ACX2F4SZX6FEXDHJJEJCPTLQLHHHXA5CNFSM4IYOIVM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7NSYDQ#issuecomment-534457358>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACX2F4U2KX3GSP3EQKTXGG3QLHHHXANCNFSM4IYOIVMQ>
.
|
This is the simple formation of the code Im using for writing to the I2C. My Real Program is really big and it is not understandalbe
The bug : My board : Nucleo L4R5ZI Hardware Revision:How can I check that ? I don't use any extra pull-up resistors.. Only connect a micro-controller to my STM with level shifter in the middle. |
How did you install it? Boards manager? Using git repo? Anyway you can check here: Arduino_Core_STM32/cores/arduino/stm32/stm32_def.h Lines 5 to 21 in fb57942
Could you be more precise about this? which microconttoller and level shifter? how are they wired. |
I installed it with Boards manager - yes This is my version:
About the wiring : It is an enterprise micro-controller and I just can't say which one is it yet :/ I don't have a resistors on the I2C but maybe on the board of the other micro-controller it has one ? I can put some resistor on the line but as I saw on the logic analyzer - all the other part of the i2c communication are working. |
any photos or schematics? |
new update : maybe optimization ? |
I've found the issue. |
Well, I'm glad that I point the issue in the right place. |
I will try to see if I'm able to remove uint8_t date size limitations as HAL can handle uint16_t but I could not promise. In that case you would be able to send your 0x1000 in 16 times. |
I wish you luck, it is really important to me. |
Any updates on that. I have the same issue. I cant send string with Wire. for example Wire.write("hello"); |
This is not related. Here the issue is for buffer higher than 32 in receive |
Current status:
32 is the Arduino standard. The Master Tx has been extend to support the X-Shield NFC nevertheless |
Hi @amirc2013, |
Im trying to send a buffer over a I2C communication.
this is the code i used :
some how only the last byte has been sent ... why ?
The text was updated successfully, but these errors were encountered: