STMicroelectronics / fp-sns-datalog2

The FP-SNS-DATALOG2 function pack represents an evolution of FP-SNS-DATALOG1 and provides a comprehensive solution for saving data from any combination of sensors and microphones configured up to the maximum sampling rate. Please check st.com where a more recent version of the software might be available.
https://www.st.com/en/embedded-software/fp-sns-datalog2.html
Other
16 stars 1 forks source link

Bus error loading device_configuration.json + MLC_decission_tree.ucf STEVAL-STWINBX1 #19

Closed alejandrolabajos closed 1 month ago

alejandrolabajos commented 1 month ago

I created a custom classificator .ucf using UnicoGUI SDK.

The workflow i followed is:

Windows 11:

  1. Acquire data and create .ucf file with UnicoGUI. Working fine (except Unico data converter which is not working, conversion done with hsdatalog python based converter script)

  2. Use hsdatalog_GUI to configure the sensors and load the MLC configuration file. Working and classifying perfectly.

  3. Save device_configuration.json and MLC_configuration.ucf files for its use on final target device RPI4B.

Then moving to the final target device RPI4B:

  1. Not able to use hsdatalog_GUI (board not recognised, Issue #16 ).

  2. Using cli_example C++ based interface with the next command throws a "Bus error" after "HSD_DLLv2: DeviceManager created" message. ./cli_example -t 10 -f device_configuration.json -u MLC_configuration.ucf

pradolis commented 1 month ago

Hello @alejandrolabajos As commented out in #16 , the setup seems working on my side. Can you share both device_configuration.json and MLC_configuration.ucf you are using?

Best regards Simone

alejandrolabajos commented 1 month ago

Sure! the MLC file is basically a vibration classifier of a fan using different velocities, taking the input from ISM330DHCX Accelerometer and Gyro (as the MLC datasheet info says, both with ODR 104Hz, FS=2g on Acc and dps=125 on gyro). The device_config enable all sensors i need to use for datalogging, with ISM330DHCX parameters matching the previous config for creating MLC file.

device&MLC_config.zip

Many thanks!

pradolis commented 1 month ago

Hello @alejandrolabajos I replicate your setup and both C++ and Python GUI works on my side. I guess the issue on your setup depends on a misconfiguration during the SDK setup (maybe you launched the 32 bit or linux setup instead of the 64 bit?).

v2.2.0 is fixing some troubles (both on firmware and software), so once I'll push the package I suggest you to update it. Package will be closed soon and I should be able to push it in a couple of weeks.

I will keep the issue open and notify you once v2.2.0 is online. Then, I'll close the issue. Best regards Simone

alejandrolabajos commented 1 month ago

Hi @pradolis

thank you a lot for your support, i'll wait for v2.2.0 and try it again watching carefully which setup i launched. For the moment I will close this issue and I will come back with my feedback and reopen it again if needed.

Many thanks, Alex