This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TWI - Reading more that 255 packet size

Hi All,

I have looked through the devzone and cannot find a solution to this. I am using the nRF52832 SDK 15.2. Working with a BNO080 IMU over TWI.

I need to read more than 255 byte packet size (276 bytes) in one pass from the sensor upon power up. The BNO080 must upload all of this data before sending IMU data.

when i try reading one byte at a time in a loop, it does not work.

Is there any way to do this?

Regards,

Zoran

Parents Reply
  • Yes, modules are enabled in sdk_config. Try to set both NRFX_TWI_ENABLED and NRFX_TWIM_ENABLED, then create twi and twim instances with equal settings. For long sequence, call nrfx_twi_init, read your data, call nrfx_twi_uninit (release resources) then nrfx_twim_init (switch to EDMA module). I didn't do such thing and can't say whether it will work without modifications in sdk code, but it worth to try.

    But first, check twi module to ensure that it works for your case )

Children
No Data
Related