Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant run the 1st code on Snapdragon #5612

Closed
anujkumargupta opened this issue Oct 6, 2016 · 15 comments · Fixed by PX4/PX4-Devguide#55
Closed

Cant run the 1st code on Snapdragon #5612

anujkumargupta opened this issue Oct 6, 2016 · 15 comments · Fixed by PX4/PX4-Devguide#55

Comments

@anujkumargupta
Copy link

Hi
I am working with Snapdragon FC and trying to run my 1st code as mentioned in dev.px4.io.
I have build the code using make eagle_default and uploaded it in FC but when i am running the code found this error

root@linaro-developer:/home/linaro# ./px4 mainapp.config
sh: 1: cannot create /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: Directory nonexistent
commands file: mainapp.config
creating new parameters file
creating new dataman file


| ___ \ \ \ / / / |
| |/ / \ V / / /| |
| __/ / \ / /
| |
| | / /^\ \ ___ |
| / / |/

px4 starting.

ERROR [muorb] Initialize Error calling the uorb fastrpc initalize method..
INFO [sdlog2] [blackbox] /root/log/sess001
INFO [sdlog2] [blackbox] recording: log001.px4log
ERROR [muorb] ERROR: FastRpcWrapper Not Initialized
MAV_BROADCAST: curr: 0ERROR [platforms__posix__px4_layer] krait update param 301 failed
-> new: 1
SDLOG_PRIO_BOOST: curr: 2ERROR [platforms__posix__px4_layer] krait update param 664 failed
-> new: 3
INFO [dataman] Unkown restart, data manager file '/home/linaro/dataman' size is 103090 bytes
INFO [mavlink] mode: Normal, data rate: 1000000 B/s on udp port 14556 remote port 14550
pxh> INFO [mavlink] using network interface wlan0, IP: 192.168.1.1
INFO [mavlink] with broadcast IP: 192.168.1.255
anuj@anuj-vm:~/src/Firmware$

Earlier i was getting the same error so i had build all the cross toolchain installation and build the code using make but again same error.

Mini-DM is not showing anything

anuj@anuj-vm:~/src/Firmware$ ${HEXAGON_SDK_ROOT}/tools/debug/mini-dm/Linux_Debug/mini-dm
Running mini-dm version: 3.0
Device found with Product ID 0x9025. Continuing...
mini-dm is waiting for a DMSS connection...
DMSS is connected. Running mini-dm...

thanks

@julianoes
Copy link
Contributor

Have you updated to the BSP 3.1.1 and the latest adsp image?

@Stifael
Copy link
Contributor

Stifael commented Oct 6, 2016

same error, but also have timer difference too big

@anujkumargupta
Copy link
Author

Thanks @julianoes ,
Yes updated the linux image to BSP 3.1.1 and pushed the latest ADSP firmware , both downloaded from intrinsyc about 15 days ago.

@julianoes
Copy link
Contributor

@Stifael: does the error persist with thr latest BSP and adsp image?

@julianoes
Copy link
Contributor

@anujkumargupta and @Stifael: I can't reproduce the error, it works for me.

Can you list down all the commands you entered, maybe I can spot what you're doing different.

@anujkumargupta
Copy link
Author

HI @julianoes Today i just tried a different thing instead of pushing the q6-admin.sh i edited it in adb shell and now it works fine but still the Ground control station does detect it.
I tried to run mini-dm but didnot able to under stand

here is mini-dm output

anuj@anuj-vm:~/Qualcomm/Hexagon_SDK/3.0/tools/debug/mini-dm/Linux_Debug$ ./mini-dm
Running mini-dm version: 3.0
Device found with Product ID 0x9025. Continuing...
mini-dm is waiting for a DMSS connection...
DMSS is connected. Running mini-dm...
[08500/00] 02:33.700 HAP:16415:In dspal_entry 0222 main.cpp
[08500/00] 02:33.700 HAP:16415:92813238 WorkMgr already initialized 0063 WorkMgr.cpp
[08500/02] 02:33.710 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 02:33.710 HAP:28713:92823368 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 02:33.710 HAP:28713:92823416 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 02:33.710 HAP:28713:92823450 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 02:33.710 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/02] 02:33.713 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 02:33.713 HAP:28713:92827381 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 02:33.715 HAP:28713:92827427 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 02:33.715 HAP:28713:92827461 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 02:33.715 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/02] 02:33.718 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 02:33.718 HAP:28713:92831499 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 02:33.718 HAP:28713:92831541 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 02:33.718 HAP:28713:92831577 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 02:33.718 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/02] 02:33.722 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 02:33.722 HAP:28713:92835739 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 02:33.722 HAP:28713:92835784 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 02:33.722 HAP:28713:92835821 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 02:33.722 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/02] 02:33.730 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 02:33.730 HAP:28713:92843155 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 02:33.730 HAP:28713:92843199 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 02:33.730 HAP:28713:92843237 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 02:33.730 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/02] 02:33.733 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 02:33.733 HAP:28713:92847009 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 02:33.733 HAP:28713:92847052 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 02:33.733 HAP:28713:92847086 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 02:33.733 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/02] 02:33.738 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 02:33.738 HAP:28713:92851850 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 02:33.738 HAP:28713:92851893 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 02:33.738 HAP:28713:92851931 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 02:33.738 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/00] 02:33.741 HAP:16415:attempting to open the ADSP command file: /dev/fs/px4.config 0186 main.cpp
[08500/02] 02:33.742 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 02:33.742 HAP:28713:92855681 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 02:33.742 HAP:28713:92855721 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 02:33.742 HAP:28713:92855758 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 02:33.742 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/00] 02:33.745 HAP:16415:reading commands from /dev/fs/px4.config 0193 main.cpp
[08500/02] 02:33.746 HAP:16415:already loaded 0067 uORBMain.cpp
[08500/00] 02:33.746 HAP:16415:already running 0081 qshell_start_qurt.cpp
[08500/02] 02:33.752 HAP:16415:Sleeping for 1, 1000000 0118 apps.h
[08500/02] 02:34.752 HAP:16415:GPS 1 already started 0979 gps.cpp
[08500/02] 02:34.758 HAP:16415:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 02:34.758 HAP:16415:93871537 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 02:34.758 HAP:16415:93871580 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 02:34.758 HAP:16415:93871617 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 02:34.758 HAP:16415:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/03] 02:34.758 HAP:16415:DfHmc9250Wrapper start failed 0347 df_hmc5883_wrapper.cpp
[08500/03] 02:34.806 HAP:57:MESSED UP: worker = 0 0175 hrt_thread.c
[08500/00] 02:34.858 HAP:16415:93972276 Reset MPU9250 0089 MPU9250.cpp
[08500/00] 02:34.865 HAP:30:93977712 FIFO corrupt, temp difference: 15.279778, last temp: 49.138504, current temp: 33.858727 0526 MPU9250.cpp
[08500/00] 02:34.865 HAP:30:93978594 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.866 HAP:60:93979615 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.867 HAP:30:93980606 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.868 HAP:60:93981612 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.870 HAP:30:93983220 IMU temperature initialized to: 35.000000 0516 MPU9250.cpp
[08500/00] 02:34.870 HAP:30:93983277 FIFO corrupt, temp difference: 33.329639, last temp: 35.000000, current temp: 1.670361 0526 MPU9250.cpp
[08500/00] 02:34.871 HAP:60:93984615 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.872 HAP:30:93985637 IMU temperature initialized to: 35.000000 0516 MPU9250.cpp
[08500/00] 02:34.872 HAP:30:93985686 FIFO corrupt, temp difference: 33.329639, last temp: 35.000000, current temp: 1.670361 0526 MPU9250.cpp
[08500/00] 02:34.873 HAP:30:93986491 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.875 HAP:60:93987615 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.875 HAP:30:93988602 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.876 HAP:60:93989610 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.877 HAP:30:93990602 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.878 HAP:60:93991620 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.880 HAP:30:93992409 IMU temperature initialized to: 35.000000 0516 MPU9250.cpp
[08500/00] 02:34.880 HAP:60:93993617 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.881 HAP:30:93994597 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.882 HAP:60:93995607 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.883 HAP:16415:93996532 wrong mag ID 64 (expected 72) 0281 MPU9250_mag.cpp
[08500/00] 02:34.883 HAP:16415:93996571 MPU9250 mag not detected. 0092 MPU9250_mag.cpp
[08500/00] 02:34.883 HAP:16415:93996599 mag initialization failed 1 tries 0202 MPU9250_mag.cpp
[08500/00] 02:34.883 HAP:30:93996615 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.885 HAP:60:93997612 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.885 HAP:30:93998566 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.886 HAP:60:93999604 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.887 HAP:30:94000603 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.888 HAP:60:94001612 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.890 HAP:30:94002624 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.890 HAP:60:94003606 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.891 HAP:30:94004612 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.892 HAP:60:94005607 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.893 HAP:30:94006613 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.895 HAP:60:94007613 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.896 HAP:60:94009610 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.897 HAP:30:94010605 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.898 HAP:60:94011608 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.900 HAP:30:94012674 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.900 HAP:60:94013608 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.901 HAP:30:94014603 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.902 HAP:60:94015621 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.903 HAP:30:94016447 FIFO corrupt, temp difference: 4.963989, last temp: 35.000000, current temp: 39.963989 0526 MPU9250.cpp
[08500/00] 02:34.905 HAP:16415:94017468 wrong mag ID 64 (expected 72) 0281 MPU9250_mag.cpp
[08500/00] 02:34.905 HAP:16415:94017503 MPU9250 mag not detected. 0092 MPU9250_mag.cpp
[08500/00] 02:34.905 HAP:16415:94017531 mag initialization failed 2 tries 0202 MPU9250_mag.cpp
[08500/00] 02:34.905 HAP:30:94017560 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.905 HAP:60:94018570 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.906 HAP:30:94019607 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.907 HAP:60:94020601 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.908 HAP:30:94021611 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.910 HAP:60:94022620 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.910 HAP:30:94023611 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.911 HAP:60:94024607 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.912 HAP:30:94025615 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.913 HAP:60:94026609 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.915 HAP:30:94027610 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.915 HAP:60:94028602 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.916 HAP:30:94029655 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.917 HAP:60:94030595 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.918 HAP:30:94031609 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.920 HAP:60:94032620 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.920 HAP:30:94033606 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.921 HAP:60:94034606 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.922 HAP:30:94035686 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.923 HAP:60:94036601 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.925 HAP:30:94037608 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.926 HAP:30:94039411 IMU temperature initialized to: 35.000000 0516 MPU9250.cpp
[08500/00] 02:34.927 HAP:16415:94040619 set_mag_reg_verified failed for reg 50. 10!=2 0329 MPU9250_mag.cpp
[08500/00] 02:34.928 HAP:30:94041633 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.930 HAP:60:94042615 FIFO overflow 0397 MPU9250.cpp
[08500/00] 02:34.930 HAP:30:94043607 FIFO overflow 0397 MPU9250.cpp
[08500/02] 02:35.723 mmpm_register: MMPM client for USM ADSP core 12 0117 UltrasoundStreamMgr_Mmpm.cpp
[08500/02] 02:35.725 ADSP License DB: License validation function with id 164678 stored. 0280 adsp_license_db.cpp
[08500/02] 02:35.725 AvsCoreSvc: StartSvcHandler Enter 0518 AdspCoreSvc.cpp
[08500/02] 02:35.725 AdspCoreSvc: Started successfully 0534 AdspCoreSvc.cpp
[08500/02] 02:35.728 loading BLSP configuration 0217 blsp_config.c
[08500/02] 02:36.016 HAP:110:cannot find /oemconfig.so 0141 load.c
[08500/03] 02:36.016 HAP:4211::error: -1: 0 == dynconfig_init(&conf, "security") 0696 sigverify.c
[08500/02] 02:36.016 HAP:80:cannot find /voiceproc_tx.so 0141 load.c
[08500/02] 02:36.017 HAP:80:cannot find /voiceproc_rx.so 0141 load.c
[08500/02] 02:36.017 HAP:159:unable to open the specified file path 0167 file.c
[08500/04] 02:36.017 failed to open /usr/share/data/adsp/blsp.config 0233 blsp_config.c
[08500/00] 02:36.017 loading the blsp config file failed, loading the default config 0261 main.c
[08500/02] 02:36.017 Loaded default UART-BAM mapping 0036 blsp_config.c
[08500/02] 02:36.017 UART tty-1: BAM-9 0044 blsp_config.c
[08500/02] 02:36.017 UART tty-2: BAM-6 0044 blsp_config.c
[08500/02] 02:36.017 UART tty-3: BAM-8 0044 blsp_config.c
[08500/02] 02:36.017 UART tty-4: BAM-2 0044 blsp_config.c
[08500/02] 02:36.017 UART tty-5: BAM N/A 0049 blsp_config.c
[08500/02] 02:36.017 UART tty-6: BAM N/A 0049 blsp_config.c

Thanks

@julianoes
Copy link
Contributor

Do you always get this FIFO overflow output, even after a reboot and a power-cycle (disconnect all power)?
Please post the output of the shell and mini-dm. Also, is the networking setup correctly? Can you ping the device?

@anujkumargupta
Copy link
Author

Hi
This adb shell output

root@linaro-developer:/home/linaro# ./px4 mainapp.config
sh: 1: cannot create /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: Directory nonexistent
commands file: mainapp.config


| ___ \ \ \ / / / |
| |/ / \ V / / /| |
| __/ / \ / /
| |
| | / /^\ \ ___ |
| / / |/

px4 starting.

INFO [sdlog2] [blackbox] /root/log/sess009
INFO [sdlog2] [blackbox] recording: log001.px4log
INFO [dataman] Unkown restart, data manager file '/home/linaro/dataman' size is 103090 bytes
INFO [mavlink] mode: Normal, data rate: 1000000 B/s on udp port 14556 remote port 14550
pxh> INFO [mavlink] using network interface wlan0, IP: 192.168.1.1
INFO [mavlink] with broadcast IP: 192.168.1.255

This is mini-dm

anuj@anuj-vm:~/Qualcomm/Hexagon_SDK/3.0/tools/debug/mini-dm/Linux_Debug$ ./mini-dm
Running mini-dm version: 3.0
Device found with Product ID 0x9025. Continuing...
mini-dm is waiting for a DMSS connection...
DMSS is connected. Running mini-dm...
[08500/00] 22:55.782 HAP:61:In dspal_entry 0222 main.cpp
[08500/00] 22:55.802 HAP:61:attempting to open the ADSP command file: /dev/fs/px4.config 0186 main.cpp
[08500/00] 22:55.802 HAP:61:reading commands from /dev/fs/px4.config 0193 main.cpp
[08500/02] 22:55.920 HAP:61:Sleeping for 1, 1000000 0118 apps.h
[08500/00] 22:56.921 configuring UART for 4-wire mode, DAL id: 0x2001001 0852 DalUart.c
[08500/02] 22:56.926 HAP:61:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 22:56.926 HAP:61:1143820 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 22:56.926 HAP:61:1143862 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 22:56.926 HAP:61:1143895 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 22:56.926 HAP:61:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/03] 22:56.926 HAP:61:DfHmc9250Wrapper start failed 0347 df_hmc5883_wrapper.cpp
[08500/00] 22:57.030 HAP:61:1246345 Reset MPU9250 0089 MPU9250.cpp
[08500/00] 22:57.093 HAP:60:1310597 IMU temperature initialized to: 50.468143 0516 MPU9250.cpp
[08500/00] 22:57.095 HAP:61:1312495 additional sensor configuration succeeded 0187 BMP280.cpp
[08500/03] 22:57.096 HAP:61:start 0204 df_trone_wrapper.cpp
[08500/02] 22:57.098 HAP:61:I2C_Write failed: 285212872 num_bytes_written 0 0414 i2c.c
[08500/00] 22:57.098 HAP:61:1315465 Error: i2c write failed. Reported -1 bytes written 0216 I2CDevObj.cpp
[08500/00] 22:57.098 HAP:61:1315498 Nonzero result when writing to TRONE_WHO_AM_I_REG 0x1 0110 TROne.cpp
[08500/00] 22:57.098 HAP:61:1315535 probing not successful 0071 TROne.cpp
[08500/03] 22:57.098 HAP:61:TROne start fail: -1 0134 df_trone_wrapper.cpp
[08500/03] 22:57.098 HAP:61:DfTROneWrapper start failed 0215 df_trone_wrapper.cpp
[08500/02] 22:57.105 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 22:57.105 HAP:28713:1322879 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 22:57.105 HAP:28713:1322921 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 22:57.106 HAP:28713:1322954 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 22:57.106 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/02] 22:57.107 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 22:57.107 HAP:28713:1324667 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 22:57.107 HAP:28713:1324706 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 22:57.107 HAP:28713:1324739 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 22:57.107 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/02] 22:57.110 HAP:12328:LED: getHandle fail 0269 commander_helper.cpp
[08500/02] 22:57.110 HAP:12328:LED init failed 1287 commander.cpp
[08500/02] 22:57.110 HAP:12328:Buzzer: px4_open fail 0132 commander_helper.cpp
[08500/02] 22:57.110 HAP:12328:Buzzer init failed 1291 commander.cpp
[08500/02] 22:57.110 HAP:12328:Preflight checks always pass on Snapdragon. 0392 PreflightCheck.cpp
[08500/00] 22:57.175 configuring UART for 4-wire mode, DAL id: 0x2001005 0852 DalUart.c
[08500/00] 22:57.175 HAP:35:Trying to initialize mixer from config file /dev/fs/quad_x.main.mix 0145 pwm_out_rc_in.cpp
[08500/00] 22:57.177 HAP:35:Successfully initialized mixer from config file 0157 pwm_out_rc_in.cpp
[08500/02] 22:57.177 HAP:28713:Batch transfer failed: 0x110000c8 0524 i2c.c
[08500/00] 22:57.177 HAP:28713:1394489 error: read register reports a read of -1 bytes, but attempted to set 1 bytes 0133 I2CDevObj.cpp
[08500/00] 22:57.177 HAP:28713:1394533 error: unable to communicate with the hmc5883 mag sensor 0086 HMC5883.cpp
[08500/00] 22:57.177 HAP:28713:1394571 error: mag sensor initialization failed, sensor read thread not started 0155 HMC5883.cpp
[08500/03] 22:57.177 HAP:28713:HMC5883 start fail: -5 0165 df_hmc5883_wrapper.cpp
[08500/00] 22:58.748 HAP:38:EKF using pressure height - commencing alignment 0407 ekf.cpp
[08500/00] 23:04.316 HAP:38:EKF alignment complete 0064 control.cpp

This time i didnot get the FIFO overflow output

i tried to connect it using wifi module but the signal is very week (even when i kept it at a distance of max 20cm) and ping output shows destination host not reachable

root@linaro-developer:/# ping 192.168.1.12
PING 192.168.1.12 (192.168.1.12) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2 Destination Host Unreachable
From 192.168.1.1 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.1.12 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5006ms
pipe 3

How to increase its signal strength

@julianoes
Copy link
Contributor

Do you have an antenna connected to the Snapdragon? This would increase the signal strength. However, for testing I use it without antenna and it is usually good enough for a few meters.

@julianoes
Copy link
Contributor

@anujkumargupta it looks like the first error is gone though:

[platforms__posix__px4_layer] krait update param 664 failed

Do you know what you changed to resolve it?

@anujkumargupta
Copy link
Author

Hi earlier in pinging it shows error because i also connected my lan cable but after removing the lan i can ping the device.

root@linaro-developer:/# ping 192.168.1.12
PING 192.168.1.12 (192.168.1.12) 56(84) bytes of data.
64 bytes from 192.168.1.12: icmp_seq=1 ttl=64 time=4.90 ms
64 bytes from 192.168.1.12: icmp_seq=2 ttl=64 time=11.3 ms
64 bytes from 192.168.1.12: icmp_seq=3 ttl=64 time=23.0 ms
64 bytes from 192.168.1.12: icmp_seq=4 ttl=64 time=7.85 ms
64 bytes from 192.168.1.12: icmp_seq=5 ttl=64 time=5.88 ms

but the adb shell and mini-dm output is same
Thanks

@julianoes
Copy link
Contributor

Ok, good so it was a routing issue.

The adb shell and mini-dm output look ok. It is just complaining that no external mag is connected but it will fall back to the internal mag.

I would expect that QGC shows something now, no?

@anujkumargupta
Copy link
Author

Hi @julianoes
Yes this [platforms__posix__px4_layer] krait update param 664 failed error is solved.
Earlier i was trying to pull the script and then edit and then pushing it.
adb pull /usr/local/qr-linux/q6-admin.sh
gedit q6-admin.sh
adb push q6-admin.sh /usr/local/qr-linux/q6-admin.sh
But later i edited it directly through adb shell
vim /usr/local/qr-linux/q6-admin.sh
and also done all step without removing the board even once.

@julianoes
Copy link
Contributor

Ok interesting, I'll try to reproduce this. In theory both "editing" variants should lead to the same.

@julianoes
Copy link
Contributor

@anujkumargupta you were right! If you do adb pull and adb push the executable bit gets lost.
Fixed with PX4/PX4-Devguide#55.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants