Time out while waiting for target

Hello,

I am working on a project with an accelerometer.
Receiving data from the accelerometer works perfectly. However when i want to store the data i get an error “While Debugging: Timeout while waiting for repsonse from target”

Does anybody know what the cause of this problem and how i can resolve it?

Grtzz

How are you sampling the accelerometer? Is it connected to a(n) analog IO pin? or is it connected via something like I2C.

Please include the source code that is producing the error.