Joystick Driver Chip not found CM3 Build
#6
Here's a list of things that stood out.

Using the CM3Retropie4.6 img I get this issue when trying to set up the joysticks:

Code:
gcc -o mk_joystick_config mk_joystick_config.cpp -lwiringPi -lpthread
sudo ./mk_joystick_config -maxnoise 60 -adcselect
###### Before Start ######
Very important: Because this program is design to create a new configuration fil                                                                                                                                                             e from scratch, it can really mess controls if something goes wrong.
If you think you have make a mistake somewhere, you will be able to restart anal                                                                                                                                                             og and GPIO part as you want.
Once the new configuration is setup, you may need to reconfigure input from the                                                                                                                                                              EmulationStation settings menu, you should also consider to restart your device.

###### Killing MK Arcade Joystick Rpi Driver ######
Driver killed with success

###### Bind button for User interaction ######
(A) button bind on pin 16
(B) button bind on pin 18

You are about to start new configuration


###### Analog part ######
4 ADC chip(s) detected
Please select the right type:
MCP3021A will be used

Very important: Calibration in progress
Please touch nothing for 5sec
Done

LEFT analog X axis detected, direction reversed

LEFT analog Y axis detected, direction reversed

RIGHT analog X axis detected, direction reversed

RIGHT analog Y axis detected

LEFT Analog limits :
X : 77 (0x4d) : min=1050  max=2987
Y : 75 (0x4b) : min=1099  max=3357
RIGHT Analog limits :
X : 72 (0x48) : min=766  max=2719
Y : 79 (0x4f) : min=839  max=3418
Does theses values look good? (A) for Yes, (B) to restart

Analog Auto Center is a feature that allow non-centered analog(s) stick (eg. PS                                                                                                                                                              Vita 1000) to work fine this the driver.
Important: if enable, you will need to NOT move the analog(s) stick until system                                                                                                                                                              fully started.
Feature disabled

###### GPIO part ######

Note: If (Hotkey) is bind to (Select) in EmulationStation, use the Power Slider                                                                                                                                                              as [Hotkey]
[Hotkey] button bind on pin 20
Hotkey mode set to Toggle

[Dpad Up] button bind on pin 4

[Dpad Down] button bind on pin 17

[Dpad Left] button bind on pin 6

[Dpad Right] button bind on pin 5

[A] button bind on pin 16

[B] button bind on pin 18

[X] button bind on pin 15

[Y] button bind on pin 24

[Start] button bind on pin 19

[Select] button bind on pin 26

[L1] button bind on pin 14

[R1] button bind on pin 23

[L2] button bind on pin 43

[R2] button bind on pin 42

[L3-C] button skipped

[R3-Z] button skipped

Press (B) to Restart the GPIO binding, (A) to Continue

###### Building configuration file ######

Configuration file sample:
options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=77 y1addr=75 x1dir                                                                                                                                                             =-1 x1params=1109,3046,16,300 y1dir=-1 y1params=739,1109,16,300 x2addr=72 y2addr                                                                                                                                                             =79 x2dir=-1 x2params=1377,3330,16,300 y2params=839,3418,16,300 gpio=4,17,6,5,19                                                                                                                                                             ,26,16,18,23,24,15,14,-20,43,42,-1,-1,-1,-1,-1,-1

Are you really sure? (A) for Yes, (B) for No
Backup: '/etc/modprobe.d/mk_arcade_joystick-1995465056.bak'
Saved: '/etc/modprobe.d/mk_arcade_joystick.conf'

Restarting MK Arcade Joystick Rpi Driver
modprobe: ERROR: could not insert 'mk_arcade_joystick_rpi': Invalid argument
Something went wrong... Revert back
Restored: '/etc/modprobe.d/mk_arcade_joystick.conf'

Restarting MK Arcade Joystick Rpi Driver
modprobe: ERROR: could not insert 'mk_arcade_joystick_rpi': Invalid argument
sudo mv /opt/retropie/configs/all/emulationstation/es_input.cfg /opt/retropie/co                                                                                                                                                             nfigs/all/emulationstation/es_input.cfg.bak
SYSTEM SHUTTING DOWN NOW
sudo reboot

Trying the command i2cdetect -y 1 using the CM3 4.6 img simply states that the command was not found. I believe the driver isn't loaded.

Alternatively, on the CM3 and Zero2 img using i2cdetect -y 1 gets me:
Code:
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Dead nothing on all -y inputs.
Reply


Messages In This Thread
RE: Joystick Driver Chip not found CM3 Build - by AusLynch17 - 04-19-2022, 11:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)