From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14032 invoked by alias); 23 Oct 2014 12:53:19 -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 14022 invoked by uid 89); 23 Oct 2014 12:53:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f50.google.com Received: from mail-wg0-f50.google.com (HELO mail-wg0-f50.google.com) (74.125.82.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 23 Oct 2014 12:53:17 +0000 Received: by mail-wg0-f50.google.com with SMTP id a1so1059266wgh.9 for ; Thu, 23 Oct 2014 05:53:14 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.52.3 with SMTP id p3mr5175335wjo.93.1414068794234; Thu, 23 Oct 2014 05:53:14 -0700 (PDT) Received: by 10.180.83.67 with HTTP; Thu, 23 Oct 2014 05:53:14 -0700 (PDT) In-Reply-To: References: <544618E5.90101@unicore.co.ua> <54479031.9080106@unicore.co.ua> <5447C1D0.3070906@unicore.co.ua> Date: Thu, 23 Oct 2014 12:53:00 -0000 Message-ID: From: Edgar Grimberg To: Oleg Uzenkov Cc: eCos Discussion Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Subject: Re: [ECOS] small custom bootloader to start an app stored in flash X-SW-Source: 2014-10/txt/msg00040.txt.bz2 >>> 4. Try starting your application (0x08020000) from the debugger >>> directly, see if you get the printf. >> >> ... >> (gdb) load >> Loading section .rom_vectors, size 0x8 lma 0x8020000 >> Loading section .ARM.extab, size 0x3c lma 0x8020008 >> Loading section .ARM.exidx, size 0xc8 lma 0x8020048 >> Loading section .text, size 0x586c lma 0x8020110 >> Loading section .rodata, size 0x10d lma 0x8025980 >> Loading section .data, size 0x268 lma 0x8025a98 >> Start address 0x8020110, load size 23789 >> Transfer rate: 3 KB/sec, 3398 bytes/write. >> (gdb) next >> Cannot find bounds of current function >> ... > > Does it display the printf if you continue? If not, this confirms the > theory that the application does not start correctly from its start > address. To gather more evidence, in GDB, can you disassemble the code from 0x08020000 to 0x08020008 ? (gdb) disas 0x08020000, 0x08020008 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss