-
Notifications
You must be signed in to change notification settings - Fork 125
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
Flashing of file does not work without GUI progress bar #93
Comments
You might want to try the |
This is exactly what I need, but unfortunately, this does not work. I am calling methods as following:
However it still creates flashing window. I am using Raspberry OS (Debian). |
Same here |
In jlink.py is says: Line 977 in 1e26587
That's not the case. Dialogboxes appear on MacOS and Linux as well (unfortunately) |
Hey folks, sorry about the above, could you try the following and let me know if any of these work for you. You may need to combine them:
I think it's fairly new that they appear on *nix platforms. |
Works on MacOS as well as on Linux! |
Thanks @kettenbach-it for the quick look into this, and @qwasko1212 for raising it. I've marked this issue as a Probably update its docstring too to indicate it's not just Window. |
I'll submit a PR. Can you have a look at #94 !? That's even more severe that this issue |
Fix should be present in |
Mmm, there still a problem left: I use "ssh -x" to login to the machine that runs the flash-code. "-x" disables the X-Server, which won't be available in my final production enviroment (docker). Docker ist the reason, why I need this whole thing to be a real shell application not depending on a running x-server. Using pylink-0.10, flashing with this code works:
But flashing without the "exec_command" statements (lines 1-6), leads to this:
|
I narrowed it down to
If this is not present in my program, I get the above error |
@kettenbach-it I am using ssh without GUI and jlink.disable_dialog_boxes() disables all GUI windows. P.s I tried to connect using ssh -x and for me everything is fine. |
🤦 |
I can confirm: everything is fine now. |
If device is unplugged, using this code: jlink = JLink()
jlink.exec_command('HideDeviceSelection = 1')
jlink.exec_command('SuppressControlPanel')
jlink.exec_command('DisableInfoWinFlashDL')
jlink.exec_command('DisableInfoWinFlashBPs')
jlink.disable_dialog_boxes()
jlink.open() I'm getting this error:
pylink-square==0.10.0 |
You didn't do a jlink.open() |
Did with jlink.open() after JLink() . Yep, seems like JLink is trying to raise dialog on open and cannot do that(tried with JLinkExe with Xorg and without Xorg). But I don't need any GUI and I want to disable it. With plugged device everything works fine. DLL version V6.99c |
The documentation seems to be a bit outdated on this, but the situation is as follows:
In your case, you have no device plugged in at all, and it is probably raising some error dialog which is why you're running into the issue. Is there a use case for your flow of calling
|
Thanks. Good idea. |
I am using an Educational (EDU) J-link. I have the disable_dialog_boxes() method and the exec_command() methods in my code, BUT I'm still getting a 'J-Link terms of use' Pop-Up window every time I run a J-link flash or erase method. I want to disable all J-link GUI and windows to run my code on a headless Raspberry Pi 4. How can I disable this terms-of-service Pop-up? `def erase_SensorHub():
|
@cohen5790, I don't think there is a way to remove that dialog as it's an EDU model. |
Yes, I agree That would make sense for an EDU version. There is also a method in pylink-square |
@cohen5790 thanks,老哥牛逼,This command needs to be executed before each 'open' |
I have to develop an application that should operate without any GUI interface. When I am flashing target with a file using jlink.flash_file() it invokes GUI window with progress bar. I am running my application using ssh and I am getting the following exception
This issue also present when I am running an App without a system launcher using raspberry py. Enabling ssh X forwarding is not an option.
I have also tried to supply on_progress callback to jlink.flash_file(), but it still does not prevent for invoking GUI progress bar.
The text was updated successfully, but these errors were encountered: