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.
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.