eclipse / mraa

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.

Home Page:http://mraa.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RPI4-64 does not detect i2c sensors while RPI4-32 does

g-vidal opened this issue · comments

I have compiled a debian 64 bit image using @drtyhlpr rpi23genimage, then compiled mraa with no problem. I change the code as stated in #1078 The binaries work but no sensor is detected with mraa-i2c detect 0

ens-ife@raspife4-64:~$ mraa-i2c detect 0
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

The same command with the same breadboard works perfecty on a 32 bit image :

vidal[~] balfourdowns-€ :  mraa-i2c detect 0
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- 39 -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- 77 -- -- -- -- -- -- -- -- 

Am I doing something wrong or mraa needs some changes to work on 64 bit, in that case any hope to get it working ?
RPI-4 bullseye images with mraa and upm installed I used can be downloaded from this server and building process is detailed here in french with copied code blocks

After many tests it seems that the problem come fro the order choosen tu plug the pins....

 Clock - Data - Power 

provide the results that are more often working. Maybe the problem is due to the lack of power (?) or anything else... If anybody experience the same issue please reopen and comment.