Script in MCUXpresso

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

Script in MCUXpresso

146 Views
_Ferrari_
Contributor IV

Dear all,

Often, during debug operations, I have the necessity to use many repetitive commands such as clearing breakpoints, assigning values to variables, and so on.

I would like to know if there is the possibility to use a kind of script, similar to a batch file, in which these commands can be written.

Did you have any similar problems?
How did you fix it?

Thank you very much for your help and cooperation.

Regards,

0 Kudos
Reply
3 Replies

51 Views
_Ferrari_
Contributor IV


Many applications have input parameters on the command line, conventionally called argc and argv.
For example, the Linux command 'ls' has many command-line parameters: 'ls -l' or 'ls *.c'....
In my case, I have an application divided into two parts:
Program_A
Program_B

_Ferrari__4-1733483406892.png

Program_A calls Program_B passing a parameter written in memory argv (4 bytes) inserted into a segment that is not cleared

__SECTION(noinit,RAM4) int32_t argv;

_Ferrari__0-1733482490070.png

When I debug Program_B, I must first assign a value to argv and then execute the debug.


Therefore, I was wondering if there is a way to write a script in MCUXpresso that can assign a value and perform a reset of the program

For example the script should assign a value to argv

_Ferrari__2-1733483256196.png

then should perform a reset simulating a click on the reset icon

_Ferrari__3-1733483302776.png

Thank you very much for your help and cooperation

regards

0 Kudos
Reply

17 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, this new request is different from the original petition, I recommend open a new case with appropriate title, to get help from the support or community.

Best regards,
Pavel

0 Kudos
Reply

123 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, could you elaborate further about what tool are you using? and what command are you typing? on the IDE MCUXPresso could use your own script.

Pavel_Hernandez_0-1732651156455.png

Image example

Best regards,
Pavel

0 Kudos
Reply