Go to advanced search

by buja
Wed May 27, 2020 5:19 pm
Forum: C/C++
Topic: New major release of GCC
Replies: 75
Views: 3036

Re: New major release of GCC

I received my aluminium case with cooling fans and decided to give GCC 10 a retry on my Pi 4B-4GB. Somehow I destroyed the SD card cover, so that Pi is bricked. A retry with a new Pi 4B-2GB resulted in these error messages after almost 23 minutes: /usr/bin/ld: failed to set dynamic section sizes: me...
by buja
Wed May 27, 2020 1:26 pm
Forum: Off topic discussion
Topic: Raspberry pi issues that were never fixed even for the new Pi 4
Replies: 44
Views: 1775

Re: Raspberry pi issues that were never fixed even for the new Pi 4

This topic is an incredible waist of time (and energy, data band with and whatever).
by buja
Wed May 27, 2020 8:28 am
Forum: Troubleshooting
Topic: RPi4 Rev 1.1. SoC Temperature readings...
Replies: 8
Views: 243

Re: RPi4 Rev 1.1. SoC Temperature readings...

I think there might be something wrong with vcgencmd as when you retrieve SoC temperature by cat /sys/devices/virtual/thermal/thermal_zone0/temp | awk '{print $1/1000}' | awk '{printf "%.2f\n", $1}' it shows more accurate readings... How do you know which method is more accurate? The number of deci...
by buja
Wed May 20, 2020 11:27 am
Forum: C/C++
Topic: my code those not give me output
Replies: 5
Views: 239

Re: my code those not give me output

I would use another name for your write function because write is also a Linux system call:

Code: Select all

void write(unsigned int ch)
Maybe something like this:

Code: Select all

void writelcd(unsigned int ch)
by buja
Sat May 09, 2020 6:22 pm
Forum: C/C++
Topic: New major release of GCC
Replies: 75
Views: 3036

Re: New major release of GCC

Confirmed: official case.
A full aluminium case is on its way. I might try again when it arrives.
Or try again without the official case lid on it.
by buja
Sat May 09, 2020 8:59 am
Forum: C/C++
Topic: New major release of GCC
Replies: 75
Views: 3036

Re: New major release of GCC

It took my Pi 4B-4GB over 7 hours to compile. I went to the supermarket and when I came back the installation script was waiting for me to tell if I wanted to install or not, so I should subtract 15 minutes or so. I left out the Fortran part and I did not install, for me it's just a sort of burn-in ...
by buja
Fri May 08, 2020 10:57 am
Forum: C/C++
Topic: New major release of GCC
Replies: 75
Views: 3036

Re: New major release of GCC

I am compiling GCC 10.1 on a Pi 4B-4GB. Right now it has been running for half an hour, all 4 cores are busy with it and the maximum CPU temperature so far is 68 degrees.
by buja
Wed May 06, 2020 9:53 am
Forum: Off topic discussion
Topic: 60 years ago...
Replies: 48
Views: 3168

Re: 60 years ago...

... The problem we've got in the commercial world is the systems that just plod along doing their stuff and have done for 30 years (largely unattended)... Still on the same old hardware? I heard that at a bank people were afraid to pull the plug on a certain system because they were not sure they c...
by buja
Mon Apr 27, 2020 2:33 pm
Forum: General discussion
Topic: Disappointment: why Raspberry Pi 4 was made exclusively for the "Linux Market"?
Replies: 95
Views: 4825

Re: Disappointment: why Raspberry Pi 4 was made exclusively for the "Linux Market"?

W. H. Heydt wrote:
Sun Apr 26, 2020 6:31 pm
Perhaps the OP should read this: https://web.mit.edu/~simsong/www/ugh.pdf
At least something to laugh about in this topic :lol:
by buja
Wed Apr 15, 2020 8:42 pm
Forum: Troubleshooting
Topic: Latest sw versions avail?
Replies: 7
Views: 284

Re: Latest sw versions avail?

apt list > file wc file 62853 190692 2568492 file In other words: you can list the packages with apt , the package manager, the one that you already use (right?) to update & upgrade Raspbian on your Pi. It generates over 62 thousand lines with package names and version numbers. If you are intereste...
by buja
Sat Apr 11, 2020 10:22 am
Forum: C/C++
Topic: Simple example using wiringPi won't work
Replies: 57
Views: 2124

Re: Simple example using wiringPi won't work

The endless and empty loop from the example in the OP serves a purpose: idling the program to wait for an interrupt to kick in. The optimizer fails to understand that, leaves it out of the executable code and by doing so changes the behaviour of the program. I understand the optimizer, but in this c...
by buja
Fri Apr 10, 2020 5:38 pm
Forum: C/C++
Topic: i2c
Replies: 11
Views: 579

Re: i2c

rckanta wrote:
Fri Apr 10, 2020 2:21 pm

Code: Select all

 ioctl (I2C_SLAVE , devid) < 0 
is always gives negative numbers .
Is there anything wrong in the

Code: Select all

#define I2C_SLAVE	0x0703
?
0x0703 (1795 decimal) is too big a number, the highest possible I2C slave address is 0x7F (decimal 127).
Maybe it is 0x73 (decimal 115), just a guess.
by buja
Fri Apr 10, 2020 6:12 am
Forum: C/C++
Topic: i2c
Replies: 11
Views: 579

Re: i2c

What is the error message?
by buja
Sun Apr 05, 2020 5:32 am
Forum: General discussion
Topic: Why nano?
Replies: 48
Views: 2087

Re: Why nano?

On the command line or console I use Joe because it uses the same key combinations that were hammered into my brain in the days of MS-DOS and Turbo Pascal and Turbo C. Reconfiguring Nano to use the same key combinations is possible, but who does that?
by buja
Sat Apr 04, 2020 6:50 pm
Forum: Raspberry Pi OS
Topic: GPL: getting source and commercial use
Replies: 32
Views: 912

Re: GPL: getting source and commercial use

@rpier1: I am not a lawyer, but some common sense is enough most of the time. Drgeoff was a bit faster than me, and he is right: the RPF is not selling Raspbian, but only a piece of electronics called Raspberry Pi. You are free to use it with any operating system you like, or without one, there is a...
by buja
Sat Apr 04, 2020 2:59 pm
Forum: Raspberry Pi OS
Topic: GPL: getting source and commercial use
Replies: 32
Views: 912

Re: GPL: getting source and commercial use

Don't hold your breath waiting for the RPF sending you a box of CD-ROMs with all the source code. :lol: Sure, the GPL and other open source licenses grant the availability of the source code, but who is responsible for that and how will the source be distributed? The RPF is the publisher/distributor...
by buja
Wed Apr 01, 2020 1:41 pm
Forum: C/C++
Topic: Writing a string to file
Replies: 9
Views: 601

Re: Writing a string to file

It is not that. I meant I assigned my test data to the "data" variable instead of reading it from the stdin. So what I wrote is correct. The question is how to populate the variable without reading it from the keyboard. It seems like a complicated question. I expected I would get a 1000 replies 1 m...
by buja
Mon Mar 30, 2020 1:26 pm
Forum: General discussion
Topic: Sony UK factory to close until 20 April
Replies: 13
Views: 692

Re: Sony UK factory to close until 20 April

This might be important in our own little Pi universe, but not so much in the big picture of what is going on right now in the world. And I have more than enough Pi's to keep me busy for a while. But I suppose this particular factory does a bit more than only manufacturing Pi's, this is only one lin...
by buja
Tue Mar 24, 2020 6:44 pm
Forum: Troubleshooting
Topic: GPIO fault test. How do I install and run pigpio and gpiotest.
Replies: 5
Views: 251

Re: GPIO fault test. How do I install and run pigpio and gpiotest.

As far as I know pigpio is installed by default (Raspbian Buster). If for some reason it is not, you can install it with sudo apt install pigpio I don't understand your download problem. If you use wget you will see some messages and a progress indicator. The download is ready when you see the shell...
by buja
Mon Mar 23, 2020 5:36 am
Forum: C/C++
Topic: Very slow memory write on large arrays
Replies: 13
Views: 627

Re: Very slow memory write on large arrays

I am surprised this little program (OP) runs at all, given that the loop counter is never declared.
by buja
Sat Mar 21, 2020 6:40 pm
Forum: C/C++
Topic: Learning C++ on my Raspberry Pi!!
Replies: 8
Views: 700

Re: Learning C++ on my Raspberry Pi!!

Two answers. 1. You probably don't need Codeblocks, any other IDE, or even no IDE at all, will do. It's C++ you want to learn, the IDE should not be important. 2. If you think Codeblocks makes it easier to follow the course, install it from the repository: sudo apt install codeblocks I just did it a...
by buja
Wed Mar 18, 2020 11:43 am
Forum: Beginners
Topic: Geany wiringpi
Replies: 4
Views: 231

Re: Geany wiringpi

Another option: untitled.C (upper case C) should be untitled.c (lower case c).
by buja
Sat Mar 14, 2020 6:41 pm
Forum: General discussion
Topic: So, what's the big new thing for this year's Pi Day (8th anniversary) ?
Replies: 130
Views: 7619

Re: So, what's the big new thing for this year's Pi Day (8th anniversary) ?

The big news on Pi day this year is that all the stores are sold out of toilet paper. Shelves empty everyplace. ... So in England too. I don't think I have ever seen completely empty shelves in a supermarket before, remarkable. Working from home is an option, but I think I will enjoy the quiet road...
by buja
Wed Mar 11, 2020 5:01 pm
Forum: General discussion
Topic: How To Get Mousepad To Read Standard Text Files
Replies: 99
Views: 4365

Re: How To Get Mousepad To Read Standard Text Files

Not relevant for this topic, but this raises the question why Mousepad replaced Leafpad in Raspbian, since Raspbian is LXDE based. From Mousepad Help/About: Mousepad is a fast text editor for the Xfce Desktop Environment. From Leafpad Help/About: GTK+ based simple text editor Additional information ...
by buja
Sun Mar 08, 2020 8:36 am
Forum: General discussion
Topic: NetSurf Lightweight Web Browser, using the RPI0W computer
Replies: 11
Views: 1402

Re: NetSurf Lightweight Web Browser, using the RPI0W computer

I tried to build NetSurf on a Pi 2B with Raspbian Buster. The process failed in the step to build the GTK front end with the following message: PKG.CNFG: GTK-3 (gtk+-3.0) failed frontends/gtk/Makefile:46: *** Unable to find library for: GTK-3 (gtk+-3.0). Stop. Instructions used are these (Last updat...

Go to advanced search