From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27683 invoked by alias); 19 Dec 2013 11:28:49 -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 27674 invoked by uid 89); 19 Dec 2013 11:28:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 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; Thu, 19 Dec 2013 11:28:47 +0000 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VtbmX-0000c3-7M for ecos-discuss@ecos.sourceware.org; Thu, 19 Dec 2013 03:28:45 -0800 Date: Thu, 19 Dec 2013 11:28:00 -0000 From: CKM367 To: ecos-discuss@ecos.sourceware.org Message-ID: <1387452525022-255235.post@n7.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [ECOS] Parameters of SYG_FLASH_DRIVER macro X-SW-Source: 2013-12/txt/msg00007.txt.bz2 Could anybody specify the parameters of /SYG_FLASH_DRIVER/ macro? I have got a 128MB flashlike device with 130 blocks of 0x10000 bytes size and 4 ones of 0x4000 bytes. So, I made such an array: static const cyg_flash_block_info_t p8p_block_info[2] = { {(size_t)0x4000, (cyg_uint32)4 }, {(size_t)0x10000, (cyg_uint32)130 } }; and then wrote the macro: CYG_FLASH_DRIVER( p8p_drv_handle, &p8p_func_handle, 0, /* flags */ CYGMEM_REGION_flash, /* flash first address */ CYGMEM_REGION_flash + P8P_REGION_SIZE - 1, /* flash last address */ 2, /* number of items in p8p_block_info*/ p8p_block_info, &p8p_priv /* pointer to priv handle */ ); As a result, I got the message "Sorry, FLASH config exceeds available space in FIS directory" from load_flash_config function because fisdir_size == 0x1000. That is the value from p8p_block_info array. I suspect I use CYG_FLASH_DRIVER macro with wrong parameters. Can you see the error(s) ? -- View this message in context: http://sourceware-org.1504.n7.nabble.com/Parameters-of-SYG-FLASH-DRIVER-macro-tp255235.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