compiling problems

Get help with assembling or programming this kit here, or share what you've been doing with yours.

compiling problems

Postby ChrisJ » Thu Jan 16, 2014 1:48 pm

Hi All

I am new to Arduino and am having problems getting your sample Rover 5 wall follower code to compile. I'm new to C++ though I have used PicBasic in the past.

Here are the error codes.

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\variants\mega -IC:\Program Files (x86)\Arduino\libraries\Servo -IC:\Program Files (x86)\Arduino\libraries\rover_5_wall_follower -II:\Arduino\libraries\ArduinoIRremoteMaster C:\Users\Chris\AppData\Local\Temp\build2318298248717118676.tmp\Encoder.cpp -o C:\Users\Chris\AppData\Local\Temp\build2318298248717118676.tmp\Encoder.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\variants\mega -IC:\Program Files (x86)\Arduino\libraries\Servo -IC:\Program Files (x86)\Arduino\libraries\rover_5_wall_follower -II:\Arduino\libraries\ArduinoIRremoteMaster C:\Users\Chris\AppData\Local\Temp\build2318298248717118676.tmp\rover_5_wall_follower.cpp -o C:\Users\Chris\AppData\Local\Temp\build2318298248717118676.tmp\rover_5_wall_follower.cpp.o


rover_5_wall_follower.ino:9:22: error: IRsendDemo: No such file or directory
rover_5_wall_follower.ino: In function 'void loop()':
rover_5_wall_follower.ino:172: warning: comparison between signed and unsigned integer expressions


I have managed to compile without tabs by copying and pasting just the Arduino file into the compiler and it 'kinda' works.

These errors may well be due to my Arduino installation not being correct, I don't know - yet.

Thanking you in anticipation. Chris
ChrisJ
 
Posts: 4
Joined: Thu Jan 16, 2014 1:39 pm

Re: compiling problems

Postby Alan » Mon Jan 20, 2014 12:24 pm

Hi Chris,

Fisrtly, sorry for the delayed reply on this. I thought I'd set the forum up to send me alerts when a new post was made, but obviously I've mucked something up there.

With regards to your compilation error, it looks from your compiler settings as if you're using an Arduino Mega, rather than the Seeeduino that came with the kit? Is this correct/intended? The sketch should work with both, but I just want to confirm what you're working with.

With regards to the error you're getting, there is no function or variable in the sketch called IRsendDemo so it looks like you're somehow getting an error from another library, perhaps the one called ArduinoIRremoteMaster which appears in your compiler arguments? Would you be able to temporarily remove that library to see if it fixes your problem?

Regards

Alan
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am

Re: compiling problems

Postby ChrisJ » Thu Jan 23, 2014 1:47 pm

Hi Allan

Sorry for my late reply, I edited my library folder and cured the errors, many thanks.

As you summised I used my mega board on this chassis as I needed the extra DIO pins on my 'ultimate' robot version.

Anyway, trying to use the supplied Seeduino is giving me more problems as it won't upload anymore. I did try the usual Blink program when I received the board and it worked, since then I get the dreaded "avrdude: stk500_getsync(): not in sync: resp=0x00" error. I have tried using the new 1.5.5 version, as well as my more usual 1.0.5. Could I be missing the USB drivers? All my other boards work fine.

Chris
ChrisJ
 
Posts: 4
Joined: Thu Jan 16, 2014 1:39 pm

Re: compiling problems

Postby Alan » Thu Jan 23, 2014 2:59 pm

Hi Chris,

Can you please check that you've got the board for the Seeeduino set to be 'Arduino Deuemilanove w/ Atmega328'? I often get that message if I accidentally try to use the Seeeduino as an Arduino Uno.

Regards

Alan
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am

Re: compiling problems

Postby ChrisJ » Thu Jan 23, 2014 5:02 pm

Hi Alan,

Tried them all, well most of them, including all with an Atmega328 tag.

Chris
ChrisJ
 
Posts: 4
Joined: Thu Jan 16, 2014 1:39 pm

Re: compiling problems

Postby Alan » Thu Jan 23, 2014 6:30 pm

Hmmm,

That's slightly concerning. Can you please check that the M_RST_AUTO switch is over to the right hand side (AUTO), also that the 3V3_VCC_5V switch is also to the right (5V). Can you also check that no wires are attached to pins 0 and 1 (the TX RX pins). Finally, can you please perform the old fall back of unplugging the USB, restarting the Arduino environment (possibly also rebooting the computer) and then plugging the USB cable back in.

I'm assuming that you're on Windows? If you were able to upload the blink sketch before, then there shouldn't be a problem with the drivers. I take it that it's the blink sketch you're having trouble uploading now?

Does the green power LED come on when you plug in the USB cable?

I'm thinking that it could be an issue with the Arduino bootloader getting corrupted. When you press the reset button, does the the green LED attached to pin 13 (called L, above the TX led) flash? If it is a problem with the Arduino bootloader, then because you have other Arduinos around you should be able to reflash it, but I'd like to rule out all other options before we try that. ;)

Regards

Alan
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am

Re: compiling problems

Postby ChrisJ » Thu Jan 23, 2014 10:43 pm

First the good news, it's NOT your board. I have another Arduino intallation on my laptop, and it loaded 'Blink' (with alterations to the blink timing) perfectly. The problem is in my Arduino installation on my tower computer.

This is weird as all other boards (well my Uno, Mega and Dagu Mini Driver board, all I have) work fine.

I did instal the USB driver for the Dagu Mini Driver board from here

http://www.silabs.com/products/mcu/Page ... ivers.aspx

as recommended by Dagu in their instruction manual here

https://docs.google.com/file/d/0B__O096 ... RkcjA/edit

I think this must be the problem. I think Arduino version 1.5.5 allows you to change the USB driver, but version 1.0.5 doesn't, I think the driver is tied to the coms port assigned for each board. It's a guess, but may be Windows has assigned the newer Mini Driver board USB driver to my Coms 5 (the one associated with my Seeduino board) as well as my comms 8 (the mini driver comms port).

If that's true then maybe others that buy a Dagu Mini Driver board and install the correct driver, which they have to do, will have similar problems if they have a Seeduino board.

I've only been trying (playing actually LOL) with Arduino for a couple of weeks, and programming is definately not my strong point so take all my findings with a pinch of salt.

Open source is really good, but it can throw some conflicts into the works from time to time as no one person has the overview and can administer it, there are so many variations and only certain combinations result in a glitch.

So my situation is I can use my Seeduino board on my laptop, but for the Mini Driver board I have to use my desktop, not an impossible situation, but I hope that you can suggest a cure.

Thanks for your help, it's very much appreciated.

Chris
ChrisJ
 
Posts: 4
Joined: Thu Jan 16, 2014 1:39 pm

Re: compiling problems

Postby Alan » Fri Jan 24, 2014 11:23 am

Hi Chris,

Glad you've got stuff working, although yeah, it doesn't sound ideal. :roll:

I'm afraid that is one of the downsides of open source software, you get loads of cool software for free, but as you say, there are not as many people concentrated on pulling all this cool stuff into a coherent and tested whole. :)

My main platform is Linux so I haven't come across this problem, but I'll try to fire up a Windows machine at the weekend to see if I can recreate the problem you're seeing.

Regards

Alan
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am


Return to Rover 5 Seeeduino/Arduino Robot Kit

Who is online

Users browsing this forum: No registered users and 0 guests