RaspberryPi OS 64-bit
-
Hi I am on 64-bit Raspberry Pi 4B
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-rpi6-rpi-v8
Architecture: arm64Unfortunately I can not use VEYE-MIPI-X I2C.sh since i2c_read and i2c_write are only for 32bit. Is there any support for 64-bit planned?
-
@natzguk Hello, these two programs are written in C language, and the source code is provided in the directory. You just need to recompile them.
-
@veye_xumm For anyone else. This works perfectly. Note that when recompiling on 64-bit Pi, the following warning is produced. It still builds. Just copy the outputs to bin and the scripts work fine.
./make.sh i2c_read.c: In function ‘main’: i2c_read.c:112:35: warning: passing argument 4 of ‘i2c_rd’ from incompatible pointer type [-Wincompatible-pointer-types] 112 | i2c_rd(fd, device_addr,reg_addr, &value, num); | ^~~~~~ | | | unsigned char (*)[512] i2c_read.c:20:68: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char (*)[512]’ 20 | static int i2c_rd(int fd, uint8_t i2c_addr, uint16_t reg, uint8_t *values, uint32_t n)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login