From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19008 invoked by alias); 18 Nov 2006 15:07:07 -0000 Received: (qmail 18865 invoked by uid 22791); 18 Nov 2006 15:07:06 -0000 X-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_50 X-Spam-Check-By: sourceware.org Received: from chlothar.bnv-bamberg.de (HELO chlothar.bnv-bamberg.de) (217.146.130.193) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 18 Nov 2006 15:06:55 +0000 Received: from [84.148.232.149] (helo=noname) by mail.bnv-bamberg.de with esmtpsa id 1GlRmJ-00002p-AA ; Sat, 18 Nov 2006 16:06:48 +0100 From: Rudi Pfister To: ecos-devel@ecos.sourceware.org Subject: Flashdriver for TC1796 Date: Sat, 18 Nov 2006 15:07:00 -0000 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200611181606.45988.Rudi.Pfister@informatik.stud.uni-erlangen.de> Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2006-11/txt/msg00004.txt.bz2 Hello, I'm porting Redboot to the Tricore-architecture. In special to the TC1796-variant on a Infineon-Triboard. The TC1796 has onchip 2 MByte of Flashmemory devided into several blocks with sizes from 16 KByte up to 512 KByte. The TC1796 has about 192 KByte RAM in total. The Triboard has 1 MByte SRAM used by the TC1796 as external Memory. I want to write a driver for the flash memory of the TC1796. If the Redboot wants to change data in the flash memory it stores the block to which the data should be written to a buffer in RAM. Then it changes the data in the buffer and writes it back to flash memory. The size of the buffer has to be the same size as the largest block in the flash memory. Here is my problem. The size of the buffer has to be 512 KByte, but the TC1796 has less than 512 KByte in total, so there is no space to create the Buffer an a TC1796. In my case I could use the RAM of the Triboard, which is large enough. But then the the driver for the flash memory of the TC1796-variant would depend on the properites of the Triboard-platform. I could also use only a part of the flash of the TC1796. In special the blocks with the size of 16 KBytes. In total I would then be able to use 128 Kbytes of Flashmemory, which would be enough for me. But in my opinion both ways are very unsatisfying. Is there a better way to deal with this problem ? And what is the best resolution in respect to the eCos-design-philosophy ? Thanks ! Rudi