Go to advanced search

by hippy
Sun Jul 21, 2019 3:01 pm
Forum: C/C++
Topic: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals
Replies: 23
Views: 1470

Re: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals

I could not find any online resources describing the methods enter() and peekMem() on any mainstream libraries, so I could not reproduce your code in Pascal or even C. Those methods are exposed by my own C Extension library. I have included the relevant parts below. I don't actually check all of me...
by hippy
Sun Jul 21, 2019 2:14 pm
Forum: Beginners
Topic: Using a desktop PC for Pi development
Replies: 6
Views: 262

Re: Using a desktop PC for Pi development

I’ve not tried a keyboard/video/mouse (KVM) switch - I would expect it to have to be an electronic on to work though. And often not cheap. I side-stepped the cost by having a separate Mouse/Keyboard switch and a separate HDMI switcher. If the PC has HDMI/VGA output and the monitor has HDMI(DVI)/VGA...
by hippy
Sun Jul 21, 2019 1:50 pm
Forum: Advanced users
Topic: RPi 4 USB-C socket as host
Replies: 8
Views: 235

Re: RPi 4 USB-C socket as host

The USB-C socket on the RPi 4 is officially meant to be device only No its not. It officially supports both device mode and host mode, as it is the same USB controller on the BCM283x SoC used on all previous models of Raspberry Pi. The best way to describe the situation is probably "the Pi 4B USB-C...
by hippy
Sun Jul 21, 2019 1:40 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1283
Views: 42110

Re: ScriptBasic

There is no attraction to RISC OS for me. It is incapable of doing anything I commonly want to do. My experience is different. RISC OS was entirely capable of doing what I was eager to do, which was to deliver internet content to a TV. That came in the form of the Bush IBX100 and friends - http://c...
by hippy
Sun Jul 21, 2019 1:05 pm
Forum: Python
Topic: Syntax error when opening/reading file
Replies: 14
Views: 236

Re: Syntax error when opening/reading file

hippy, No, "f.close" will be fine, it won't generate a runtime error -... No, no. "f.close" is certainly not fine. It does not actually close the file. It does not call the close method, only returns a reference to it. Naturally it does not return an error, but it has not done what you want. No, it...
by hippy
Sat Jul 20, 2019 4:49 pm
Forum: General discussion
Topic: Power Supply - Type C of Pi 4 model B
Replies: 20
Views: 875

Re: Power Supply - Type C of Pi 4 model B

That image with pin 38 incorrectly labelled as 37 is 'everywhere' - https://www.google.com/search?sa=G&tbm=isch&tbs=simg:CAQSkwEJmVaTV6WTGH0ahwELEKjU2AQaAAwLELCMpwgaYgpgCAMSKJ4TrhOcE5kTigi7E7kTmxOdE7oT4T28PrY-jTe9Po43jze5KIY3iDcaMD8MOvFRfsbJ0j12ljVb-dPtHlYzWRJRr9mgGuYraOK6hQBH1GOrh20KWc1y6gz_1ZyAEDA...
by hippy
Sat Jul 20, 2019 3:11 pm
Forum: Python
Topic: Syntax error when opening/reading file
Replies: 14
Views: 236

Re: Syntax error when opening/reading file

As python stops at the first error, it may well flag another once that one is fixed, it almost certainly will for the f.close further down the code . No, "f.close" will be fine, it won't generate a runtime error - I post-edited my post while you were posting ! Now it could be that something later o...
by hippy
Sat Jul 20, 2019 3:05 pm
Forum: Python
Topic: Syntax error when opening/reading file
Replies: 14
Views: 236

Re: Syntax error when opening/reading file

The error is in the line before that And that's frequently confusing but something one has to get used to as a Python programmer. Though it should indeed be "f.close()" It is not the actual cause of the Syntax Error. That will be because of the lack of an "except:" clause to go with the "try:". In ...
by hippy
Sat Jul 20, 2019 2:56 pm
Forum: Troubleshooting
Topic: Is the raspberry pi 4 still prone to gpio shorting?
Replies: 9
Views: 220

Re: Is the raspberry pi 4 still prone to gpio shorting?

Not one of these actions has killed any of my Pi's yet. Others have reported rendering their Pi unbootable, otherwise inoperable, or seriously over-heating, having done a variety of those things. You may have perhaps been lucky, though it could be that the evidence of any damage done has simply not...
by hippy
Sat Jul 20, 2019 2:16 pm
Forum: General discussion
Topic: Raspberry pi for coding on machine level?
Replies: 18
Views: 532

Re: Raspberry pi for coding on machine level?

I am impressed at the interest. Not many want to use machine language anymore. There are still a lot of Assembly Language coders out there, though very few Machine Language programmers. Are there any Machine Language Programmers doing that other than by being Assembly Language programmers ? I would...
by hippy
Sat Jul 20, 2019 12:30 pm
Forum: General discussion
Topic: Raspberry pi for coding on machine level?
Replies: 18
Views: 532

Re: Raspberry pi for coding on machine level?

Would you recommend learning to program on a Raspberry Pi, or on an old Windows laptop? It depends on what type of programming you are seeking to learn, what experience you have of using either, and how familiar you are with each. If you are looking at assembly language programming, low-level, syst...
by hippy
Sat Jul 20, 2019 11:00 am
Forum: Networking and servers
Topic: RPi as virtual PDF printer hooked up throughout USB ?
Replies: 4
Views: 131

Re: RPi as virtual PDF printer hooked up throughout USB ?

Even so, I don't think any of them can emulate a printer via USB. It looks like it should be possible as there is a printer gadget ... https://www.kernel.org/doc/Documentation/usb/gadget_printer.txt In theory it should be possible to create gadgets which can do anything. In practice most users are ...
by hippy
Fri Jul 19, 2019 11:17 am
Forum: Off topic discussion
Topic: Forum page update
Replies: 7
Views: 279

Re: Forum page update

It comes and goes for me. I put it down to "internet speed", okay when things are fast, like that when things are running a little slow. That could be down to the hosting site, caching, one's ISP, their caching, the backbone, local link, or even own local network.
by hippy
Fri Jul 19, 2019 10:49 am
Forum: Off topic discussion
Topic: Forum page update
Replies: 7
Views: 279

Re: Forum page update

I get that quite often and not just with this site. My guess is the browser gets most of the page, and renders what it has, before rendering it as it should be, is probably doing 'post download rearrangement'. I think what happens is the browser is getting the page content then stalling on downloadi...
by hippy
Fri Jul 19, 2019 9:25 am
Forum: General discussion
Topic: Power Supply - Type C of Pi 4 model B
Replies: 20
Views: 875

Re: Power Supply - Type C of Pi 4 model B

Step three: Identify which of the dozens of wires inside are 5v, ground and possibly D+, D- if you plan to use gadget mode. Step five: fail miserably and just take the previous, more sane advice - power the Pi via the GPIO header, 5v pin/s and ground If one takes a USB-A to USB-C cable there will o...
by hippy
Thu Jul 18, 2019 2:52 pm
Forum: General discussion
Topic: 32bits Linux OS on Raspberry Pi 3 B+
Replies: 9
Views: 266

Re: 32bits Linux OS on Raspberry Pi 3 B+

Yes exactly I want to run i386 32 bit software on it, How can I run i386 32 bit software on it can you tell me or is there any easy way to do that? QEMU can do that, run some Linux i386 executables 'as is'. But whether it will run yours, or be responsive enough, I have no idea. The best way forward...
by hippy
Thu Jul 18, 2019 12:25 pm
Forum: Off topic discussion
Topic: 1TB microSD Card is real!
Replies: 16
Views: 525

Re: 1TB microSD Card is real!

Interesting. I have yet to find a use for more than a third of a 64GB card (still 40GB free), so may be a bit before that finds a use here. I'm happy to accept 64GB should be enough for most people. Mind you I probably said that about 32GB, 16GB, 8GB, and 4GB as well. It is mostly media which requi...
by hippy
Thu Jul 18, 2019 12:07 pm
Forum: Off topic discussion
Topic: Something I'd like to see.
Replies: 31
Views: 938

Re: Something I'd like to see.

A decent and capable USB to SATA bridge would probably be of most benefit to people. Of course, but is it something the raspberry pi foundation should be focusing on? It would seem to fit Eben's willingness to step in where "the items being built didn't get it right". To me it would be similar to h...
by hippy
Thu Jul 18, 2019 11:22 am
Forum: Advanced users
Topic: UART communication between Pis
Replies: 15
Views: 393

Re: UART communication between Pis

/dev/serial0, /dev/serial1, /dev/ttyS0 and /dev/ttyAMA0 all appear to be there. You appear to be logged in as the default "pi" user. So it's not clear to me why you are getting "permission denied" errors. You could run the following commands and report back what you get - uname -a groups ls -l /dev/...
by hippy
Thu Jul 18, 2019 10:32 am
Forum: Advanced users
Topic: Updated bootloader for Pi4
Replies: 13
Views: 875

Re: Updated bootloader for Pi4

Conceptually it's the same as the bootcode in the Pi3 ROM, it's just possible to fix stuff after manufacture Absolutely and it's a great idea. On the downside it's a potentially new attack vector which could be exploited by anyone who had malicious intent. Such malicious attacks are unlikely but it...
by hippy
Thu Jul 18, 2019 12:44 am
Forum: Off topic discussion
Topic: Something I'd like to see.
Replies: 31
Views: 938

Re: Something I'd like to see.

A decent and capable USB to SATA bridge would probably be of most benefit to people.
by hippy
Wed Jul 17, 2019 9:50 pm
Forum: Advanced users
Topic: Updated bootloader for Pi4
Replies: 13
Views: 875

Re: Updated bootloader for Pi4

If you reflash your bootrom 100k times, you are doing something wrong. Or something else is. I was idly wondering how quickly one could brick someone else's Pi for them - not that I have any intention of doing so. About an hour I reckon. Though erase-cycles are often conservatively stated so it cou...
by hippy
Wed Jul 17, 2019 8:37 pm
Forum: Advanced users
Topic: Updated bootloader for Pi4
Replies: 13
Views: 875

Re: Updated bootloader for Pi4

Once again - Thanks.
by hippy
Wed Jul 17, 2019 8:15 pm
Forum: Advanced users
Topic: Updated bootloader for Pi4
Replies: 13
Views: 875

Re: Updated bootloader for Pi4

The sd-card rescue image will always work and also always resets any config i.e. it's a factory reset of the EEPROM. The ROM always runs recovery.bin on the sd-card in preference to the EEPROM so this will always be safe. The 'safe mode' / minimal bootloader (could do with a better name) is just en...
by hippy
Wed Jul 17, 2019 7:40 pm
Forum: Advanced users
Topic: Updated bootloader for Pi4
Replies: 13
Views: 875

Re: Updated bootloader for Pi4

There's a 'safe mode' recovery which will allow basic booting from sd-card to allow for a transaction but that's not ready just yet. Is rescuing oneself from an erased / corrupted Bootloader Eeprom not covered by booting an SD Card with the SPI Bootloader Eeprom Recovery files on it ? https://www.r...

Go to advanced search