-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error compiling in LSOS #55
Comments
which LSOS version are you using? Please note that the master is already obsolete for some time now. Use one of the braches, best is 1.5 |
Using 1.5 I get the following error code on compile: In file included from LightSaberOS.cpp:45: |
Did you read the instructions? please use Arduino IDE version 1.6.11 or newer |
Looks like I had the wrong version of the IDE...though I had updated. Now getting the following errors: Arduino: 1.8.2 (Windows 10), Board: "Arduino Nano, ATmega328" In file included from sketch\Buttons.cpp:10:0: sketch\Config.h:263:9: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
sketch\Config.h:274:7: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
sketch\Config.h:332:7: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
sketch\Buttons.cpp:810:17: warning: extra tokens at end of #else directive
sketch\Buttons.cpp:823:17: warning: extra tokens at end of #else directive
sketch\Buttons.cpp:835:17: warning: extra tokens at end of #else directive
sketch\Buttons.cpp:1102:17: warning: extra tokens at end of #else directive
sketch\Buttons.cpp:1114:17: warning: extra tokens at end of #else directive
sketch\Buttons.cpp:1126:17: warning: extra tokens at end of #else directive
In file included from sketch\SoundFont.h:12:0,
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h: In instantiation of 'LinkedList::LinkedList() [with T = unsigned int]': sketch\SoundFont.h:30:14: required from here C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:101:6: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] root=false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:102:6: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] last=false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h: In instantiation of 'LinkedList::~LinkedList() [with T = unsigned int]': sketch\SoundFont.h:30:14: required from here C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:121:7: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] last = false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h: In instantiation of 'bool LinkedList::add(T) [with T = unsigned int]': sketch\SoundFont.h:352:15: required from here C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:192:12: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] tmp->next = false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h: In instantiation of 'T LinkedList::pop() [with T = unsigned int]': C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:279:14: required from 'T LinkedList::shift() [with T = unsigned int]' C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:320:9: required from 'void LinkedList::clear() [with T = unsigned int]' sketch\SoundFont.h:246:22: required from here C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:248:13: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] tmp->next = false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:256:8: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] root = false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:257:8: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] last = false;
In file included from sketch\ConfigMenu.cpp:9:0: sketch\Config.h:263:9: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
sketch\Config.h:274:7: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
sketch\Config.h:332:7: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
In file included from sketch\Light.h:14:0,
sketch\Config.h:263:9: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
sketch\Config.h:274:7: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
sketch\Config.h:332:7: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
In file included from C:\Users\Dan and Heather\Documents\Arduino\LightSaberOS\LightSaberOS.ino:37:0: sketch\Config.h:263:9: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
sketch\Config.h:274:7: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
sketch\Config.h:332:7: warning: extra tokens at end of #else directive #else if DIYINO_STARDUST
C:\Users\Dan and Heather\Documents\Arduino\LightSaberOS\LightSaberOS.ino:1035:13: warning: extra tokens at end of #else directive
C:\Users\Dan and Heather\Documents\Arduino\LightSaberOS\LightSaberOS.ino: In function 'void SleepModeEntry()': LightSaberOS:1452: error: 'class DFPlayer' has no member named 'sleep' dfplayer.sleep();
In file included from C:\Users\Dan and Heather\Documents\Arduino\LightSaberOS\LightSaberOS.ino:33:0: C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h: In instantiation of 'LinkedList::LinkedList() [with T = unsigned int]': sketch\SoundFont.h:30:14: required from here C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:101:6: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] root=false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:102:6: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] last=false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h: In instantiation of 'LinkedList::~LinkedList() [with T = unsigned int]': sketch\SoundFont.h:30:14: required from here C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:121:7: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] last = false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h: In instantiation of 'bool LinkedList::add(T) [with T = unsigned int]': sketch\SoundFont.h:352:15: required from here C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:192:12: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] tmp->next = false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h: In instantiation of 'T LinkedList::pop() [with T = unsigned int]': C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:279:14: required from 'T LinkedList::shift() [with T = unsigned int]' C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:320:9: required from 'void LinkedList::clear() [with T = unsigned int]' sketch\SoundFont.h:246:22: required from here C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:248:13: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] tmp->next = false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:256:8: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] root = false;
C:\Users\Dan and Heather\Documents\Arduino\libraries\LinkedList/LinkedList.h:257:8: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] last = false;
Multiple libraries were found for "Wire.h" This report would have more information with |
I've uploaded the calibration code but nothing happens in the serial monitor... |
Did you set the right baud rate? Should be 110k (from the top of my head). What about the previous error? Does it still persist? |
I set the baud rate to 115200. The serial monitor still doesn't pick anything up. I've tried the DIYino test sketch and the serial monitor picks it up but sticks at "Initializing I2C devices" |
Are you using a DIYino board? If yes, the test sketch must work. If not, please check your connections. BTW, in the LSOS code most of the seerial messages are disabled with compile directives not to take precious code space. So now it only brings mostly one single line and then nothing more. |
Yes I'm using the DIYino board. Some good news...I've managed to get the MPU configuration running - it said the test failed in the end but asked me to save values to EPPROM. I'm assuming this is correct? I've then run the DIYino test sketch and the serial monitor now loads and runs a script but is constantly running showing a range of acceleration and gyro values. Is this correct? When trying to upload LSOS 1.5 I get this: Arduino: 1.8.2 (Windows 10), Board: "Arduino Nano, ATmega328" C:\Users\Dan and Heather\Documents\Arduino\LightSaberOS\LightSaberOS.ino: In function 'void SleepModeEntry()': LightSaberOS:1452: error: 'class DFPlayer' has no member named 'sleep' dfplayer.sleep();
exit status 1 This report would have more information with |
if you comment the line it should work fine.
Jason "Kuma" Brinkerhoff
*Mad Science Workshoppe, *proprietor
http://jbkuma.com/workshoppe
…On Fri, Apr 7, 2017 at 9:57 AM, dannyc09 ***@***.***> wrote:
Yes I'm using the DIYino board.
Some good news...I've managed to get the MPU configuration running - it
said the test failed in the end but asked me to save values to EPPROM. I'm
assuming this is correct?
I've then run the DIYino test sketch and the serial monitor now loads and
runs a script but is constantly running showing a range of acceleration and
gyro values. Is this correct?
When trying to upload LSOS 1.5 I get this:
Arduino: 1.8.2 (Windows 10), Board: "Arduino Nano, ATmega328"
C:\Users\Dan and Heather\Documents\Arduino\LightSaberOS\LightSaberOS.ino:
In function 'void SleepModeEntry()':
LightSaberOS:1452: error: 'class DFPlayer' has no member named 'sleep'
dfplayer.sleep();
^
exit status 1
'class DFPlayer' has no member named 'sleep'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATdCMDb3UO4chxKB60EKZiN5zRhT8S-tks5rtkDhgaJpZM4Mz4eV>
.
|
Comment that line and all similar to it |
Hi dannyC, does it work now? What you described about the MPU calibration and the DIYino Testsketch is OK. |
On suggestion from jbkuma I removed the troublesome sleep command. Still not sure what causes it, probably a library mismatch. |
Ok...apologies for the delay. Finally got it to compile and upload..whoop! On the downside I managed to fry my board and ruined the contacts for connecting the string blade. My own fault so it looks like I'll be ordering a new board. On a side note I did find that the sounds worked a bit weirdly:
I will try again with a fresh board and see if that makes any difference. I've learnt from my mistakes here so fingers crossed my v2 attempt will be more successful. |
Did you calibrate the MPU? If you tap the board did it clash?
If the hum was sounding on power that is most likely due to a configuration
issue in your Soundfont.h, or your SD card wasn't prepared properly. The
SD card must be prepared properly, and Soundfont.h must be made to exactly
match the contents of the card.
Jason "Kuma" Brinkerhoff
*Mad Science Workshoppe, *proprietor
http://jbkuma.com/workshoppe
…On Thu, Apr 13, 2017 at 8:41 AM, dannyc09 ***@***.***> wrote:
Ok...apologies for the delay.
Finally got it to compile and upload..whoop!
On the downside I managed to fry my board and ruined the contacts for
connecting the string blade. My own fault so it looks like I'll be ordering
a new board.
On a side note I did find that the sounds worked a bit weirdly:
-
The "hum" sound came on when power was run to the board even before
the blade was lit.
-
When moving the DIYino around there was no change to the sound to
replicate motion or swinging.
I will try again with a fresh board and see if that makes any difference.
I've learnt from my mistakes here so fingers crossed my v2 attempt will be
more successful.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATdCMAYm4C-jcJg7C3DD8HgqkzUZIy3Gks5rvhgDgaJpZM4Mz4eV>
.
|
Getting this issue in LSOS when trying to compile:
In file included from Buttons.cpp:8:
C:\Users\Dan and Heather\Documents\Arduino\libraries\DFPlayer/DFPlayer.h: In member function 'void DFPlayer::receive()':
C:\Users\Dan and Heather\Documents\Arduino\libraries\DFPlayer/DFPlayer.h:278: error: invalid conversion from 'uint8_t*' to 'char*'
C:\Users\Dan and Heather\Documents\Arduino\libraries\DFPlayer/DFPlayer.h:278: error: initializing argument 2 of 'size_t Stream::readBytesUntil(char, char*, size_t)'
Thanks
Dan
The text was updated successfully, but these errors were encountered: