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)