From f68750cddf5754e527278f56e472757671fc6869 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Wed, 29 Jun 2011 12:03:14 +0800 Subject: remove wait delay in comm transmit dbg__sendCommMsg does not need 1 ms delay. Removed. dbg__runloopTasks needs the 1 ms delay, otherwise Armdebug doess not reliably detect incoming messages in comm buffer. This probably masks synchronization issues related to the USB Receive Buffer checking and handling, and should be fixed (eventually). --- Debugger/debug_runlooptasks.S | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Debugger') diff --git a/Debugger/debug_runlooptasks.S b/Debugger/debug_runlooptasks.S index d2557d5..8eed3ad 100644 --- a/Debugger/debug_runlooptasks.S +++ b/Debugger/debug_runlooptasks.S @@ -172,7 +172,6 @@ _dbg__reboot_wait: #ifdef __NXOS__ .extern debug_OutCommBuf - .extern nx_systick_wait_ms /**************************************************************************** * * NxOS Communications Driver Interface Routine @@ -201,9 +200,7 @@ dbg__sendCommMsg: mov r1, r4 /* Comm buffer length */ bl nx_usb_write -1: mov r0, #1 /* 1 ms delay */ - bl nx_systick_wait_ms - bl nx_usb_data_written /* R0 = True if data has been sent */ +1: bl nx_usb_data_written /* R0 = True if data has been sent */ teq r0, #0 /* FALSE == #0; We can't check for True condition since values used by C-Compiler & ARMDEBUG are different */ -- cgit v1.2.3