From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13137 invoked by alias); 1 Jul 2011 12:22:45 -0000 Received: (qmail 13125 invoked by uid 22791); 1 Jul 2011 12:22:44 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-gx0-f177.google.com (HELO mail-gx0-f177.google.com) (209.85.161.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Jul 2011 12:22:30 +0000 Received: by gxk2 with SMTP id 2so1522118gxk.36 for ; Fri, 01 Jul 2011 05:22:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.157.67 with SMTP id n43mr3912323yhk.95.1309522949561; Fri, 01 Jul 2011 05:22:29 -0700 (PDT) Received: by 10.146.169.5 with HTTP; Fri, 1 Jul 2011 05:22:29 -0700 (PDT) Date: Fri, 01 Jul 2011 12:22:00 -0000 Message-ID: From: Elad Yosef To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 Subject: [ECOS] Flash Driver and Cache in MIPS32 X-SW-Source: 2011-07/txt/msg00001.txt.bz2 Hi, My RedBoot text is located in cached segment (called Kseg0) My RedBoot data+bss are located in un-cached segment (called Kseg1) (Due to the RAM limitations I can't refer my RAM as cached) My flash driver's code is located in the RAM. When I try to access my flash driver for format/program. I need to manipulate the flash HW API and while doing so the flash is an unavailable for reading!!! (Need to do write enable and send other commands to the flash) It is HW SPI core that enables me to refer the flash as memory mapped for reading actions. I have a problem to format my driver. I get an exception during the format command. Since my exception base is mapped to a flash address my RedBoot crash (infinite exceptions loop) from obvious reason - the flash is unavailable for reading!!! I linked my RedBoot data+bss into cached segment (which I can't normally use) And my flash driver works perfectly. Is there a methodology to to jump between cached and un-cached code execution? There are macro's inside I/O package for such cases but I'm sure they fit my target. Thanks Elad -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss