Ask Your Question
0

Running ROS with DMA

asked 2017-08-15 10:17:57 -0600

j3ven7 gravatar image

updated 2017-08-15 10:21:57 -0600

I have an Arduino Due configured to use DMA with the following library: https://github.com/rblilja/DmaSerial . However, when I try to run the code in my sketch I get the following error /ros_lib/ArduinoHardware.h:72:19: error: 'Serial' was not declared in this scope iostream = &Serial; I changed the extern reference to the Serial variable in the variant.h file from a UARTClass object to a DmaSerial object, called dmaSerial, which fixed the error above, but I still run into errors, and I am unsure exactly what to change in ROS to allow ROS to be configured with the arduino DMA. I currently get the following error,

undefined reference to `dmaSerial'

but it's on a line where there isn't even any code in my sketch, which is peculiar. If anyone has done this before or understands ROS well enough to tackle this issue that would be of great help.

edit retag flag offensive close merge delete

Comments

Can you post your terminal output (full error) and source?

jayess gravatar imagejayess ( 2017-08-15 18:03:39 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-30 18:14:45 -0600

rreignier gravatar image

You have to add a case to use the object dmaSerial in the ArduinoHardware.h file that you will found in the ros_lib folder.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-08-15 10:17:57 -0600

Seen: 143 times

Last updated: Sep 30 '17