EdgeTX / edgetx

EdgeTX is the cutting edge open source firmware for your R/C radio
https://edgetx.org
GNU General Public License v2.0
1.59k stars 338 forks source link

TX16S IMU Cmake -DIMU=YES -DIMU_LSM6DS33 crashing USB connection indescriminately #3381

Open Kevltan opened 1 year ago

Kevltan commented 1 year ago

Is there an existing issue for this problem?

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

Cmake -DIMU=YES -DIMU_LSM6DS33 crashing USB connection indescriminately.

Expected Behavior

To be able to use IMU to control screen wake up. This works fine but when used with USB cable plugged in, the radio shuts down to Emergency mode indescriminately, usually half way through either downloading or uploading files to the radio's uSd card. Sometimes will shut down as soon as the cable is plugged into the PC! Have removed the Cmake addition and the problem goes away. Believe there could be an interupt priority fault in the coding somewhere when using the -DIMU_LSM6DS33 addition. I have removed the -DIMU=YES from the cmake line and this doesn't make any difference and seems not to be needed. I have also noticed when left the screen wakes itself up periodically and then goes off after the predetermined shut down time, but not sure if this is related.

Steps To Reproduce

Plugging USB cable into radio and PC whilst powered up using the Cmake -DIMU=YES -DIMU_LSM6DS33 addition in the firmware build.

Version

Nightly (Please give date/commit below)

Transmitter

Radiomaster TX16S / TX16SMK2

Anything else?

2.9 latest commit.

Kevltan commented 1 year ago

Any update or solution to this problem please?