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

[Bug] CUAV 6X board detection sometimes fails on v1.14.x #22901

Open
julianoes opened this issue Mar 18, 2024 · 6 comments
Open

[Bug] CUAV 6X board detection sometimes fails on v1.14.x #22901

julianoes opened this issue Mar 18, 2024 · 6 comments

Comments

@julianoes
Copy link
Contributor

Describe the bug

Sometimes, the board version/revision check for the CUAV 6X fails. I observe this about 1 in 5 reboots, only with v1.14.x.

When it happens, the baros and mag are not getting initialized.

FYI @davids5, @CUAVcaijie

To Reproduce

  1. Flash v1.14.x from QGC.
  2. Check for baros and mag, or check ver all

You can also add a break point in:

int rv = read_id_dn(&dn, GPIO_HW_REV_DRIVE, GPIO_HW_REV_SENSE, ADC_HW_REV_SENSE_CHANNEL);

And check dn. It changes slightly on every reboot.

Expected behavior

Correct:

ver all
HW arch: PX4_FMU_V6X
HW type: V6X002001
HW version: 0x002
HW revision: 0x001
PX4 git-hash: b8c541dd7277ed735139d7d1bfb829d61fbe29fb
PX4 version: Release 1.14.0 (17694975)
OS: NuttX
OS version: Release 11.0.0 (184549631)
OS git-hash: de41e7feaeffaec3ce65327e9569e8fdb553ca3d
Build datetime: Oct 19 2023 16:24:32
Build uri: localhost
Build variant: default
Toolchain: GNU GCC, 9.3.1 20200408 (release)
PX4GUID: 000600000000313732373330511200400036
MCU: STM32H7[4|5]xxx, rev. V

Failed:

ver all
HW arch: PX4_FMU_V6X
HW type: V6X002000
HW version: 0x002
HW revision: 0x000
PX4 git-hash: b8c541dd7277ed735139d7d1bfb829d61fbe29fb
PX4 version: Release 1.14.0 (17694975)
OS: NuttX
OS version: Release 11.0.0 (184549631)
OS git-hash: de41e7feaeffaec3ce65327e9569e8fdb553ca3d
Build datetime: Oct 19 2023 16:24:32
Build uri: localhost
Build variant: default
Toolchain: GNU GCC, 9.3.1 20200408 (release)
PX4GUID: 000600000000313732373330511200400036
MCU: STM32H7[4|5]xxx, rev. V

Screenshot / Media

No response

Flight Log

No flying required

Software Version

v1.14.0

Flight controller

CUAV 6X

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

@davids5
Copy link
Member

davids5 commented Mar 18, 2024

@julianoes The dn will fluctuate because of noise. Would you capture the values on your HW when it is good an bad and post them here.

@julianoes
Copy link
Contributor Author

I remember seeing values between 15 and 21 but I don't have it set up anymore.

@davids5
Copy link
Member

davids5 commented Mar 18, 2024

I remember seeing values between 15 and 21 but I don't have it set up anymore.

hmm both those values fall in the 1 bucket.

@julianoes
Copy link
Contributor Author

dn: 15
...
HW arch: PX4_FMU_V6X
HW type: V6X
HW FMUM ID: 0x000
HW BASE ID: 0x002
dn: 19
...
HW arch: PX4_FMU_V6X
HW type: V6X
HW FMUM ID: 0x001
HW BASE ID: 0x002

@davids5
Copy link
Member

davids5 commented Mar 18, 2024

@davids5
Copy link
Member

davids5 commented Mar 18, 2024

Ok I can see that dn scaling is seeing 15 as a 0 @CUAVcaijie What tolerance R's did you use?

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

No branches or pull requests

3 participants