Pull-ups on Raspberry Pi 3B+
Dave Higton (1515) 3526 posts |
One other thing on testing. All the GPIO lines that are brought out to the expansion connector are in the first 32. The reduced schematic doesn’t give any clue as to the possibility that GPIO lines in the next bank might be brought out to another connector. This means that I can’t verify that the second pull up/down clock enable register is being correctly addressed. If anyone has any extra knowledge, I’d appreciate it being shared with me. It’s unlikely to be of much importance to us, of course, but I’d like to be thorough if I can. |
Chris Hall (132) 3554 posts |
Why not set the pull up (or down) and then read the input status? You don’t need access to the pin. |
Sprow (202) 1158 posts |
You can submit it yourself if you have a ROOL GitLab account, though it must be said that learning to use git could be the thing that tips you over the edge. For a 1 or 2 line change it might be quicker to email it in: the address is the same since ROOL was founded 14 years ago. |
Steve Drain (222) 1620 posts |
It will be no use to you, but they are available on the Compute Module. If you happened to have a CM development board and a means to put RISC OS on a CM 1, then you could test them, but Chris’s idea is easier. ;-) 1 How to do that had me stumped, even if it is possible. ;-( |
Colin (478) 2433 posts |
Can you just edit the file in GitLab website. I note files have an edit option and clicking on it shows that you can create a merge request from the changed file. Does this work? Never tried it myself. |
Chris Hall (132) 3554 posts |
and a means to put RISC OS on a CM It is a two step process. First you download some software that presents the internal eMMC as a USB mass storage drive and then you just write an image to it as you would an SD card. You need the development board to do this. |
Dave Higton (1515) 3526 posts |
I’ve covered both bases: I’ve applied for a ROOL GitLab account, and I’ve sent a diffs file to code@. Now I just have to wait. And so does anyone else who wants to use pull-ups on a Raspberry Pi. |
Andrew Conroy (370) 740 posts |
Certainly my current project is now on hold until this bug fix gets incorporated into the daily download. It also explains why I’ve had all sorts of previous issues on earlier projects! |
Dave Higton (1515) 3526 posts |
I’ve been granted a GitLab account, and I think I’ve submitted a merge request. |
Colin (478) 2433 posts |
You need to set the Assignee on the merge request form to ‘ROOL’ when you’ve done that ROOL appears as the assignee in the list at the right of the screen when you are looking at your merge request. Presumably that informs them of the request. |
Dave Higton (1515) 3526 posts |
Ah. I must look very carefully if I do this again. Well, I have replaced my earlier merge request with a new one, because Sprow pointed out that I’d only fixed the error in one of two places. Unfortunately I didn’t read your message until after I’d deleted my old branch and submitted the new merge request – which still has 0 assignees of course, now I know what to look for. There doesn’t seem to be a way to add an assignee to an existing merge request. Bugger. If I have to do this sort of thing again, I’ll know what to look for – that’s assuming I still remember… I have emailed code@ again anyway, so let’s hope that has the desired effect. |
Jeffrey Lee (213) 6048 posts |
Note that you can update existing merge requests with new changes. Merge requests are based on branches, so any update you push to your branch will automatically be reflected in the merge request.
Yeah, you need the “developer” permission on the target project/group in order to set/change the assignee. ROOL should grant you that permission (although I’m not sure if they do this automatically or whether you need to explicitly ask for it) Really gitlab should add support for a default assignee – “developer” access gives people access to a bunch of other stuff that they probably shouldn’t have access to (e.g. the ability to edit other people’s merge requests on the project) |
Steve Drain (222) 1620 posts |
I was going to post that earlier, but thought you must have seen it. Sorry. ;-)
So have I, but I cannot see myself going anywhere with it. If I do I will come to you for help. ;-) |
Steve Drain (222) 1620 posts |
I got that, but failed to make it work a few years back. I think there is something missing in my experience that is assumed in instructions for a lot of things like this. ;-( |
Chris Hall (132) 3554 posts |
I just used the instructions as given up to the point where the CM plus dev board is plugged into a Windows machine and appears as a mass storage device. So far no RISC OS involvement. I then used Win32DiscImager to write the 2Gbytes RCxx SD card image. I could then see the FAT partition on the mass storage device (CM+Dev board) just as if I had been writing to an SD card. Then replace (or remove) the link that tells it to boot via the USB socket and an external source and RISC OS starts up. |
Dave Higton (1515) 3526 posts |
The fix for pullup/pulldown control is in today’s nightly build. |
Andrew Conroy (370) 740 posts |
Follow up to this, is anyone currently working on the Pi4 GPIO? The BCM2711 appears to set pull up/down resistors in a different (and nicer) way to previous versions of the Pi, meaning that, as far as I can see, we can’t currently set them from RISC OS. Edit to add: Tested setting pull-ups on a Pi3 and Pi4, it now works on the Pi3 but doesn’t work on the Pi 4, so definitely needs fixing. |
Steve Drain (222) 1620 posts |
As I observed above:
So there are also the second, third and fourth items to consider, as well.
Well, not using the GPIO module. ;-) |