NRF52 SENSE

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ains98
 
Posts: 1
Joined: Thu Jul 15, 2021 7:35 am

NRF52 SENSE

Post by ains98 »

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?

User avatar
dastels
 
Posts: 15817
Joined: Tue Oct 20, 2015 3:22 pm

Re: NRF52 SENSE

Post by dastels »

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

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

Re: NRF52 SENSE

Post by delphamuir »

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!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”