From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14845 invoked by alias); 21 Aug 2012 03:56:50 -0000 Received: (qmail 14832 invoked by uid 22791); 21 Aug 2012 03:56:49 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bay0-omc2-s7.bay0.hotmail.com (HELO bay0-omc2-s7.bay0.hotmail.com) (65.54.190.82) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Aug 2012 03:56:34 +0000 Received: from BAY163-W40 ([65.54.190.124]) by bay0-omc2-s7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 20 Aug 2012 20:56:34 -0700 Message-ID: From: tangwei To: CC: Date: Tue, 21 Aug 2012 03:56:00 -0000 In-Reply-To: References: ,<4FE1B18B.2090702@siva.com.mk>,,<4FE2C0F1.1090005@siva.com.mk>,,<4FE98E64.4090807@siva.com.mk>,,<4FEED299.6000001@siva.com.mk>,,<4FF29AC5.5070605@siva.com.mk>, Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] RE: Troubles when develop app with Kwikstik X-SW-Source: 2012-08/txt/msg00002.txt.bz2 Dear all, =A0 =A0 I have a FreeScale's Kwikstik board,and have troubles when develop = with it as below setp1:Use the default redboot setting for KwikStik,and then download the bi= n into the flash, then connect the COM,I get the below string on the computer,it seems the re= dboot is OK. Platform: Freescale KwikStik (Cortex-M4) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 RAM: 0x1fff8000-0x20007000 [0x1fffb6a8-0x20007000 available] =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0=A0 RedBoot>=A0 step2:Prepare the app from the examples directory (ELF fomart) If I use the default kernel setting(the startup setting is ROM),build the e= xamples with the kernel, get the hello(elf fomart). then use the gdb tool download the hello (gdb) set remotebaud 38400 (gdb) target remote /dev/ttyUSB0 Remote debugging using /dev/ttyUSB0 0x00003aa2 in ?? () (gdb) load hello Loading section .rom_vectors, size 0x8 lma 0x0 Load failed (gdb)=A0 if I use the starup setting SRAM for the kernel,then do as above (gdb) set remotebaud 38400 (gdb) target remote /dev/ttyUSB0 Remote debugging using /dev/ttyUSB0 0x00003aa2 in ?? () (gdb) load hello Loading section .rom_vectors, size 0x8 lma 0x1fff8400 Loading section .ARM.exidx, size 0x10 lma 0x1fff8408 Loading section .text, size 0x4dbc lma 0x1fff8418 Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... I want to download the app to the RAM for debug,so I think the second kerne= l startup setting is right, but I don't know somewhere else to make the change, can anyone help me,where is the bug, and how to debug? Thanks. =20=09=09=20=09=20=20=20=09=09=20=20 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss