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

Frsky X9D+ SE 2019 doesn't start with 2.8rc4 #2689

Closed
1 task done
Luznatural opened this issue Nov 7, 2022 · 27 comments
Closed
1 task done

Frsky X9D+ SE 2019 doesn't start with 2.8rc4 #2689

Luznatural opened this issue Nov 7, 2022 · 27 comments
Labels
bug 🪲 Something isn't working
Milestone

Comments

@Luznatural
Copy link

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

I flashed my Frsky X9D+ SE 2019 with ETX 2.8RC4 via SD card, by introducing in the card the latest version of the SD software and placing the firmware in the adequate folder (FIRMWARE).
First flashing the bootloader and after starting in bootloader mode flashing the firmware to the radio. Once finished, selected exit.
Resulted in the radio turning off the display, but remaining the blue light of the switch on. Then the radio didn't respond at all. The only way to re-start the radio was to remove the batery to completely turn off the radio. Once inserting the batery, the radio was unable to start in normal mode, but responded turning on in bootloader mode (presing inwards the trims and turning on). Radio responded to USB connection with the computer.
Checked again the correct 2.8Rc4 firmware (X9DP2019-035e761.bin) tried to flash again from bootloader mode, with same results.
I recovered the radio to ETX 2.7.1 via the previous version of the SDCard, flashing the radio with ETX 2.7.1 from 2.8 bootloader mode, and after re-starting flashing the bootloader to 2.7.1
Tried two more times with same results, even downloading again all files from the web.

Expected Behavior

Be able to flash the radio as expected.

Steps To Reproduce

  1. Copy the latest version (2.8) to the SD Card
  2. Add the 2.8 RC4 firmware to the firmware folder
  3. Flash the bootloader to 2.8RC4
  4. Start in bootloader mode (presing inwards the trims and turning on) and flash the firmware to the radio
  5. When finished, press exit

Version

Other (Please specify below)

Transmitter

FrSky X9D+2019

Anything else?

No response

@Luznatural Luznatural added bug 🪲 Something isn't working triage Bug report awaiting review / sorting labels Nov 7, 2022
@pfeerick
Copy link
Member

pfeerick commented Nov 7, 2022

Try doing a DFU flash - that should work... This has been an intermittent problem that seems to arise every so often and were going to investigate after 2.8.0 released, as it seems to be solely related to flashing via the bootloader.

@pfeerick
Copy link
Member

pfeerick commented Nov 7, 2022

Duplicate of #2633

@pfeerick pfeerick marked this as a duplicate of #2633 Nov 7, 2022
@pfeerick pfeerick removed the triage Bug report awaiting review / sorting label Nov 7, 2022
@Luznatural
Copy link
Author

I have been trying to flash the X9DP SE 2019 radio both with Companion 2.8 and with EdgeTX Flasher (advanced flash) without success.
The radio connects to the computer, as the green light of the switch turns on (with the radio off). Selecting the correct file, and trying to flash, in both programs the message "Flashing Complete" takes less than half a second to appear. When you turn on the radio, you continue with ETX 2.7.1.
The radio receives updates correctly using Companion 2.7.1 with 2.7.1 firmware. I have even tried to write 2.8rc4 firmware using companion 2.7.1 and aparently it works, but the radio is locked in the same way than using the bootloader flash.
I doubled checked the correct and most updated USB zadig driver.
I have also tried selecting "force unprotect" in the DFU options. Same results.
I am afraid that this might be something bigger than a problem with the bootloader.

@pfeerick
Copy link
Member

pfeerick commented Nov 8, 2022

trying to flash, in both programs the message "Flashing Complete" takes less than half a second to appear. When you turn on the radio, you continue with ETX 2.7.1.

Something is very wrong there - it should take somewhere probably about 15-20 seconds to flash... that's as if it's not even in DFU mode :-/

Maybe try https://buddy.edgetx.org in a Chrome based web-browser?

@Luznatural
Copy link
Author

Finally, I was able to install it via Companion 2.8 using a different fresh notebook with Windows 11 on it. (Might there be a possible conflict with previous versions of companion? I do not mind, as once I update the version of firmware, I delete the previous versions)
Nevertheless, we need to fix the Bootloader issue, as is the preferred way of updating for most of the people (at least on my club).
Thanks for the help!!

@pfeerick
Copy link
Member

pfeerick commented Nov 9, 2022

Might there be a possible conflict with previous versions of companion?

There shouldn't be - each version of Companion installs into a separate folder and can work side by side with earlier and later versions. More likely some DFU driver issue. May be worth trying the ImpulseRC Driver fixer if you have issues on that machine again - https://impulserc.com/pages/downloads

Nevertheless, we need to fix the Bootloader issue,

Indeed, it will be looked into soon.

@driedeker
Copy link

same eror when I flashed with companion 2.8 bricked till i used the stm32 cube software to fix. that on a x9d
+2019 se version.

@pfeerick
Copy link
Member

pfeerick commented Nov 29, 2022

Should also be able to use EdgeTX Buddy with the radio in DFU mode (i.e. plug in the USB with the radio turned off and leave it off until the flash is complete).

I flashed v2.7.1 via DFU, and then upgraded to 2.8.0 with the bootloader via firmware, and firmware via bootloader. Rather than crash on powerup like it (X9D+2019) would sometimes do before, strange slured WAV playback and radio seems to somewhat work. Something is clearly still wrong, but I was able to use the bootloader to flash back to 2.7.1 and seems to be working fine again. I read back with the following settings as STM32CubeProgrammer indicated 1MB of flash... zip file contains the firmware file that was flashed, and what was read back.

image

x9d+2019_readback.zip

@pfeerick
Copy link
Member

pfeerick commented Nov 29, 2022

Something indeed looks somewhat offset here, and starts exactly at 00080000 in the file (they are identical until that) i.e. as something recognisable... SPS is seven lines higher when I look at the readback...
image
image

@Luznatural
Copy link
Author

Luznatural commented Nov 29, 2022

I have another input, that might be related to this issue:

I uploaded my X9Dp Se 2019 to ETX 2.8 firmware through companion 2.8, and all went well in theory.

But then I noticed that in the Sys/Hardware menú, all the inventory was empty, that means all switches, slides, pots, etc, went blank. I had (---) in all the configuration inventory.

So, all the mixes, sounds, and values didn't work when I activated the correspondant switch, pot or slider, as the system didnt detect them.

I had to reintroduce all the configuration manually. Then everything worked again.

I repeated the process, and happened every time I upgrade the radio from 2.7.1 to 2.8 the configuration inventory of the radio goes blank.

@pfeerick
Copy link
Member

Just to be 100% clear ... are you saying that (1) was blank? As it is normal for (2) to be blank as that is the custom naming for that control.

image

@Luznatural
Copy link
Author

Luznatural commented Nov 30, 2022 via email

@RoGoR1
Copy link

RoGoR1 commented Nov 30, 2022

Running Debian 11 (I haven't had windows since the early 2000nds). I have tried everything on my Tarnis x9dp2019, I have edgetx 8.0 boot loader, installed, and had 7.1 initially with all combinations. I tried flashing via companion 2.8.0 and 2.7.1 from the 2.7.1 boot loader, as well as 8.0 boot loader. There is no combination that works for me, I get the same results in all circumstances. I have no problem reverting to 2.7.1, that works no matter what, every time.

I don't know that there is really anything to gain by upgrading with this radio. I have two joystick models and one quad model elrs 3.0 that works with all of my quads, and everything kind of works. So I'll just stay with 2.7.1. Honestly for this radio, opentx was working just fine too. It's a lot of unnecessary upgrading, but I like to see the cool stuff you're all doing.

@Luznatural
Copy link
Author

Luznatural commented Nov 30, 2022 via email

@raphaelcoeffic
Copy link
Member

@pfeerick I believe this is because you read 1MB instead of 512KB (real size of flash). Seems what you're seeing is the same flash, again. (0x80000 = 512 x 1014)

@pfeerick
Copy link
Member

So STM32Cube is fibbing when it says 1MB flash size? Nevermind... I see reports that it does sometimes lie 🤦

image

What's more annoying/confusing is DFU is reporting the same sizes for X9D+, X9D+2019 and Zorro (i.e. 1M total) ... ah, but not for the TX16S.

C:\Users\pfeer>dfu-util -l
X9D+
Found DFU: [0483:df11] ver=2200, devnum=15, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg", serial="386A396B3138"

X9D+2019
Found DFU: [0483:df11] ver=2200, devnum=16, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg", serial="3982366E3039"

Zorro
Found DFU: [0483:df11] ver=2200, devnum=17, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg", serial="358532703131"

TX16S
Found DFU: [0483:df11] ver=2200, devnum=18, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg,04*016Kg,01*064Kg,07*128Kg", serial="367D346D3439"

@roberted9
Copy link

roberted9 commented Dec 19, 2022

I'm having the same problem using 9XD+ SE 2019 and iMac.

I can flash 2.7.1 and get the firmware and flashed bootloader but I get opentx sounds.
Welcome to opentx as Edgetx appears on my screen??

@pfeerick
Copy link
Member

@roberted9 Sounds come from the SD card, so if you haven't updated the SD card pack/sounds with the EdgeTX ones, then you only have the OpenTX sounds, hence they get played ;)

i.e. you need (latest/2.8 versions of both SD card pack and sound pack will work fine with 2.7)
https://github.com/EdgeTX/edgetx-sdcard/releases/tag/v2.8.0 (bw212x64.zip for X9D widescreen B&W)
https://github.com/EdgeTX/edgetx-sdcard-sounds/releases/tag/v2.8.0

@roberted9
Copy link

roberted9 commented Dec 19, 2022 via email

@roberted9
Copy link

roberted9 commented Dec 19, 2022 via email

@pfeerick
Copy link
Member

Crossfire RXs shouldn't loose their bind due to a ETX update - the bind is between the Crossfire module and the RX... the only thing EdgeTX can do to influence that is have the wrong baudrate for the Ext. RF/CRSF (should be 400k) or the wrong model id.

The downloading board information is suggestive of either the wrong version of the betaflight Lua, or again the baud rate is wrong since the info needs to come through the Crossfire module.(also double check that RADIO/SYS -> Hardware -> Sample Mode is set to OneBit). Other than that, it may be better to take this to Discord as this isn't related to the issue at hand.

@roberted9
Copy link

It was baud rate not set to 400K on model setup page external module subsection. Once addressed XF and BF lau scripts works properly.
I'm using 2.7 firmware and bootloader with 2.8 SDCard and sound content.

thanks

@F0undling
Copy link

Hi Everyone, I am new to this so thank you for making me feel like i am not going insane. I was wondering if anyone else is having an issue binding their receivers? I have tried updating their firmware on my RX8R as when i previously tried to bind it I only got both green and red like constant. Which Dr. Google and a youtube video tells me the firmware wasn't correct. Has anyone else had this issue?

Cheers

@FrankDrebin88
Copy link

Hi to all. Any news for flashing edge tx2.8 with sd and bootloader? i ve tried but i ve encountered the same issue.

@Slibs
Copy link

Slibs commented Feb 1, 2023

Can someone point me to a SW or a tutorial on how to unbrick the radio?

@roberted9
Copy link

roberted9 commented Feb 2, 2023

There’s a few videos on YouTube.JB does one.
One way is remove battery and SDcard.Turn on radio with no SDcard and see what happens.
Each time I have bricked my radio is from corrupt SDcard content.

@pfeerick
Copy link
Member

This shouldn't be an issue as of 2.8.1 - an undetected firmware overflow. Neither my X9D+ or X9D+2019 have had bootloader firmware issues since the fixes were applied, and I was also able to update to 2.8.1 without issue (via bootloader). Please let us know if you still have any problems! :)

@pfeerick pfeerick added this to the 2.8.1 milestone Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants