 |
|
Debugging via VPN
|
|
 |
The debugger is accessed via Internet/VPN and the performance is very slow. What can be done to improve debug performance?
|
| |
|
The main cause for bad debug performance via Internet or VPN are low data throughput and high latency. The ways to improve performance by the debugger are limited:
- in practice scripts, use "SCREEN.OFF" at the beginning of the script and "SCREEN.ON" at the end. "SCREEN.OFF" will turn off screen updates. Please note that if your program stops (e.g. on error) without executing "SCREEN.OFF", some windows will not be updated.
- "SYStem.POLLING SLOW" will set a lower frequency for target state checks (e.g. power, reset, jtag state). It will take longer for the debugger to recognize that the core stopped on a breakpoint.
- "SETUP.URATE 1.s" will set the default update frequency of Data.List/Data.dump/Variable windows to 1 second (the slowest possible setting).
- prevent unneeded memory accesses using "MAP.UPDATEONCE [address-range]" for RAM and "MAP.CONST [address--range]" for ROM/FLASH. Address ranged with "MAP.UPDATEONCE" will read the specified address range only once after the core stopped at a breakpoint or manual break. "MAP.CONST" will read the specified address range only once per SYStem.Mode command (e.g. SYStem.Up).
|
 |
|
Target Power Supply Switch
|
|
 |
Is there a simple way to control target power supply via the ICE to prevent problems after the ICE has been powered off?
|
| |
|
Follow the sequence below.
- If you own an output probe COUT8, connect it to the STROBE output connector.
- Type PULSE2. and press F1. You will get the pin out of the output probe COUT8. Pin 13 (OUT6) delivers +5 V after the emulator has finished its initialization and 0 V if the emulator is powered off. This can be used to drive a relay via a transistor to switch the target power on and off automatically if the Pulse Generator is not used for other purposes. The schematic of the switching unit can be found in the file TARGETC.CMM.
- Additionally Pin 13 (OUT6) can be controlled by ICE commands.
Target power supply off. "PULSE2.P +"
Target power supply on. "PULSE2.P -"
The following Practice command file creates 3 buttons in the Toolbox
for:
Target power on
Target power off
Target power off and QUIT.
Adding that file to T32.cmm loads the buttons automatically after startup.
|
 |
|
Wrong Location after Break
|
|
 |
Why is the location after break wrong?
|
| |
|
Most emulators use some bytes of user stack for the break system. Therefore it is necessary to have valid stack, if single step or breakpoints are used.
|