LIN 2.x Stack 4.5.7 command line doesn't work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LIN 2.x Stack 4.5.7 command line doesn't work

Jump to solution
1,852 Views
michaelgoudey
NXP Employee
NXP Employee


The LIN 2.x Stack v4.5.7 for S12/MagniV/KEA appears to include a command line tool, but it doesn't seem to work.

 

When you execute the following, it just brings up the GUI and doesn't work as command line.

     C:\work\software\Automotive\FSL LIN 2.x Stack Package 4.5.7\NCFTool\NCFCmd\NCFCmd

 

I can't find any documentation for this.  Is the LIN Stack command line NCFTool broken, or am I trying to use it incorrectly?  What is the purpose of a separate NCFCmd executable if it functions the same as NCFGui?

 

Thanks,

 

Michael Goudey

Labels (1)
0 Kudos
1 Solution
1,427 Views
RadekS
NXP Employee
NXP Employee

Hi Michael,

I am sorry for late response.

Here is answer from LIN stack designer:

++++++++++++++++++++++++++++++

I am very sorry to hear about this complaint.

 

Actually the NCFGui.jar in folder “\NCFTool\NCFGui” contains help information regarding how to use it by typing “java -jar NCFGui.jar -?” or “java -jar NCFGui.jar –help”.

But I think we can also improve the documentation by adding a section regarding command line usage in the next release.

 

In folder: "\NCFTool\NCFGui" open cmd window and type:

    java -jar NCFGui.jar -?      

Or

   java -jar NCFGui.jar --help

   To show help menu

Typical command:

     java -jar NCFGui.jar -npf "npf file path" -o "output path" -u

where:

    -npf: following path is the path to NPF file.

  -o: following path is the path to output directory.

   -u: to overwrite existed configuration files

Examples:

                java -jar NCFGui.jar -npf "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\Node_configuration_files\KEA128_Master.npf" -o "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\KEA128\KEA128_LIN_Master\lin_cfg" -u

Above command will generate configuration files with input NPF is "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\Node_configuration_files\KEA128_Master.npf" to output folder: "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\KEA128\KEA128_LIN_Master\lin_cfg"

 

                java -jar NCFGui.jar -npf "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\Node_configuration_files\KEA128_Slave.npf" -o "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\KEA128\KEA128_LIN_slave\lin_cfg" -u

This command will generate configuration files with input NPF is "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\Node_configuration_files\KEA128_Slave.npf" to output folder: "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\KEA128\KEA128_LIN_slave\lin_cfg"

 

And there was a misconfiguration in NCFGUI.jar in LIN Stack 4.5.7 that caused command line tool not working. We are really sorry for that.

For a quick fix, please use the attached zip tool. We will fix that in the next release.

++++++++++++++++++++++++++++++

I hope it helps you.

Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

7 Replies
1,427 Views
RadekS
NXP Employee
NXP Employee

Hi Michael,

You are right, it seems that NCFCmd tool isn’t documented well.

Anyway, the NCFCmd toll isn’t a tool with the user interface. In fact, the code in NCFCmd.bat file should just parse long line command into the separated arguments and run NCFGui.jar application with these arguments.

I suppose that NCFCmd.bat arguments must contain at least path to NPF, LDF and CFG files, the output path, …

However, I am not sure with order and number of arguments.

I will try to get more information from LIN stack designers and put here more information about NCFCmd tool.

I hope it helps you.

Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,427 Views
michaelgoudey
NXP Employee
NXP Employee

Thank you Radek.  It will be very helpful if I can get an example to run command line using the arguments for NPF, LDF, CFG, and output, as you have mentioned.  Please let me know what you hear back from the LIN stack designers.

0 Kudos
1,428 Views
RadekS
NXP Employee
NXP Employee

Hi Michael,

I am sorry for late response.

Here is answer from LIN stack designer:

++++++++++++++++++++++++++++++

I am very sorry to hear about this complaint.

 

Actually the NCFGui.jar in folder “\NCFTool\NCFGui” contains help information regarding how to use it by typing “java -jar NCFGui.jar -?” or “java -jar NCFGui.jar –help”.

But I think we can also improve the documentation by adding a section regarding command line usage in the next release.

 

In folder: "\NCFTool\NCFGui" open cmd window and type:

    java -jar NCFGui.jar -?      

Or

   java -jar NCFGui.jar --help

   To show help menu

Typical command:

     java -jar NCFGui.jar -npf "npf file path" -o "output path" -u

where:

    -npf: following path is the path to NPF file.

  -o: following path is the path to output directory.

   -u: to overwrite existed configuration files

Examples:

                java -jar NCFGui.jar -npf "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\Node_configuration_files\KEA128_Master.npf" -o "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\KEA128\KEA128_LIN_Master\lin_cfg" -u

Above command will generate configuration files with input NPF is "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\Node_configuration_files\KEA128_Master.npf" to output folder: "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\KEA128\KEA128_LIN_Master\lin_cfg"

 

                java -jar NCFGui.jar -npf "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\Node_configuration_files\KEA128_Slave.npf" -o "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\KEA128\KEA128_LIN_slave\lin_cfg" -u

This command will generate configuration files with input NPF is "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\Node_configuration_files\KEA128_Slave.npf" to output folder: "D:\FSL_GIT_Repo\fsl_lin_2.x_driver\Examples\Kinetis\KEA128\KEA128_LIN_slave\lin_cfg"

 

And there was a misconfiguration in NCFGUI.jar in LIN Stack 4.5.7 that caused command line tool not working. We are really sorry for that.

For a quick fix, please use the attached zip tool. We will fix that in the next release.

++++++++++++++++++++++++++++++

I hope it helps you.

Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,427 Views
michaelgoudey
NXP Employee
NXP Employee

Radek,

I'm sorry I don't appear to have "Correct Answer" option since I created this thread as a discussion.  If you can think of a way to convert it to a question then I will select your response as the correct answer.

 

Regards, Michael Goudey

0 Kudos
1,427 Views
RadekS
NXP Employee
NXP Employee

Hi Michael,

You are right, this note about Correct Answer button is just piece of automatic text with ask for feedback. Personally, we do not distinguish between questions and discussions. But I understood to your confusion.

I converted this discussion into a question type and I would like to thank you for feedback.

Best regards,

Radek

0 Kudos
1,427 Views
michaelgoudey
NXP Employee
NXP Employee

Hi Radek,

Thanks for your response.  I don't see the attachment which was referenced.  Can you please provide it?

 

Regards,

 

Michael Goudey

0 Kudos
1,427 Views
RadekS
NXP Employee
NXP Employee

Hi Michael,

I attached NCFTool.zip file and user guide.txt to my previous reply.

attachment.png 

The files are packed by zip compression method.

Could you please check it again?

I hope it helps you.

Have a great day,
Radek

0 Kudos