From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24436 invoked by alias); 18 May 2012 21:16:16 -0000 Received: (qmail 24396 invoked by uid 22791); 18 May 2012 21:16:15 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from www.meduna.org (HELO meduna.org) (92.240.244.38) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 May 2012 21:16:01 +0000 Received: from dial-95-105-165-4-orange.orange.sk ([95.105.165.4] helo=[192.168.130.22]) by meduna.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1SVUWe-0003Zf-91 for ecos-devel@ecos.sourceware.org; Fri, 18 May 2012 23:15:58 +0200 Message-ID: <4FB6BC02.8040600@meduna.org> Date: Fri, 18 May 2012 21:16:00 -0000 From: Stanislav Meduna User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: ecos-devel@ecos.sourceware.org Subject: OpenOCD, Cortex-M3 and threads - any success? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Authenticated-User: stano@meduna.org X-Authenticator: dovecot_plain X-Spam-Score: -6.9 X-Spam-Score-Int: -68 X-Exim-Version: 4.72 (build at 12-May-2011 18:13:45) X-Date: 2012-05-18 23:15:58 X-Connected-IP: 95.105.165.4:60053 X-Message-Linecount: 52 X-Body-Linecount: 41 X-Message-Size: 1669 X-Body-Size: 1244 X-Received-Count: 1 X-Recipient-Count: 1 X-Local-Recipient-Count: 1 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2012-05/txt/msg00000.txt.bz2 Hi, anyone has any success with the eCos thread support in OpenOCD? I am using the current snapshot of OpenOCD with -rtos auto, a TI Stellaris Cortex-M3 processor and a gdb 7.4. This combination is able to successfully detect the eCos but then probably tries to access invalid memory and is not able to show the threads. Setting CYGDBG_HAL/KERNEL_DEBUG_GDB_THREAD_SUPPORT has no effect. The OpenOCD shows Open On-Chip Debugger 0.6.0-dev-00571-g0644754 (2012-05-18-10:41) Licensed under GNU GPL v2 For bug reports, read http://openocd.sourceforge.net/doc/doxygen/bugs.html Info : only one transport option; autoselect 'jtag' 3000 kHz Info : clock speed 3000 kHz Info : JTAG tap: lm3s9b9x.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4) Info : lm3s9b9x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : accepting 'gdb' connection from 3333 Warn : acknowledgment received, but no packet pending undefined debug reason 6 - target needs reset Auto-detected RTOS: eCos Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x4000f4f0 The debugged application is a simple RAM one running on top of the RedBoot. eCos is current trunk. Thanks -- Stano