paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] I2c driver


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] I2c driver
Date: Tue, 15 Mar 2011 14:13:47 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

Hi Stephen,

My modifications are only on boards using lpc21xx (booz, tiny, yapa). The Lisa/x are based on stm32 and I'm not using or developing on these boards for now. You should ask to Piotr and Allen for this issue, I think they are working on it.

Regards

Gautier

On 15/03/2011 11:27, Stephen L Hulme wrote:
Hi Gautier
 
Thanks for info - Nonetheless, I still have no output on my Lisa/L_v1.1 !2C port driving mkk actuators - this has been the case since around 20 February . 
 
I am using the most up to date repository and a slightly modified Booz2_A7 airframe file - changes include B2_v1.2 imu, mkk actuators and lisa/l_v1.1 board.
 
My actuators worked perfectly on an old Lisa /l_v1.0 board.prior to the date mentioned - I have since had a new board supplied by Joby to enable the IMU mags to work.
 
Regards
 
Stephen  
 
On Mon, 14 Mar 2011 19:01:20 +0100 Gautier Hattenbergerwrote:
 
Hello all (especially developers),

Here are some modifications to the i2c driver for lpc21 :
- I removed the flag stop_after_transmit that was created for a bad reason, that wasn't used anymore and was a source of errors (the flag was not set correctly in the asctec driver and it was sending crap). The default and only behavior is now to send a stop after the transmit.
- When the slave is not responding (master get NACK on receive or transmit request), the transaction is set to fail (I2CTransFailed). If you check the state of your transaction for success (I2CTransSuccess), don't forget to also check for failure and take the appropriate action (skip or retry). FYI, the previous behavior was to retry the transaction until the slave respond, thus monopolizing the i2c line. This "feature" actually made the asctec driver works by some black magic...


Gautier


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
_______________________________________________ Paparazzi-devel mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/paparazzi-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]