0

MMA8451 Libraty Bug?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: MMA8451 Libraty Bug?

by juergen001 on Sun Apr 15, 2018 9:49 am

adafruit_support_rick wrote:Originally, the Wire library on the Arduino Due did not support I2C repeated starts. A few years ago, support was added through an undocumented overload of the Wire.requestFrom function:
https://forum.arduino.cc/index.php?topi ... msg2947227

The MMA8451 library did not implement this fix. I have just now updated the library to version 1.0.5. Look for the new version in the Arduino Library Manager.


Hello

thank you to fix the libary, but it doesn´t help

Atmel SMART device 0x285e0a60 found
SAM-BA operation failed
Beim Hochladen des Sketches ist ein Fehler aufgetreten
best regards

Jürgen

juergen001
 
Posts: 4
Joined: Fri Apr 13, 2018 4:21 am

Re: MMA8451 Libraty Bug?

by adafruit_support_rick on Sun Apr 15, 2018 12:03 pm

juergen001 wrote:Atmel SMART device 0x285e0a60 found
SAM-BA operation failed
Beim Hochladen des Sketches ist ein Fehler aufgetreten


That is a completely different problem. That is an upload failure. Arduino was unable to transfer the sketch to the Due.

Try resetting the Due, try unplugging it and reconnecting it, try a different USB cable. Sometimes it helps to switch to the native USB port from the programming port (be sure to change the board selection to match).

adafruit_support_rick
 
Posts: 35009
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: MMA8451 Libraty Bug?

by juergen001 on Sun Apr 15, 2018 12:30 pm

Many thanks
I used a new USB-Cable and the sketch runs fine :-)

Best Regards

Jürgen

juergen001
 
Posts: 4
Joined: Fri Apr 13, 2018 4:21 am

Re: MMA8451 Libraty Bug?

by adafruit_support_rick on Mon Apr 16, 2018 10:23 am

Great!

adafruit_support_rick
 
Posts: 35009
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.