Ask Your Question
0

Arduino ROS Issue

asked 2014-01-07 08:46:33 -0600

samvrit gravatar image

updated 2014-01-28 17:06:38 -0600

ngrennan gravatar image

I have generated ros_lib in arduino sketchbook, but when I compile the arduino code, It says "Error Compiling" and I get the error:

/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: HelloWorld.cpp.elf 
section `.text' will not fit in region `text' 
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: region `text' 
overflowed by 488 bytes collect2: ld returned 1 exit status

for all the ros_lib examples.

When I was running the code in the terminal for generating the arduino libraries, in the end I got the following error:

* Warning, failed to generate libraries for the following packages: * map_msgs

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2014-01-07 10:24:02 -0600

ahendrix gravatar image

This error means that the code you're trying to compile won't fit into the flash memory of the device you're compiling it for.

If you can, try changing the target board to one with more flash.

edit flag offensive delete link more

Comments

You're right. I changed it and it worked. Thanks a lot!

samvrit gravatar imagesamvrit ( 2014-01-07 23:16:54 -0600 )edit

Noob question, but what do you mean by change "the target board" ...in the IDE tools menu? I did that and it didn't solve it for me, so I'm guessing somewhere else? Thanks in advance!

nickosinski gravatar imagenickosinski ( 2014-01-12 15:24:15 -0600 )edit

Yes; in the Arduino IDE, the Tools -> Board menu. Note that the board you select has to match the arduino you're programming.

ahendrix gravatar imageahendrix ( 2014-01-13 05:31:10 -0600 )edit

Thanks so much for your reply. To clarify, I don't get the "will not fit" error... just the error relating to "map_msgs"; is there a manual way to generate those libraries or should I just not worry about it? Thanks again - really appreciate it!

nickosinski gravatar imagenickosinski ( 2014-01-13 06:23:57 -0600 )edit
1

I wouldn't worry about not being able to build map_msgs, unless you're explicitly planning to use them in your project. They're probably too big to be useful on an arduino anyway.

ahendrix gravatar imageahendrix ( 2014-01-13 10:13:38 -0600 )edit

ques; buddy i am getting the same problem but at the compilation time? there is nothing to do with board , program is not even compiling ? plz help

nipun sachdeva gravatar imagenipun sachdeva ( 2014-06-26 11:41:21 -0600 )edit

@nipun-sachdev : Unless you're seeing the exact same error message, I suggest you ask your question as a new question, and include the EXACT commands you're using and copy/paste the error message you're seeing.
If you're seeing the exact same error message, my answer still applies.

ahendrix gravatar imageahendrix ( 2014-06-29 15:44:47 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-01-07 08:46:33 -0600

Seen: 548 times

Last updated: Jan 13 '14