From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16009 invoked by alias); 23 Aug 2007 22:47:49 -0000 Received: (qmail 15885 invoked by uid 22791); 23 Aug 2007 22:47:47 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-kukur.atl.sa.earthlink.net (HELO elasmtp-kukur.atl.sa.earthlink.net) (209.86.89.65) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 23 Aug 2007 22:47:42 +0000 Received: from [76.167.204.177] (helo=PAULD) by elasmtp-kukur.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1IOLSi-0007VT-KZ for ecos-discuss@ecos.sourceware.org; Thu, 23 Aug 2007 18:47:37 -0400 From: "Paul D. DeRocco" To: "'ecos-discuss'" Date: Thu, 23 Aug 2007 22:47:00 -0000 Message-ID: <02a401c7e5d7$9705af50$887ba8c0@PAULD> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook, Build 10.0.6822 In-Reply-To: X-ELNK-Trace: bd7d5d4e6f8f652c74cfc7ce3b1ad11381c87f5e5196068885018cbe21f4a416905cd5f0ca505280350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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: RE: [ECOS] ecos application problem X-SW-Source: 2007-08/txt/msg00127.txt.bz2 > From: albert prasetyo >=20 > I am a newbie in redboot and ecos. Currently I am developing > redboot for AT91RM9200 board (ARM9). I am able to develop=20 > redboot (RAM) version for this board but unable to run the=20 > application (app.srec). >=20 > Source code of app.srec: > #include >=20 > int main(void) >=20 > { >=20 > printf("1\n"); >=20 > return 0; >=20 > } >=20 >=20 > This is the message generated by redboot: >=20 > RedBoot> load -m y > CCEntry point: 0x21000040, address range: > 0x21000000-0x210086c4 xyzModem - CRC mode,=20 > 2(SOH)/102(STX)/0(CAN) packets, 4 retries > RedBoot> go > $O310A#24 >=20 > It somehow managed to print '1' but in ASCII mode. I don't > know where my configuration goes wrong. Any help is much appreciated. That's a GDB packet, containing your output in hex (310A is "1\n"). This is what you get when your program is sharing an interface with the GDB stubs. If you communicated with the board using GDB, and loaded and ran the app that way, GDB would display your output correctly in its console pane. Or if you sent your output to a different device, it would look normal. --=20 Ciao, Paul D. DeRocco Paul mailto:pderocco@ix.netcom.com=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