Hi, I created a new project in:
MCUXpresso IDE v11.1.1 [Build 3241] [2020-03-02]
and tried to autogenerate bsp files using command line and standalone version of MCUXpresso config tool:
Version and Build id: 7.0.0.202002070841
The project is located in:
λ pwd
C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp
The directory tree in the project is standard one (I skipped uninteresting folders) :
λ tree /f
Folder PATH listing
Volume serial number is 0ED0-4231
C:.
│ .cproject
│ .project
│ good_example_bsp.mex
│
├───.settings
│ language.settings.xml
│
├───board
│ board.c
│ board.h
│ clock_config.c
│ clock_config.h
│ pin_mux.c
│ pin_mux.h
I formulated the following command:
C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp
λ tools.exe -noSplash -application com.nxp.swtools.framework.application -consoleLog -Load C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp\good_example.mex -HeadlessTool Pins -ExportAll C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp\board -SDKVersion ksdk2_0
This command does not work - it does not regenerate deleted pin_mux.c and other files in board folder. There is no console log. How can I repair this?
Thank you, it looks like we are closer to solving this issue.
Prior to describing what happend after applying the advices I would like to ask some more basic questions:
1. Shall I update my Config Tools?
2. Shall I call Config Tools from specific path and can I use system PATH to execute tools.exe?
What happend after applying advices:
-I deleted -SDKVersion and -application com.nxp.swtools.framework.application from arguments
-I checked again mex file with Config Tools Gui and there is only "No toolchain project detected" information in Problems tab, however when I switch the view with "Tools->Device Configuration" there is an information "ERRORS: Processor not supported" in the lower part of the window
-All function that I need are working properly - "File->Export->Pins Tools->Export HTML Report" works properly
"Update Code" recognizes that pin_mux.c file was deleted/modified in order to test generation and generates it again.
-There is no errors in c:\Users\user\.nxp\swtools.log file:
maj 14, 2020 12:40:10 PM com.nxp.swtools.framework.KExCmdLine parseCmdLine
WARNING: Program arguments were not processed: "[-showlocation]"
maj 14, 2020 12:43:41 PM com.nxp.swtools.clocks.data.model.SettingsConfig getSettingValue
WARNING: Setting value of "OSC::CR[RANGE].bitField" has not been initialized yet.
maj 14, 2020 12:43:41 PM com.nxp.swtools.clocks.data.model.SettingsConfig getSettingValue
WARNING: Setting value of "OSC::CR[RANGE].bitField" has not been initialized yet.
maj 14, 2020 1:26:32 PM com.nxp.swtools.utils.scripting.internal.ScriptApi logWarning
WARNING: Initialization code of SPI0 component in BOARD_InitPeripherals functional group is not generated due to invalid configuration.
maj 14, 2020 1:26:32 PM com.nxp.swtools.utils.scripting.internal.ScriptApi logWarning
WARNING: Initialization code of SPI0_2 component in BOARD_InitPeripherals functional group is not generated due to invalid configuration.
maj 14, 2020 1:26:43 PM com.nxp.swtools.utils.scripting.internal.ScriptApi logWarning
WARNING: Initialization code of SPI0 component in BOARD_InitPeripherals functional group is not generated due to invalid configuration.
maj 14, 2020 1:26:43 PM com.nxp.swtools.utils.scripting.internal.ScriptApi logWarning
WARNING: Initialization code of SPI0_2 component in BOARD_InitPeripherals functional group is not generated due to invalid configuration.
maj 14, 2020 2:13:24 PM com.nxp.swtools.framework.KExCmdLine parseCmdLine
WARNING: Program arguments were not processed: "[-showlocation]"
maj 14, 2020 2:14:07 PM com.nxp.swtools.clocks.data.model.SettingsConfig getSettingValue
WARNING: Setting value of "OSC::CR[RANGE].bitField" has not been initialized yet.
maj 14, 2020 2:14:07 PM com.nxp.swtools.clocks.data.model.SettingsConfig getSettingValue
WARNING: Setting value of "OSC::CR[RANGE].bitField" has not been initialized yet.
maj 14, 2020 2:14:07 PM com.nxp.swtools.clocks.data.model.SettingsConfig getSettingValue
WARNING: Setting value of "OSC::CR[RANGE].bitField" has not been initialized yet.
maj 14, 2020 2:14:07 PM com.nxp.swtools.clocks.data.model.SettingsConfig getSettingValue
WARNING: Setting value of "OSC::CR[RANGE].bitField" has not been initialized yet.
maj 18, 2020 12:27:32 PM com.nxp.swtools.framework.KExCmdLine parseCmdLine
WARNING: Program arguments were not processed: "[-showlocation]"
maj 18, 2020 12:34:37 PM com.nxp.swtools.framework.KExCmdLine parseCmdLine
WARNING: Program arguments were not processed: "[-showlocation]"
- I noticed that new entries do not appear even though the errors are repeated and deleted log file content.
- I tried once again execute command line call
C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp
λ tools.exe -noSplash -consoleLog -Load C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp\good_example.mex -HeadlessTool Pins -ExportAll C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp
- This time HTML file was generated (as well as empty csv file) in proper place, but with this error code:
Pins model not supported for the selected target Processor
- There were no new entries in log file.
- I tried calling toolsc.exe with the parameters listed below and a few other combinations but there was absolutly no console informations.
C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp
λ toolsc.exe -noSplash -consoleLog -Load C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp\good_example.mex -HeadlessTool Pins -ExportAll C:\user\workspaces\mcuxpresso_11_1_1_first\good_example_bsp
- Error level was set to 2 after calling toolsc.exe
C:\dsabala\workspaces\mcuxpresso_11_1_1_first\good_example_bsp
λ ECHO %ERRORLEVEL%
2
Best regards
Hello,
1. do NOT update the config tools, this was configuration error and this version is not yet to be released and could break you installation (different eclipse framework). Now it should not offer the update.
2. ideally execute tools.exe from working directory where it is installed.
- Device Configuration is supported on few devices, that might be correct.
>> Pins model not supported for the selected target Processor
This seems as a problem. Could you please share your project, including the MEX file? *.c and *.h files can be omited (except the pin_mux.*)
Please let me know the content of this file (the processor data version): c:\ProgramData\NXP\mcu_data_v8\processors\PROCESSORUSED\ksdk2_0\processor.properties
ERRORLEVEL 1 means incomplete CLI parameter
ERRORLEVEL 2 means some error occured during processing the CLI
Regards,
Libor
Hello,
sorry for late reply. I was not able to reproduce your issue, tried both v7 and v7.0.1.
I noticed in your CLI execution, that the MEX file name does not match the file name in the attached project. But it is probably only typo here, otherwise you should see an exception stacktrace in the CLI that the MEX file is not found.
Could you please try these steps?
Please let me know if any problem has occurred during the steps, especially for 6. and 8. If any problem, please attach c:\Users\user\.nxp\swtools.log
Regards,
Libor
Hi, thank you for advices, but it all failed silently anyway.
After deleting mentioned folder I opened MEX file in Config Tools GUI, it downloaded the files without problems and again there werent any warning and errors only one information about IDE not founded. I successfully exported all board files and html documentation. But then when I tried to run this tool from command line it failed to generate anything. This time even one line *.html file with this short fail information wasnt generated. ERRORLEVEL returned 2.
I will give up attempts to run this for some time. If I can suggest what could solve those problems - debug informations - i didnt saw even one line of debug informations (both in tools.exe -consoleLog and toolsc.exe... And this swtools.log file is still empty and previously it contained only a few not interesting warnings.
There is one more problem in GUI version: when exporting clocks with clocks diagram, the exported png file is whole black with no content.
Hello,
please few comments to the command line parameters
Last thing, what can you help with the tools messages in console is to:
Regards,
Libor