Rosanswers logo

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.

Originally posted by prarobo on ROS Answers with karma: 35 on 2014-10-29

Post score: 0


1 Answer 1


Rosanswers logo

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/193202/rosserial-arduino-use-progmem-in-ros_lib/ and this https://github.com/ros-drivers/rosserial/issues/143

Originally posted by Wolf with karma: 7555 on 2014-10-30

This answer was ACCEPTED on the original site

Post score: 1

Original comments

Comment by prarobo on 2014-11-05:
I didn't know about this. I will try limiting my string usage and see if I can get through it.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.