| The following warnings occurred: | |||||||||||||||
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.34 (Linux)
|
![]() |
|
Freeplay CM4 - Printable Version +- Freeplaytech Forum (https://forum.freeplaytech.com) +-- Forum: Freeplay Zero / Freeplay CM3 / Game Pie Advance (https://forum.freeplaytech.com/forumdisplay.php?fid=24) +--- Forum: Freeplay Zero/CM3 (AKA GPA) Hardware (https://forum.freeplaytech.com/forumdisplay.php?fid=25) +--- Thread: Freeplay CM4 (/showthread.php?tid=5392) |
RE: Freeplay CM4 - smoscar01 - 07-22-2022 Thanks again, Flavor! I can definitely try soldering to 2&3. I'm borrowing another cm4 from a friend because apparently it is not unheard of that I2C ports don't work on some compute modules. RE: Freeplay CM4 - Flavor - 07-23-2022 I feel like we need another way to test the CM4 separately, then with the CM3 adapter, then with the Freeplay addon. I really doubt that this is a i2c port/hardware problem, but it's possible. Do you have a regular Raspberry Pi 4 (or maybe 3 or Zero 2, etc) to test some things? RE: Freeplay CM4 - smoscar01 - 07-24-2022 One of the magnet wires became loose. I assume this happened when pushing the board down to to the connector, and had to solder it again (see photo) Now when I run `i2cdetect` I see devices on every address: Code: pi@retropie:~ $ i2cdetect -y 6My config file is still the same as before: Code: pi@retropie:~ $ cat /boot/config.txt This kind of feels like progress, I guess it's something haha Note: oh and i2cdetect doesn't take as long as before RE: Freeplay CM4 - Flavor - 07-24-2022 You show dtoverlay=i2c6,pins_0_1 But used i2cdetect 1 That’s a mismatch RE: Freeplay CM4 - smoscar01 - 07-24-2022 I'm not sure I follow. I'm running `i2cdetect -y 6`. If I list the buses I get the following: Code: pi@retropie:~ $ i2cdetect -lShould I be trying bus 1 in the config.txt file instead? Edit: Trying bus 1 shows similar results, the only difference is that mk_arcade_joystick_rpi is configured to try to find something in I2C1 so dmesg shows this: Code: pi@retropie:~ $ dmesg | grep i2c`mk_arcade_joystick_rpi: request_module i2c_bcm2835 returned 0` looks wrong. Would that be a library not found type of error? That seems to be ok, but the mk_arcade_joystick_rpi still seems to be failing to find the analog chips Code: pi@retropie:~ $ dmesg | grep mkPS: I can also test on a CM4 IO board but I don't think I have any I2C devices RE: Freeplay CM4 - smoscar01 - 07-27-2022 tldr; I think my wiring was too long and/or had some short somewhere. I ended up redoing the wiring but this time I used shorter magnet wire to connect to pins 44 and 45 on the Freeplay board (see attached picture) I then used the i2c6 configuration with GPIO0 as data and GPIO1 as clock and finally saw I2C devices Code: pi@retropie:~ $ i2cdetect -lI then edited the `mk_arcade_joystick.conf` to use bus 6 and I got joysticks running now Thanks for the patience, Flavor
RE: Freeplay CM4 - Flavor - 07-27-2022 OH SNAP! Awesome news. I was hoping to have time to image an SD and boot up the CM4 IO board today. Now it looks like you beat me to a fix, which is great. What's next? Does that get all the pieces working? RE: Freeplay CM4 - smoscar01 - 07-27-2022 Thanks! I still want to compile the display drivers running at different speeds so I don't have to change the core_freq through config.txt and maybe add a pair of heatsinks to cool it down. Spoilers: considering the CM4 can handle a second HDMI display I'd like to eventually turn it into something like the attached image (I might not be able to pull it off though) RE: Freeplay CM4 - Flavor - 07-28-2022 That would be cool/impressive! The way fbcp works is that it is a copy of the HDMI output. If I were to tackle this project, I would try to see if I could make it copy the HDMI that isn't being routed to the HDMI connector. Does that make sense? Right now, I think, if you plug in HDMI, you'll see the same thing on both screens, right? So, if you can switch the config.txt stuff (and fbcp stuff) to output to the OTHER HDMI (that you can not plug into), and get that working, it would be a good first step. Then, you'd want to enable the HDMI output on the HDMI that does have a HDMI socket (on our Freeplay CM3 board). See if you can get any output on that while the system is still running properly on the LCD. I hope that makes sense. RE: Freeplay CM4 - smoscar01 - 07-29-2022 Thanks! That makes sense I have never seen a 3.2 inch screen with HDMI input. It might not even exist due to the smaller resolution. So I was thinking I was going to need to do something on an fpga to convert HDMI to SPI or whatever interface the display I end up choosing uses. For emulators like Drastic, if I have to go the fpga route (which I hope I do not) I might end up trying to copy only a portion of the framebuffer on the fpga and do the same on the fbcp for the other screen. This hopefully allows me to split the image without additional processing on the Pi. Edit: it looks like they exist now: https://www.waveshare.com/product/displays/3.2inch-hdmi-lcd-h.htm |