From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30205 invoked by alias); 9 Oct 2014 13:42:15 -0000 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 Received: (qmail 30195 invoked by uid 89); 9 Oct 2014 13:42:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB autolearn=no version=3.3.2 X-HELO: xm21.hostsila.net Received: from xm21.hostsila.net (HELO xm21.hostsila.net) (80.91.189.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 09 Oct 2014 13:42:08 +0000 Received: from [195.20.130.1] (port=42325 helo=[10.1.7.235]) by xm21.hostsila.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XcDzq-0030fj-AO; Thu, 09 Oct 2014 16:43:10 +0300 Message-ID: <543690AA.6090406@unicore.co.ua> Date: Thu, 09 Oct 2014 13:42:00 -0000 From: Oleg Uzenkov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Edgar Grimberg CC: eCos Discussion References: <542D110B.9080002@unicore.co.ua> <542E8B41.8030905@dallaway.org.uk> <5436726C.8000703@unicore.co.ua> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Get-Message-Sender-Via: xm21.hostsila.net: authenticated_id: o.uzenkov@unicore.co.ua X-IsSubscribed: yes Subject: Re: [ECOS] redboot on STM3240G-EVAL board X-SW-Source: 2014-10/txt/msg00007.txt.bz2 Thanks Edgar. I have redboot for ROM and app.elf for RAM I do the following and it works: arm-none-eabi-gdb -b 115200 app.elf (gdb) target remote /dev/ttyUSB0 GNU gdb (Sourcery G++ Lite 2011.03-42) 7.2.50.20100908-cvs .... (gdb) target remote /dev/ttyUSB0 Remote debugging using /dev/ttyUSB0 Ignoring packet error, continuing... Ignoring packet error, continuing... 0x00008000 in ?? () (gdb) load Loading section .rom_vectors, size 0x8 lma 0x64008000 Loading section .ARM.extab, size 0x3c lma 0x64008008 Loading section .ARM.exidx, size 0xc8 lma 0x64008048 Loading section .text, size 0x595c lma 0x64008110 Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... Loading section .rodata, size 0x204 lma 0x6400da70 Loading section .data, size 0x2a8 lma 0x6400dc80 Ignoring packet error, continuing... Start address 0x64008110, load size 24340 Transfer rate: 81 bytes/sec, 283 bytes/write. (gdb) continue Continuing. HELLO However, it does not work from redboot. I have a feeling i did not specify correct addresses with: load -r -m xmodem -b 0x64010000 fis create -b 0x64010000 -f 0x08040000 app fis load app I did not specify Entry Point addresse either (not sure with the values) Please could you check the steps from the previous mail. Did I do everything in the correct way? Oleg >> RedBoot> go >> $T080f:00000164;0d:e8cf1d64; >> >> I do not know what that means. Probably memory corruption. > Try to connect gdb on the host machine via the serial port to the > target, and try debugging. The string you are seeing is gdbserver on > the target trying to say something to gdb client. > > https://sourceware.org/gdb/onlinedocs/gdb/Connecting.html > > Regards, > Edgar -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss