[hfsig] Fwd: Comment Submission from Jerry Davis K7AZJ - 12/15/2016

Ron Ott ronott at sbcglobal.net
Thu Dec 15 17:43:31 CST 2016


Hi Jerry -- I can't help with diagnosing your error messages, but I'm wondering whether you ever did a RPi operating system update? If not, do one and retry your commands.
Ron/W6XY

      From: TAPR Office <taproffice at tapr.org>
 To: TAPR HF Modes SIG Mailing List <hfsig at tapr.org> 
 Sent: Thursday, December 15, 2016 3:33 PM
 Subject: [hfsig] Fwd: Comment Submission from Jerry Davis K7AZJ - 12/15/2016
   



Begin forwarded message:


From: jdawgaz at gmail.com 
Date: December 15, 2016 at 4:14:27 PM CST
To: TAPROFFICE at tapr.org
Subject: Comment Submission from Jerry Davis K7AZJ - 12/15/2016
Reply-To: jdawgaz at gmail.com



Name:    Jerry Davis K7AZJ
Email:    jdawgaz at gmail.com

Message:    I have a raspberry pi 3. I did all the instructions for the WSPR PI GPIO4

I get warnings on the make, but it still builds anyway.

When I do the following command:
sudo ./wspr -r -o -s K7AZJ DM33XI 20 20m

My pi IMMEDIATELY crashes. I have a friend that has a rpi 3, and it doesn't crash.

I do not have my antenna or wspr pi board hooked up.

Here is the warnings on the make:

make
g++ -c -Wall -lm mailbox.c
g++ -Wall -lm -DRPI2 mailbox.o wspr.cpp -owspr
wspr.cpp:77:17: note: #pragma message: Raspberry Pi 2 detected.
 #pragma message "Raspberry Pi 2 detected."
                 ^
wspr.cpp: In function 'void wspr(const char*, const char*, const char*, unsigned char*)':
wspr.cpp:631:25: warning: narrowing conversion of '(n1 >> 20)' from 'long unsigned int' to 'char' inside { } is ill-formed in C++11 [-Wnarrowing]
    char packed[11] = {n1>>20, n1>>12, n1>>4, ((n1&0x0f)<<4)|((n2>>18)&0x0f),
                         ^
wspr.cpp:631:33: warning: narrowing conversion of '(n1 >> 12)' from 'long unsigned int' to 'char' inside { } is ill-formed in C++11 [-Wnarrowing]
    char packed[11] = {n1>>20, n1>>12, n1>>4, ((n1&0x0f)<<4)|((n2>>18)&0x0f),
                                 ^
wspr.cpp:631:41: warning: narrowing conversion of '(n1 >> 4)' from 'long unsigned int' to 'char' inside { } is ill-formed in C++11 [-Wnarrowing]
    char packed[11] = {n1>>20, n1>>12, n1>>4, ((n1&0x0f)<<4)|((n2>>18)&0x0f),
                                         ^
wspr.cpp:631:60: warning: narrowing conversion of '(((n1 << 4) & 255ul) | ((n2 >> 18) & 15ul))' from 'long unsigned int' to 'char' inside { } is ill-formed in C++11 [-Wnarrowing]
    char packed[11] = {n1>>20, n1>>12, n1>>4, ((n1&0x0f)<<4)|((n2>>18)&0x0f),
                                                            ^
wspr.cpp:632:3: warning: narrowing conversion of '(n2 >> 10)' from 'long unsigned int' to 'char' inside { } is ill-formed in C++11 [-Wnarrowing]
 n2>>10, n2>>2, (n2&0x03)<<6, 0, 0, 0, 0};
   ^
wspr.cpp:632:11: warning: narrowing conversion of '(n2 >> 2)' from 'long unsigned int' to 'char' inside { } is ill-formed in C++11 [-Wnarrowing]
 n2>>10, n2>>2, (n2&0x03)<<6, 0, 0, 0, 0};
           ^
wspr.cpp:632:25: warning: narrowing conversion of '((n2 << 6) & 255ul)' from 'long unsigned int' to 'char' inside { } is ill-formed in C++11 [-Wnarrowing]
 n2>>10, n2>>2, (n2&0x03)<<6, 0, 0, 0, 0};
                         ^
g++ -Wall -lm -DRPI2 gpioclk.cpp -ogpioclk
gpioclk.cpp:56:17: note: #pragma message: Raspberry Pi 2 detected.
 #pragma message "Raspberry Pi 2 detected."






---------------------------------------

Name: Jerry Davis
Callsign: K7AZJ
Address: 609 W. Latona Ln
City: Phoenix
State: AZ
Country: United States
Zip: 85041
Phone: 6027088692



_______________________________________________
hfsig mailing list
hfsig at tapr.org
http://www.tapr.org/mailman/listinfo/hfsig


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tapr.org/pipermail/hfsig/attachments/20161215/f0ac9ca5/attachment.html>


More information about the hfsig mailing list