Need real time debugging idea.

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

Need real time debugging idea.

1,017 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by noritan_org on Sat Feb 13 01:41:52 MST 2010
I need any real-time debugging idea using LPCXpresso tool-chain.

OBJECTIVE:
Adjust parameters during the feedback loop consisting of a software, i.e. a digital filter, is running.

I have following ideas, but do not work.

(1) Adjust the parameter in variables with the debugged.
When the parameters are assigned to variables, these are listed in the "Variables" view of the LPCXpresso IDE. The variables can be updated by the IDE.  But, this does not work, because the "Variables" view is not available  when the processor is running.

(2) Adjust the parameter using fgetc() functions.
It is available to adjust parameters by implementing a tiny routine using fgetc() function to get commands from the LPCXpresso IDE, parse the command, and update the parameter. I have implemented a dispatcher in the main loop. But this does not work because the fgetc() function is a BLOCK type function to wait for an input from IDE.

(3) Adjust the parameter using external UART terminal.
It is available to adjust paramters by implementing a tiny routine using UART interface to get and parse commands, and then update parameters. A dispatcher can be included in the main loop and I think this does work. But this solution needs additional hardware externally.

Could you give me any ideas to solve my requirement ?
It is better to have a NON-BLOCKING type fgetc() function for the solution (2)
0 Kudos
Reply
1 Reply

984 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by noritan_org on Tue Feb 16 06:50:58 MST 2010
I have confirmed if any exception occurs when the "scanf()" function is executed. As the result, the "scanf()" function blocks the SysTick exception.  So, I don't think any other exceptions are accepted during the execution of "scanf()" function.

Are there any effective use of "scanf()" and "gets()" functions for debugging ?
0 Kudos
Reply