Thursday, April 26th 2018, 9:44am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Jaydee

Beginner

Date of registration: Apr 10th 2018

Posts: 2

1

Tuesday, April 10th 2018, 12:27pm

[SOLVED] Unable to use openprjC command does this need a license

Good morning,

I have created a project and can manually load a bin file using the Jflash application into an nrf device.
When i use C# to call JFLASH as a process I can succesfully load whatever the last opened project was by using process arguments
process.StartInfo.Arguments = "/C JFlash.exe -auto -exit"
I can also erase the device.

What i cannot get to work is opening the project using the following strings as a process argument.
process.StartInfo.Arguments = "JFlash.exe -openprjC:\\Program Files (x86)\\SEGGER\\JLink_V618\\Samples\\JFlash\\ProjectFiles\\XYZ.jflash";

I also tried running this through command line and manually typing.
It opens Jflash application but reports fail to load the project.

What i find strange is the .jflash files are not visible by exploring the files in windows explorer, they are only visible as locked item icons when using Jflash application with File/Open project and browsing like this.

I have seen another thread where it was advised that you could simply double click a .jflash file and this would open the project. This makes me think that this is therefore a license issue and when i call it from another application it simply cannot find the file.

I have just uploaded two screen shots,
1 which shows the JFLASH screen after a failed project open attempt.
The other was an attempt to copy the .jflash project (accessed through Jflash open project browser) and paste it somewhere else, the file is inaccessible.


Please help

Thanks

John
Jaydee has attached the following images:
  • fail to open.PNG
  • inaccessible.PNG

This post has been edited 2 times, last edit by "Jaydee" (Apr 10th 2018, 12:40pm)


SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 960

2

Wednesday, April 11th 2018, 10:17am

Hello John,

Thank you for your inquiry.

Quoted

What i find strange is the .jflash files are not visible by exploring the files in windows explorer, they are only visible as locked item icons when using Jflash application with File/Open project and browsing like this.

This is due to windows mirroring the file location from a temporary folder where no admin privileges are needed.
Currently you are trying to load the project from Program Files/ where it only exists virtually.
To work around this issue simply save your .jflash file in a folder where not admin rights are needed e.g. you user folder.
Then the error should not appear anymore. This is unfortunately inconvenient behaviour by Windows.

Does this solve the issue?

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


Jaydee

Beginner

Date of registration: Apr 10th 2018

Posts: 2

3

Friday, April 13th 2018, 11:48am

Hi Nino,

Thanks for the reply and the explanation about the files that makes perfect sense and I can see and use the file in that instance and loading works as expected. Thanks for your help

Best Regards

John

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 960

4

Friday, April 13th 2018, 12:06pm

Hello John,

Great to hear that you are up and running again.
This thread will now be considered as solved.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/