Hello all,
I was working on connecting a sensor through I2C to ArduPilot on Pixhawk.
I've branched from 3.3rc7 (Copter 3.3 branch) and added my code there.
I'm not sure what I did wrong, but now the pixhawk won't boot properly.
The COM connection on the PC hangs a lot. Sometimes SerialPort.Open() (On mission planner) succeeds and sometimes hangs until I pull the USB cable out.
MP PX4 uploader also hanged. Same issue.
I could, however, listen to the uart connection while the pixhawk boots, and that's what I got:
Init APM:Copter V3.3-rc7-TES (75c6f3ee)
Free RAM: 44224
FW Ver: 120
----------------------------------------
load_all took 4262us
0 0 0 Q }3 Initialising APM... }3 Calibrating barometerzš Q C^3 barometer calibration complete׳ 3 GROUND START—‰Init Gyro* Q ׃**
INS
----------------------------------------
G_off: -0.03, 0.01, -0.00
A_off: -0.03, -0.09, -0.44
A_scale: 1.00, 1.00, 0.98
After these lines I get nothing, and the pixhawk doesn't respond. Disconnect sometimes works, and sometimes hangs.
On a normal startup, after these lines the pixhawk sends "Ready to fly", right?
My code runs in userhook_Slowloop 3.3.hz (cool addition by the way, make development easier), but something went wrong after the latest version.
My code reads a register from an I2C device. Right now the device is not connected, so the read fails (the code handles it).
The latest upload was done while my device was connected and powered from the I2C port as well. I think the pixhawk was powered from USB. There were no errors on upload.
It seems that the CPU is stuck somewhere or had an exception, but I can't find out where or how to fix it. The leds all flash properly. The main led is red or blue. The switch doesn't do anything.
So, 2 questions:
1. How do I get the pixhawk to respond?
2. Can I reset the pixhawk to a preliminary software? Something I can work with to upload my own software?
Thanks for you help
Nitay