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
17 stars 1 forks source link

cli_example not working on RPI 4 Model B (32/64 bit Raspbian OS) #15

Closed alejandrolabajos closed 4 months ago

alejandrolabajos commented 4 months ago

Hello, I am trying to run the cli_example script using my Raspberry Pi 4 model B, but I am facing different issues depending on the OS installed in the RPI.

Some details before define how to reproduce the errors.

Error using Raspberry Pi OS (bookworm) 32-bit or Raspberry Pi OS Legacy (Debian based) 32-bit.

Same error encountered with both 32-bit OS.

My configuration:

rpi1_B rpi1_C

Workflow:

I followed the README_Linux instructions located in cli_example folder (/Utilities/cli_example), but instead of using files of Linux folders i've used the files located in /raspberryPi_setup and /bin_raspberryPi4_32.

rpi2

Error message received:

rpi3

Error using Raspberry Pi OS (bookworm) 64-bit.

This is also mentioned in the Issue #8 by the user @francus_dev, the workflow proposed by @pradolis is not working, I got the same issue.

My configuration: image

Error message received:

./cli_example: error while loading shared libraries: libhs_datalog_v2.so: wrong ELF class: ELFCLASS32

Any help will be appreciated, since i am not an expert and i didn't have this type of difficulties running it on my Windows host PC. Thanks.

alejandrolabajos commented 4 months ago

Marked as closed.

SOLVED: Regarding the section "Error using Raspberry Pi OS (bookworm) 32-bit or Raspberry Pi OS Legacy (Debian based) 32-bit.", the problem appeared because I wasn't disconnecting the board before running setup.sh script located in /raspberryPi_setup. Executing the script with the board disconnected, and then connecting the board to RPI and running cli-example located in /bin_raspberryPi worked perfect.

NOT SOLVED: Regarding the section "Error using Raspberry Pi OS (bookworm) 64-bit." I did not found the cause for this issue.

pradolis commented 4 months ago

Hello @alejandrolabajos Thanks for your feedbacks. If I well understood, the issue that still persists is the one already shared in #8 . Am I right?

Best regards Simone

alejandrolabajos commented 4 months ago

Hi @pradolis

You are totally right.

Thank you for your fast reply, Alex