From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5651 invoked by alias); 21 Oct 2014 13:25:39 -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 5641 invoked by uid 89); 21 Oct 2014 13:25:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f179.google.com Received: from mail-wi0-f179.google.com (HELO mail-wi0-f179.google.com) (209.85.212.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 21 Oct 2014 13:25:37 +0000 Received: by mail-wi0-f179.google.com with SMTP id d1so1814691wiv.6 for ; Tue, 21 Oct 2014 06:25:33 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.6.233 with SMTP id e9mr43463222wja.20.1413897932922; Tue, 21 Oct 2014 06:25:32 -0700 (PDT) Received: by 10.180.83.67 with HTTP; Tue, 21 Oct 2014 06:25:32 -0700 (PDT) In-Reply-To: <544618E5.90101@unicore.co.ua> References: <544618E5.90101@unicore.co.ua> Date: Tue, 21 Oct 2014 13:25:00 -0000 Message-ID: From: Edgar Grimberg To: 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/msg00033.txt.bz2 > > Any ideas how to make a jump to start an app? May be some sample code > showing how to do it in eCos? May be someone has done it already? // Make a function pointer and assigned it to the address you want to jump to. void (*startApp1)(void) = 0x08002000 ; // Disable the interrupts. cyg_interrupt_disable(); //Call the function. startApp1(); -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss