Ask Your Question
0

Arduino mega and rosserial problem

asked 2014-10-29 18:48:27 -0500

prarobo gravatar image

I am using the arduino mega pro board https://www.sparkfun.com/products/10743

I have tested this board using stand alone sketches without ros and have no issues with that. Any sketch below 30kb works with rosserial and arduino mega pro smoothly.

As soon as my sketch size increases beyond 30kb, I start getting the error:

Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

If I comment some functions in my sketch to bring the size below 30kb, things are working again.

One reason why I am using this board over arduino uno is that arduino mega lets me upload sketches over 32k (which is the maximum sketch size for arduino uno).

Any idea why this is happening? Does ros think that my mega pro board has a memory of 32k and failing when the sketch size goes beyond that.

Any help would be appreciated. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-10-30 02:12:26 -0500

Wolf gravatar image

If you use many publishers/subscribers and logging (const strings) your sketch may still fit the FLASH but it can easily run out of SRAM at runtime, see this http://answers.ros.org/question/19320... and this https://github.com/ros-drivers/rosser...

edit flag offensive delete link more

Comments

I didn't know about this. I will try limiting my string usage and see if I can get through it.

prarobo gravatar imageprarobo ( 2014-11-05 11:36:24 -0500 )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

Stats

Asked: 2014-10-29 18:48:27 -0500

Seen: 957 times

Last updated: Oct 30 '14