0

NRF52 SENSE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

NRF52 SENSE

by ains98 on Thu Jul 15, 2021 7:53 am

Hi!
Strange things happening when using for loop and wire.write();
I sending 8 KBytes + 16 bytes total 8208 bytes inside for loop
In this situation some first bytes are sent but then sending stops but for loop keeps looping till end.
i also added a delay but that also not helped.
i checked with signal analizator .

my code is simple.
read serial data
Store to array.
Send array data to I2C

anyone know how this can be solved?

ains98
 
Posts: 1
Joined: Thu Jul 15, 2021 7:35 am

Re: NRF52 SENSE

by dastels on Thu Jul 15, 2021 9:43 am

From the Wire library reference (https://www.arduino.cc/en/Reference/Wire):
The Wire library implementation uses a 32 byte buffer, therefore any communication should be within this limit. Exceeding bytes in a single transmission will just be dropped.

Dave

dastels
 
Posts: 6804
Joined: Tue Oct 20, 2015 3:22 pm

Re: NRF52 SENSE

by delphamuir on Thu Jul 22, 2021 12:55 am

dastels wrote:From the Wire library reference (https://www.arduino.cc/en/Reference/Wire friday night funkin):
The Wire library implementation uses a 32 byte buffer, therefore any communication should be within this limit. Exceeding bytes in a single transmission will just be dropped.

Dave


Thank you for the clarification, Dave. That helps a lot!

delphamuir
 
Posts: 1
Joined: Thu Jul 22, 2021 12:41 am

Please be positive and constructive with your questions and comments.