From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27398 invoked by alias); 13 Dec 2013 08:29:18 -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 27383 invoked by uid 89); 13 Dec 2013 08:29:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: sam.nabble.com Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 13 Dec 2013 08:29:17 +0000 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VrO7X-0002Cc-Kh for ecos-discuss@ecos.sourceware.org; Fri, 13 Dec 2013 00:29:15 -0800 Date: Fri, 13 Dec 2013 08:29:00 -0000 From: CKM367 To: ecos-discuss@ecos.sourceware.org Message-ID: <1386923355115-254547.post@n7.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [ECOS] Filling in cyg_flash_devtab[] array X-SW-Source: 2013-12/txt/msg00004.txt.bz2 Hi everyone! I suppose my question is easy for those who know eCos. I tried to write driver for flash device. Following the manual, I wrote / DEVIO_TABLE( p8p_handlers, p8p_write, p8p_read, p8p_select, p8p_get_config, p8p_set_config, p8p_close ); DEVTAB_ENTRY( p8p_label, p8p_name, 0, //does not depend upon a lower level interface &p8p_handlers, p8p_init, p8p_lookup, p8p_priv );/ in p8p.c and created such a flash_p8p.cdl: /cdl_package CYGPKG_DEVS_FLASH_P8P { display "P8P FLASHlike memory support" parent CYGPKG_IO_FLASH description "FLASHlike memory device support for P8P" implements CYGHWR_IO_FLASH_DEVICE hardware compile p8p.c } / I added my package in ecos.db and built it alright. However, RedBoot tells me: *FLASH: driver init failed: Invalid FLASH address*. I see &(cyg_flashdevtab[0]) == &cyg_flashdevtab_end, so, cyg_flashdevtab[] seems empy, right? Why may that be? TIA -- View this message in context: http://sourceware-org.1504.n7.nabble.com/Filling-in-cyg-flash-devtab-array-tp254547.html Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss