Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No userport activity on GPIO pins? #203

Closed
1980alexGS opened this issue Dec 12, 2021 · 4 comments
Closed

No userport activity on GPIO pins? #203

1980alexGS opened this issue Dec 12, 2021 · 4 comments

Comments

@1980alexGS
Copy link

I cannot measure any activity on the GPIO pins, e.g. GPIO4, when I expect there to be. I am using v3.6.
I have a C64 program that I know activates userport outputs correctly (have tested on my real C64c)
I have an interface connected to the GPIO pins and they activate when tested using Python/GPIOzero
I have added the line
gpio_outputs_enabled=true
to the cmdline.txt file as instructed by README.md. I note the text file advises that entries should not be placed there but instead in machines.txt under the correct heading; I have done so and ensured that machine is active.
I have set the GPIO config to 4 in the F12 menu within the emulated environment. I note the description of 4 is N/A.
Does that mean 'not available' or somehow not applicable to my hardware? I am using Pi 3B+.

I wanted to test an older version (3.4?) but could not find how to download the image/zip.
I cannot test 3.7 as I get no display output from it.

Please test that userport output is working correctly in v3.6?

Thanks

@randyrossi
Copy link
Owner

randyrossi commented Dec 13, 2021 via email

@randyrossi
Copy link
Owner

randyrossi commented Dec 13, 2021 via email

@1980alexGS
Copy link
Author

1980alexGS commented Dec 13, 2021

Thank you very much for this information - it is especially helpful to know the meaning of N/A.

Before seeing your response, I managed to download 3.5 by using The Wayback Machine, and I was delighted when the user port worked for me in that version (#4 being Userport/Joy, not N/A). I shall now test the other versions again and report back. I’ve been adding to cmdline.txt.

Disregard my mention of 3.7 display output not working for me as I think that was a faulty SD card… no other version works on that card either, even though the files are all there :)

@1980alexGS
Copy link
Author

Thanks, Randy…
This has turned out to be user error on my part - I’m embarrassed and really sorry to have wasted your time.

I had been adding the line gpio_outputs_enabled=true
after the other lines in cmdline.txt.
It turns out if I put it as the first line, it works in all versions I’ve tested (3.4, 3.5, 3.6, 3.7). So easy, I’m sorry that it tripped me up for long enough to ask if there was something wrong. Also, it was much easier to know when it was working once I realised that ‘#4 N/A’ meant that it wasn’t enabled.

Thank you for all your great work. I will be running an old piece of software that controls the user port - once I have that working, I will certainly remember to support you on Patreon.

Kind regards from New Zealand
-Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants