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

CUAV Pixhawk V6X Baro & Mag won't start on stable | px4_fmu-v6x:Fix CUAV Sensor Set startup #21221

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

davids5
Copy link
Member

@davids5 davids5 commented Mar 1, 2023

Reverts part of 3c10e34 not applicable to V1.13 VER/REV system.

[boot] Rev 0x1 : Ver 0x2 V6X21
reset done, 10 ms
[boot] Fault Log info File No 4 Length 3177 flags:0x01 state:1
[boot] Fault Log is Armed
sercon: Registering CDC/ACM serial driver
sercon: Successfully registered the CDC/ACM serial driver
HW arch: PX4_FMU_V6X
HW type: V6X21
HW version: 0x00000002
HW revision: 0x00000001
FW git-hash: 3cb529184ec9c715367ac1ce48cec29b17bab1b5
FW version: 1.13.2 0 (17629696)
FW git-branch: release/1.13-pr-cuav-fix
OS: NuttX
OS version: Release 12.0.0 (201326847)
OS git-hash: 78abbf36c057f2a62011d7d208134d50e95d9916
Build datetime: Mar  1 2023 06:02:10
Build uri: localhost
Build variant: default
Toolchain: GNU GCC, 9.3.1 20200408 (release)
PX4GUID: 000600000000313732373330511200480049
MCU: STM32H7[4|5]xxx, rev. V
t_log] Fault Log is Armed
INFO  [param] selected parameter default file /fs/mtd_params
INFO  [param] importing from '/fs/mtd_params'
INFO  [parameters] BSON document size 765 bytes, decoded 765 bytes (INT32:17, FLOAT:19)
INFO  [param] selected parameter backup file /fs/microsd/parameters_backup.bson
Board architecture defaults: /etc/init.d/rc.board_arch_defaults
Board defaults: /etc/init.d/rc.board_defaults
INFO  [dataman] data manager file '/fs/microsd/dataman' size is 62560 bytes
Loading airframe: /etc/init.d/airframes/4001_quad_x
WARN  [px4io] check CRC failed: -22, CRC: 1891365525
[PX4IO] using firmware from /etc/extras/px4_io-v2_default.bin
[PX4IO] bad sync 0xff,0xff
[PX4IO] found bootloader revision: 5
[PX4IO] erase...
[PX4IO] programming 39952 bytes...
[PX4IO] verify...
[PX4IO] update complete
INFO  [tune_control] Stopping playback...
INFO  [px4io] IO FW CRC match
Board sensors: /etc/init.d/rc.board_sensors
INFO  [ina226] Failed to init INA226 on bus 1, but will try again periodically.
ina226 #0 on I2C bus 1 (external) address 0x41
INFO  [ina226] Failed to init INA226 on bus 2, but will try again periodically.
ina226 #1 on I2C bus 2 (external) address 0x41
bmi088_accel #0 on SPI bus 3 rotation 4
bmi088_gyro #0 on SPI bus 3 rotation 4
icm42688p #0 on SPI bus 2 rotation 6
icm20649 #0 on SPI bus 1 rotation 14
rm3100 #0 on I2C bus 4 address 0x20
WARN  [SPI_I2C] ist8310: no instance started (no device on bus?)
icp201xx #0 on I2C bus 4 (external) address 0x64
icp201xx #1 on I2C bus 2 (external) address 0x63
WARN  [SPI_I2C] ms5611: no instance started (no device on bus?)
nsh: battery_status: command not found
INFO  [pwm_out] instance: 0, max rate: 100, default: 50, alt: 50
INFO  [init] Mixer: /etc/mixers/quad_x.main.mix on /dev/pwm_output0
INFO  [init] Mixer: /etc/mixers/pass.aux.mix on /dev/pwm_output1
ekf2 [790:237]
INFO  [pwm_out] instance: 0, max rate: 100, default: 50, alt: 50
Starting Main GPS on /dev/ttyS0
Starting MAVLink on /dev/ttyS6
INFO  [mavlink] mode: Normal, data rate: 1200 B/s on /dev/ttyS6 @ 57600B
Starting MAVLink on ethernet
INFO  [mavlink] mode: Normal, data rate: 100000 B/s on udp port 14550 remote port 14550
INFO  [logger] logger started (mode=all)
INFO  [uavcan] Node ID 1, bitrate 1000000

NuttShell (NSH) NuttX-12.0.0
nsh> WARN  [mavlink] no broadcasting address found

   Reverts part of 3c10e34 not
   applicable to V1.13 VER/REV system.
@davids5 davids5 requested a review from mrpollo March 1, 2023 14:05
@mrpollo
Copy link
Contributor

mrpollo commented Mar 1, 2023

Failed tests seem unrelated to PR @davids5, here's my test on real hardware

NuttShell (NSH) NuttX-10.0.0
nsh> dmesg
HW arch: PX4_FMU_V6X
HW type: V6X21
HW version: 0x00000002
HW revision: 0x00000001
FW git-hash: 3cb529184ec9c715367ac1ce48cec29b17bab1b5
FW version: 1.13.2 0 (17629696)
FW git-branch: release/1.13-pr-cuav-fix
OS: NuttX
OS version: Release 11.0.0 (184549631)
OS git-hash: 78abbf36c057f2a62011d7d208134d50e95d9916
Build datetime: Mar  1 2023 07:56:33
Build uri: localhost
Build variant: default
Toolchain: GNU GCC, 9.3.1 20200408 (release)
PX4GUID: 0006000000003137323733305112004d0028
MCU: STM32H7[4|5]xxx, rev. V
INFO  [param] selected parameter default file /fs/mtd_params
INFO  [param] importing from '/fs/mtd_params'
INFO  [parameters] BSON document size 440 bytes, decoded 440 bytes (INT32:8, FLOAT:12)
INFO  [param] selected parameter backup file /fs/microsd/parameters_backup.bson
Board architecture defaults: /etc/init.d/rc.board_arch_defaults
Board defaults: /etc/init.d/rc.board_defaults
INFO  [dataman] data manager file '/fs/microsd/dataman' size is 62560 bytes
INFO  [px4io] IO FW CRC match
Board sensors: /etc/init.d/rc.board_sensors
INFO  [ina226] Failed to init INA226 on bus 1, but will try again periodically.
ina226 #0 on I2C bus 1 (external) address 0x41
INFO  [ina226] Failed to init INA226 on bus 2, but will try again periodically.
ina226 #1 on I2C bus 2 (external) address 0x41
bmi088_accel #0 on SPI bus 3 rotation 4
bmi088_gyro #0 on SPI bus 3 rotation 4
icm42688p #0 on SPI bus 2 rotation 6
icm20649 #0 on SPI bus 1 rotation 14
rm3100 #0 on I2C bus 4 address 0x20
WARN  [SPI_I2C] ist8310: no instance started (no device on bus?)
icp201xx #0 on I2C bus 4 (external) address 0x64
icp201xx #1 on I2C bus 2 (external) address 0x63
WARN  [SPI_I2C] ms5611: no instance started (no device on bus?)
No autostart ID found
ekf2 [465:237]
Starting Main GPS on /dev/ttyS0
Starting MAVLink on /dev/ttyS6
INFO  [mavlink] mode: Normal, data rate: 1200 B/s on /dev/ttyS6 @ 57600B
Starting MAVLink on ethernet
INFO  [mavlink] mode: Normal, data rate: 100000 B/s on udp port 14550 remote port 14550
INFO  [logger] logger started (mode=all)
INFO  [uavcan] Node ID 1, bitrate 1000000

NuttShell (NSH) NuttX-10.0.0
nsh> WARN  [mavlink] no broadcasting address found
ERROR [uavcan] couldn't start parameter count: -2
nsh> rm3100 status
INFO  [SPI_I2C] Running on I2C Bus 4, Address 0x20
rm3100: reset: 1 events
rm3100: range error: 0 events
rm3100: bad transfer: 0 events
nsh> icp201xx status
INFO  [SPI_I2C] Running on I2C Bus 4, Address 0x64
icp201xx: reset: 1 events
icp201xx: read: 730 events, 24301395us elapsed, 33289.58us avg, min 3200us max 34948us 1229.255us rms
icp201xx: bad transfer: 0 events
INFO  [SPI_I2C] Running on I2C Bus 2, Address 0x63
icp201xx: reset: 1 events
icp201xx: read: 730 events, 24301855us elapsed, 33290.21us avg, min 2282us max 33939us 1228.325us rms
icp201xx: bad transfer: 0 events
nsh> 

Copy link
Contributor

@mrpollo mrpollo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mrpollo mrpollo changed the title px4_fmu-v6x:Fix CUAV Sensor Set startup CUAV Pixhawk V6X Baro & Mag won't start on stable | px4_fmu-v6x:Fix CUAV Sensor Set startup Mar 1, 2023
@mrpollo mrpollo self-assigned this Mar 1, 2023
@mrpollo mrpollo merged commit a8f29bc into release/1.13 Mar 1, 2023
@mrpollo
Copy link
Contributor

mrpollo commented Mar 1, 2023

🌮 🎉 Thanks @davids5

@swimmingseeds
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-maintainers-call-march-07-2023/31059/1

@dagar dagar deleted the release/1.13-pr-cuav-fix branch October 19, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants