You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Pixhawk with rev. 3 microprocessor (i.e. compiled via px4fmu-v3_default), current master firmware (63121b7) and stock startup script (rcS with airframe "standard plane" / Autostart ID 2100), bootup without an external magnetometer does not work because lsm303d fails. The system is a 64bit Ubuntu 16.10LTS. The exact log output for the configuration is:
By default, l3gd20 will start but lsm303d will not start because it is not part of the px4fmu-v3_default config file. The console output is as simple as "lsm303d: Command not found".
When just adding drivers/imu/lsm303d to cmake/configs/nuttx_px4fmu-v3_default.cmake, suddenly neither l3gd20 nor lsm303d start up anymore after a power cycle. Console output is:
INFO [mpu6000] accel cutoff set to 30.00 Hz
INFO [mpu6000] gyro cutoff set to 30.00 Hz
WARN [mpu6000] no device on bus #5 (SPI4)
WARN [mpu9250] probe failed! 104
WARN [mpu9250] no device on bus 3
WARN [mpu9250] probe failed! 255
WARN [mpu9250] no device on bus 4
ERROR [l3gd20] driver start failed
WARN [lsm303d] SPI init failed
ERROR [lsm303d] driver start failed
However, when doing a soft reboot (via nsh reboot command), both sensors start up correctly!
Questions:
I know that it is preferred to use an external mag, but why is lsm303d completely disabled in nuttx_px4fmu-v3_default.cmake ? And why does it not start after a power cycle (the pixhawks were supplied via either an external power supply or the USB port, but the issue remained the same) although it does start after nsh's reboot?
Notes:
This was tested on 3 different Pixhawks, all with revision 3 microprocessors and thus 2MB flash (on the PCB, these are just marked as "PX4FMU 2.4"). Same issue on all of them. However, on a fourth Pixhawk (which also has a rev. 3 microprocessor) this works every time (PCB mark is "PX4FMU 2.4.6", could be an mRo Pixhawk)! Is this a known problem of some hardware versions of Pixhawk?
Check current Master (IMHO the above is not current Master), since there was a Fix for SPI Bus Reset, which fixes the LSM303D not found after a Soft Reboot (Warm Start): #8992
Bug Report
Issue:
On Pixhawk with rev. 3 microprocessor (i.e. compiled via px4fmu-v3_default), current master firmware (63121b7) and stock startup script (rcS with airframe "standard plane" / Autostart ID 2100), bootup without an external magnetometer does not work because lsm303d fails. The system is a 64bit Ubuntu 16.10LTS. The exact log output for the configuration is:
Steps to reproduce the problem:
However, when doing a soft reboot (via nsh
reboot
command), both sensors start up correctly!Questions:
I know that it is preferred to use an external mag, but why is lsm303d completely disabled in nuttx_px4fmu-v3_default.cmake ? And why does it not start after a power cycle (the pixhawks were supplied via either an external power supply or the USB port, but the issue remained the same) although it does start after nsh's
reboot?
Notes:
This was tested on 3 different Pixhawks, all with revision 3 microprocessors and thus 2MB flash (on the PCB, these are just marked as "PX4FMU 2.4"). Same issue on all of them. However, on a fourth Pixhawk (which also has a rev. 3 microprocessor) this works every time (PCB mark is "PX4FMU 2.4.6", could be an mRo Pixhawk)! Is this a known problem of some hardware versions of Pixhawk?
@dagar @ASM3
The text was updated successfully, but these errors were encountered: