Friday, April 20th 2018, 12:46pm 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.

Date of registration: Mar 28th 2017

Posts: 4

1

Tuesday, April 17th 2018, 9:08am

Is is possible to log the output of JFlashSPI_CL (command line)?

Hi,
Trying to log the output of command line version of JFlashSPI. Manual (UM08001) says there is a command line option "-jflashlog", however, if I include it into my batch file, log is not being created, even though I can see programming activity on the screen. If I run the GUI version, logging works as expected. But I need command line, for automation.
My script looks like:

Source code

1
2
3
4
5
6
7
start "JFlashSPI_CL.exe" "C:\Program Files (x86)\Segger\JLink_V630k\JFlashSPI_CL.exe" -USB600000000 -jflashlog -openprj "C:\projects\test_data.jflash" -open "C:\projects\test_data.hex" -connect -erasechip -programverify -disconnect -exit
IF ERRORLEVEL 1 goto ERROR
goto END
:ERROR
ECHO J-Flash SPI: Error!
pause
:END


Thank you!
Martynas

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 936

2

Tuesday, April 17th 2018, 9:38am

Hello Martynas,

Thank you for your inquiry.
Unfortunately jflashlog is currently only supported in the GUI version of JFlash SPI. We will fix this short term for the CL version and make it available.
The documentation will also be updated as it is currently misleading as a path needs to be passed as well just like you do with openprj for example.
Sorry for any inconveniences caused.

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/


Date of registration: Mar 28th 2017

Posts: 4

3

Tuesday, April 17th 2018, 9:47am

Thanks, Nino!
We will fix this short term for the CL version and make it available.

When do you think we could expect the change to be ready? Is it a matter of days, weeks?

Regards,
Martynas

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 936

4

Tuesday, April 17th 2018, 4:31pm

Hello,

The fix is already implemented internally. A release version is planned on Friday as part of our weekly patched release.
Until then we suggest using the non CL version of JFlashSPI that supports the same CL options if you need the log file.

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/