System Manager Commands

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

System Manager Commands

Jump to solution
1,190 Views
alfredog
Contributor II

I would like to have information about the System Manager Commands available in the iMX95 19x19 LPDDR5 EVK from the debug port of Cortex-M33. 
There is no information about them, "help" only provides a list but no more information for commands with parameters are given. 

For example "lmm" , no idea about the arguments that can be used

Thank you in advance for pointing to the information.  

Alfredo

0 Kudos
Reply
1 Solution
936 Views
alfredog
Contributor II

Great, thank you.
There is the information I needed. Solved:

git clone https://github.com/nxp-imx/imx-sm


To build the full documentation, install the required tools:

$> sudo apt -y install make doxygen texlive texlive-latex-extra

Then change to the documentation directory (sm/doc) and execute the following:

$> make clean
$> make html

The output is written to the build directory (sm/doc/build/html).


The top level for the html output is the index.html file.
=> .../imx-sm/sm/doc/build/html/MONITOR.html

Thanks again for the pointing out where the information was located. Alfredo

View solution in original post

0 Kudos
Reply
5 Replies
1,147 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

I suggest you take a look to the imx-sm and application note AN14478.

At this moment, this is all the information that can be shared sincei.MX95 is in Pre-production yet.

Best regards.

0 Kudos
Reply
1,067 Views
alfredog
Contributor II

Dear Jorge,

Thank you for your prompt response.
Though I am trying to configure and evaluate the iMX95 system, the question is also relevant to other iMX9 SoCs, such as iMX94.

Following your idea of reviewing the imx-sm code, in imx-sm/sm/utilities/monitor/monitor_cmds.c, the MONITOR_Dispatch function includes the "static string const cmds[]" available.

Then for every command there is a corresponding function, e.g. MONITOR_CmdReason.
There are several commands, such as "reason" that are straightforward but many others should require to fully analyze, even the parameters to enter.
For example, "cpu.w" will call MONITOR_CmdCtrl.
I am wondering why is not available information about parameterization of all these SM functions.

cpu.r => read mode status for all SoC cores (args not used)

ctrl.w controls the RUN/SLEEP state of cores, how? which are the arguments?
it is very difficult to understand (reverse engineering) the parameterization from the given source code

and if ctrl.w changes the SoC's cores states, what is the cpu.w purpose then?

Thank you for your prompt response.
Though I am trying to configure and evaluate the iMX95 system, the question is also relevant to other iMX9 SoCs, such as iMX94.

Following your idea of reviewing the imx-sm code, in imx-sm/sm/utilities/monitor/monitor_cmds.c, the MONITOR_Dispatch function includes the "static string const cmds[]" available.

Then for every command there is a corresponding function, e.g. MONITOR_CmdReason.
There are several commands, such as "reason" that are straightforward but many others should require to fully analyze, even the parameters to enter.
For example, "cpu.w" will call MONITOR_CmdCtrl.
I am wondering why is not available information about parameterization of all these SM functions.

cpu.r => read mode status for all SoC cores (args not used)

ctrl.w controls the RUN/SLEEP state of cores, how? which are the arguments?
it is very difficult to understand (reverse engineering) the parameterization from the given source code

and if ctrl.w changes the SoC's cores states, what is the cpu.w purpose then?

As mentioned, it would be required that NXP provides more information regarding these commands to fully use the system manager command line.

Kind regards, Alfredo.

0 Kudos
Reply
968 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Did you build the documentation?

This is explained in Monitor -> Resource commands (Table).

Best regards.

0 Kudos
Reply
937 Views
alfredog
Contributor II

Great, thank you.
There is the information I needed. Solved:

git clone https://github.com/nxp-imx/imx-sm


To build the full documentation, install the required tools:

$> sudo apt -y install make doxygen texlive texlive-latex-extra

Then change to the documentation directory (sm/doc) and execute the following:

$> make clean
$> make html

The output is written to the build directory (sm/doc/build/html).


The top level for the html output is the index.html file.
=> .../imx-sm/sm/doc/build/html/MONITOR.html

Thanks again for the pointing out where the information was located. Alfredo

0 Kudos
Reply
930 Views
alfredog
Contributor II

Here is attached the SM monitor commands for other users reference.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2327887%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESystem%20Manager%20Commands%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327887%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20would%20like%20to%20have%20information%20about%20the%20System%20Manager%20Commands%20available%20in%20the%20iMX95%2019x19%20LPDDR5%20EVK%20from%20the%20debug%20port%20of%20Cortex-M33.%26nbsp%3B%3CBR%20%2F%3EThere%20is%20no%20information%20about%20them%2C%20%22help%22%20only%20provides%20a%20list%20but%20no%20more%20information%20for%20commands%20with%20parameters%20are%20given.%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%20%22lmm%22%20%2C%20no%20idea%20about%20the%20arguments%20that%20can%20be%20used%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20for%20pointing%20to%20the%20information.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EAlfredo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328091%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20System%20Manager%20Commands%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328091%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EI%20suggest%20you%20take%20a%20look%20to%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-sm%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Eimx-sm%3C%2FA%3E%26nbsp%3Band%20application%20note%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN14478.pdf%3F_gl%3D1*u4yymx*_ga*MTgyMjkyNzgwNC4xNzcyODExODA5*_ga_WM5LE0KMSH*czE3NzI4MjE5NDMkbzIkZzEkdDE3NzI4MjI4NDkkajQ1JGwwJGgzMDIzMTI5ODI.%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAN14478%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EAt%20this%20moment%2C%20this%20is%20all%20the%20information%20that%20can%20be%20shared%20sincei.MX95%20is%20in%20Pre-production%20yet.%3C%2FP%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328374%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20System%20Manager%20Commands%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328374%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20Jorge%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20prompt%20response.%3CBR%20%2F%3EThough%20I%20am%20trying%20to%20configure%20and%20evaluate%20the%20iMX95%20system%2C%20the%20question%20is%20also%20relevant%20to%20other%20iMX9%20SoCs%2C%20such%20as%20iMX94.%3C%2FP%3E%3CP%3EFollowing%20your%20idea%20of%20reviewing%20the%20imx-sm%20code%2C%20in%20imx-sm%2Fsm%2Futilities%2Fmonitor%2Fmonitor_cmds.c%2C%20the%20MONITOR_Dispatch%20function%20includes%20the%20%22static%20string%20const%20cmds%5B%5D%22%20available.%3C%2FP%3E%3CP%3EThen%20for%20every%20command%20there%20is%20a%20corresponding%20function%2C%20e.g.%20MONITOR_CmdReason.%3CBR%20%2F%3EThere%20are%20several%20commands%2C%20such%20as%20%22reason%22%20that%20are%20straightforward%20but%20many%20others%20should%20require%20to%20fully%20analyze%2C%20even%20the%20parameters%20to%20enter.%3CBR%20%2F%3EFor%20example%2C%20%22cpu.w%22%20will%20call%20MONITOR_CmdCtrl.%3CBR%20%2F%3EI%20am%20wondering%20why%20is%20not%20available%20information%20about%20parameterization%20of%20all%20these%20SM%20functions.%3C%2FP%3E%3CP%3Ecpu.r%20%3D%26gt%3B%20read%20mode%20status%20for%20all%20SoC%20cores%20(args%20not%20used)%3C%2FP%3E%3CP%3Ectrl.w%20controls%20the%20RUN%2FSLEEP%20state%20of%20cores%2C%20how%3F%20which%20are%20the%20arguments%3F%3CBR%20%2F%3Eit%20is%20very%20difficult%20to%20understand%20(reverse%20engineering)%20the%20parameterization%20from%20the%20given%20source%20code%3C%2FP%3E%3CP%3Eand%20if%20ctrl.w%20changes%20the%20SoC's%20cores%20states%2C%20what%20is%20the%20cpu.w%20purpose%20then%3F%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20prompt%20response.%3CBR%20%2F%3EThough%20I%20am%20trying%20to%20configure%20and%20evaluate%20the%20iMX95%20system%2C%20the%20question%20is%20also%20relevant%20to%20other%20iMX9%20SoCs%2C%20such%20as%20iMX94.%3C%2FP%3E%3CP%3EFollowing%20your%20idea%20of%20reviewing%20the%20imx-sm%20code%2C%20in%20imx-sm%2Fsm%2Futilities%2Fmonitor%2Fmonitor_cmds.c%2C%20the%20MONITOR_Dispatch%20function%20includes%20the%20%22static%20string%20const%20cmds%5B%5D%22%20available.%3C%2FP%3E%3CP%3EThen%20for%20every%20command%20there%20is%20a%20corresponding%20function%2C%20e.g.%20MONITOR_CmdReason.%3CBR%20%2F%3EThere%20are%20several%20commands%2C%20such%20as%20%22reason%22%20that%20are%20straightforward%20but%20many%20others%20should%20require%20to%20fully%20analyze%2C%20even%20the%20parameters%20to%20enter.%3CBR%20%2F%3EFor%20example%2C%20%22cpu.w%22%20will%20call%20MONITOR_CmdCtrl.%3CBR%20%2F%3EI%20am%20wondering%20why%20is%20not%20available%20information%20about%20parameterization%20of%20all%20these%20SM%20functions.%3C%2FP%3E%3CP%3Ecpu.r%20%3D%26gt%3B%20read%20mode%20status%20for%20all%20SoC%20cores%20(args%20not%20used)%3C%2FP%3E%3CP%3Ectrl.w%20controls%20the%20RUN%2FSLEEP%20state%20of%20cores%2C%20how%3F%20which%20are%20the%20arguments%3F%3CBR%20%2F%3Eit%20is%20very%20difficult%20to%20understand%20(reverse%20engineering)%20the%20parameterization%20from%20the%20given%20source%20code%3C%2FP%3E%3CP%3Eand%20if%20ctrl.w%20changes%20the%20SoC's%20cores%20states%2C%20what%20is%20the%20cpu.w%20purpose%20then%3F%3C%2FP%3E%3CP%3EAs%20mentioned%2C%20it%20would%20be%20required%20that%20NXP%20provides%20more%20information%20regarding%20these%20commands%20to%20fully%20use%20the%20system%20manager%20command%20line.%3C%2FP%3E%3CP%3EKind%20regards%2C%20Alfredo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2330077%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20System%20Manager%20Commands%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2330077%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EDid%20you%20build%20the%20documentation%3F%3C%2FP%3E%0A%3CP%3EThis%20is%20explained%20in%20Monitor%20-%26gt%3B%20Resource%20commands%20(Table).%3C%2FP%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2330383%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20System%20Manager%20Commands%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2330383%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EGreat%2C%20thank%20you.%3CBR%20%2F%3EThere%20is%20the%20information%20I%20needed.%20Solved%3A%3C%2FP%3E%3CP%3E%3CSPAN%3Egit%20clone%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-sm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-sm%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ETo%20build%20the%20full%20documentation%2C%20install%20the%20required%20tools%3A%3C%2FP%3E%3CP%3E%24%26gt%3B%20sudo%20apt%20-y%20install%20make%20doxygen%20texlive%20texlive-latex-extra%3C%2FP%3E%3CP%3EThen%20change%20to%20the%20documentation%20directory%20(sm%2Fdoc)%20and%20execute%20the%20following%3A%3C%2FP%3E%3CP%3E%24%26gt%3B%20make%20clean%3CBR%20%2F%3E%24%26gt%3B%20make%20html%3C%2FP%3E%3CP%3EThe%20output%20is%20written%20to%20the%20build%20directory%20(sm%2Fdoc%2Fbuild%2Fhtml).%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThe%20top%20level%20for%20the%20html%20output%20is%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Eindex.html%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile.%3CBR%20%2F%3E%3D%26gt%3B%20...%2Fimx-sm%2Fsm%2Fdoc%2Fbuild%2Fhtml%2FMONITOR.html%3C%2FP%3E%3CP%3EThanks%20again%20for%20the%20pointing%20out%20where%20the%20information%20was%20located.%20Alfredo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2330386%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20System%20Manager%20Commands%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2330386%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHere%20is%20attached%20the%20SM%20monitor%20commands%20for%20other%20users%20reference.%3C%2FP%3E%3C%2FLINGO-BODY%3E