From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 874 invoked by alias); 2 Jan 2009 11:19:12 -0000 Received: (qmail 866 invoked by uid 22791); 2 Jan 2009 11:19:11 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BARRACUDA_BRBL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from vicky.2020media.com (HELO smtp.2020smtp.net) (212.124.192.213) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Jan 2009 11:18:23 +0000 Received: from [212.124.199.38] (helo=[192.168.0.2]) by smtp.2020smtp.net with esmtp (Exim 4.63) (envelope-from ) id 1LIi2R-0006ff-0z for ecos-devel@sourceware.org; Fri, 02 Jan 2009 11:17:59 +0000 Message-ID: <495DF7FA.9090904@zynaptic.com> Date: Fri, 02 Jan 2009 11:19:00 -0000 From: Chris Holgate User-Agent: Thunderbird 2.0.0.18 (X11/20081112) MIME-Version: 1.0 To: ecos-devel@sourceware.org Subject: Problem with STM32 flash driver on Rev-Z silicon. Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-01/txt/msg00001.txt.bz2 Hi folks, I have encountered a problem with the STM32 flash driver on revision Z devices. According to the errata document, the debug registers cannot be accessed from the processor on rev-Z devices This means that it it not possible to get the device type by reading CYGHWR_HAL_STM32_MCU_ID, which causes the flash driver to use invalid parameters. Maybe it would be better to rely on the HAL configuration for this information. I also noticed that the flash and RAM size definitions stored in the CYGHWR_HAL_STM32_DEV_SIG register are the wrong way round for my device (ie, the _FSIZE macro gets the RAM size and the _RSIZE macro gets the flash size). I don't know if this is an eCos bug or a rev-Z bug, since the documentation for this register seems a bit vague. Chris.