From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16557 invoked by alias); 13 May 2011 10:32:03 -0000 Received: (qmail 16545 invoked by uid 22791); 13 May 2011 10:32:03 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hermes.mlbassoc.com (HELO mail.chez-thomas.org) (64.234.241.98) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 May 2011 10:31:47 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id C9E9216603EC; Fri, 13 May 2011 04:31:42 -0600 (MDT) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by mail.chez-thomas.org (Postfix) with ESMTP id 382AE16603CB; Fri, 13 May 2011 04:31:40 -0600 (MDT) Message-ID: <4DCD088C.7000709@mlbassoc.com> Date: Fri, 13 May 2011 11:14:00 -0000 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7 MIME-Version: 1.0 To: Elad Yosef CC: ecos-discuss@ecos.sourceware.org References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------070106000908040302030801" 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] Help with CYGSEM_HAL_USE_ROM_MONITOR X-SW-Source: 2011-05/txt/msg00037.txt.bz2 --------------070106000908040302030801 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1687 On 05/13/2011 03:30 AM, Elad Yosef wrote: > Hi, > I have 1 UART on my target and whenever I have some crash in the > system I get some strings to the serial > > something like: > $O4D6172732D4170706C69636174696F6E20666C6173682076616C69642072616E67652069732030 > 786231303030303030202D20307862313033666666660A#15 Use the attached program to decode this: $ decode_gdb.py '$O4D6172732D4170706C69636174696F6E20666C6173682076616C69642072616E67652069732030786231303030303030202D20307862313033666666660A#15' Mars-Application flash valid range is 0xb1000000 - 0xb103ffff > > OR (for CYGSEM_HAL_USE_ROM_MONITOR = generic): > > $T0b25:e4850080;1d:104b40a0;#86$T0b25:e4850080;1d:104b40a0;#86$T0b25:e4850080;1d > :104b40a0;#86$T0b25:e4850080;1d:104b40a0;#86$T0b25:e4850080;1d:104b40a0;#86$T0b2 > 5:e4850080;1d:104b40a0;#86$T0b25:e4850080;1d:104b40a0;#86$T0b25:e4850080;1d:104b > 40a0;#86$T0b25:e4850080;1d:104b40a0;#86$T0b25:e4850080;1d:104b40a0;#86$T0b25:e48 > 50080;1d:104b40a0;#86$T0b25:e4850080;1d:104b40a0; > > What I don't understand is how to parse this error string > It looks like some GDB stuff so my direction is that my > CYGSEM_HAL_USE_ROM_MONITOR is wrong. > > What should I configure in the RedBoot and in the application? If you're using RedBoot, I think you are probably configured correctly. The problem is that some messages may be printed _before_ RedBoot takes over the printing channel. This is such a message. Better to just fix the problem :-) -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ --------------070106000908040302030801 Content-Type: text/plain; name="decode_gdb.py" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="decode_gdb.py" Content-length: 1030 #! /usr/bin/env python import sys, os def hex_chr(ch): if ((ch >= '0') & (ch <= '9')): return ord(ch) - ord('0') if ((ch >= 'a') & (ch <= 'f')): return ord(ch) - ord('a') + 0x0a if ((ch >= 'A') & (ch <= 'F')): return ord(ch) - ord('A') + 0x0A def gdb_char(str): _hex = (hex_chr(str[0]) << 4) | hex_chr(str[1]) return chr(_hex) if len(sys.argv) == 1: gdb_string = "$O5B6379675F6E65745F696E69745D20496E69743A206D62696E69742830783030303030303030290A#60" gdb_string = "$O464C4153482049443A2030312032323765203232313320323230310A#98" gdb_string = "$O68616C5F6D7063383378785F6932635F7075745F62797465732E3333370A#33" else: gdb_string = sys.argv[1] human_string = "" if gdb_string.find("$") < 0: print "*** incomplete string '%s': try using \"'\" to quote it" % gdb_string os._exit(1) gdb_string = gdb_string[2:] # Strip $O while gdb_string[0] != '#': human_string += gdb_char(gdb_string[0:2]) gdb_string = gdb_string[2:] print human_string --------------070106000908040302030801 Content-Type: text/plain; charset=us-ascii Content-length: 148 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss --------------070106000908040302030801--