Bug 1312 - Pulseview should scream in GUI when it can't find fx2lafw firmware files it wants to flash
Summary: Pulseview should scream in GUI when it can't find fx2lafw firmware files it w...
Status: CONFIRMED
Alias: None
Product: PulseView
Classification: Unclassified
Component: UI (show other bugs)
Version: 0.4.0
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-14 23:03 CEST by C0rn3j
Modified: 2019-12-11 10:59 CET (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description C0rn3j 2018-10-14 23:03:29 CEST
I was having issues getting my Saleae clone to work. I ended up figuring it out but Pulseview could make it way easier on the users.

With my Saleae clone and Saleae firmware installed, I could detect it in Pulseview and add it to the list, but I could not actually select it (checkmark appears).


Terminal info from PV:

sr: resource: Failed to open resource 'fx2lafw-saleae-logic.fw' (use loglevel 5/spew for details).
sr: fx2lafw: Firmware upload failed for device 3.84 (logical).
sr: fx2lafw: Unable to get version info: LIBUSB_ERROR_TIMEOUT.
sr: fx2lafw: Failed to get firmware version.
sr: fx2lafw: Unable to open device.

Terminal info (cutout) from PV with logging level 5:
sr: [00:00.815963] resource: Attempt to open '/root/.local/share/sigrok-firmware/fx2lafw-saleae-logic.fw' failed: No such file or directory
sr: [00:00.815973] resource: Attempt to open '/usr/share/sigrok-firmware/fx2lafw-saleae-logic.fw' failed: No such file or directory
sr: [00:00.815982] resource: Attempt to open '/usr/local/share/sigrok-firmware/fx2lafw-saleae-logic.fw' failed: No such file or directory
sr: [00:00.815989] resource: Attempt to open '/usr/share/sigrok-firmware/fx2lafw-saleae-logic.fw' failed: No such file or directory
sr: [00:00.815994] resource: Failed to locate 'fx2lafw-saleae-logic.fw'.

What a common user wants to actually do in this case is just download the latest prebuilt files from https://sigrok.org/download/binary/sigrok-firmware-fx2lafw/

I'd consider this issue resolved if PV at least had a popup when this happens saying "Hey, PV needs to flash firmware on your device but it can't find any firmware files. You can download pre-built firmware from [Clickable URL] and extract it in [~/.local/share/sigrok-firmware/]" and have a button there that opens up the firmware folder (and creates it if needed).

I only use Pulseview on Linux and have no clue what needs to be done for other platforms.
Comment 1 C0rn3j 2018-10-14 23:04:53 CEST
>but I could not actually select it (checkmark appears)

What I meant there is that the checkmark does not actually appear in PV and practically nothing happens.
Comment 2 sebi 2019-04-09 20:46:40 CEST
Under Ubuntu, installed from the official sources PulseView finds the device, but after clicking "OK" nothing happens and nothing is selected. I had to start the program from console and put three different error messages into google to find this bug report.

I am pretty sure not everyone is able to do that, not even speaking of the horrible usability (none). 

Please fix this.
Comment 3 Alberto Nidasio 2019-12-11 10:59:47 CET
I got the same error. I solved the issue by installing the package sigrok-firmware-fx2lafw.