cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, I'm working with STEVAL-STWINKT1B kit and the latest version of FP-SNS-DATALOG1 sw package. I'm trying to set the ISM330DHCX 's ODR to 208 samples/s but in this case the acquisitions are corrputed. Is there any known bug?

AZane.3
Associate
  • The ODR is set by modifying the DeviceConfig.json file.
  • Only the ISM330DHCX acquisition is corrupted.
  • By debugging the code seems that the problem could be about the calculation of parameter "sdwritebuffersize" in function "SDM_CalculateSdWriteBufferSize". In this case function returns sdwritebuffersize = 512
2 REPLIES 2
Eleon BORLINI
ST Employee

Hi @AZane.3​ ,

Yes, you are right. The issue solves incrementing the minimum dimension of the buffer used for the data writing on the SD card.

You only need to change a macro in the sdcard_manager.h, that is then used in the SDM_CalculateSdWriteBufferSize you mentioned.

If you set:

#define SDM_MIN_BUFFER_SIZE    1024 (originally should be 512)

the issue should be solved.

If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.

-Eleon

AZane.3
Associate

Hi @Eleon BORLINI​,

I tried to set SDM_MIN_BUFFER_SIZE to 1024 and it still does not work. However, by setting this macro to 4096 it seems to work correctly (data are no longer corrupted).

Do you find the same behaviour? In my case the activated sensor are 5 (IIS3DWB_ACC, HTS221_TEMP, HTS221_HUM, ISM330DHCX_ACC and IMP23ABSU_MIC).

Thanks for you answer,

Andrea