From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23352 invoked by alias); 2 Jan 2009 16:16:27 -0000 Received: (qmail 23342 invoked by uid 22791); 2 Jan 2009 16:16:26 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from alicia.2020media.com (HELO alicia.2020mail.com) (212.124.192.215) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Jan 2009 16:15:28 +0000 Received: from [212.124.199.38] (helo=[192.168.0.2]) by alicia.2020mail.com with esmtp (Exim 4.30; FreeBSD) id 1LImfy-000859-Nx; Fri, 02 Jan 2009 16:15:06 +0000 Message-ID: <495E3D98.6070808@zynaptic.com> Date: Fri, 02 Jan 2009 16:16:00 -0000 From: Chris Holgate User-Agent: Thunderbird 2.0.0.18 (X11/20081112) MIME-Version: 1.0 To: Simon Kallweit CC: ecos-devel@sourceware.org Subject: Re: Problem with STM32 flash driver on Rev-Z silicon. References: <495DF7FA.9090904@zynaptic.com> <495DFA9F.1050002@intefo.ch> In-Reply-To: <495DFA9F.1050002@intefo.ch> 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/msg00003.txt.bz2 Simon Kallweit wrote: > Chris Holgate schrieb: >> 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. >> > > This bug has already been fixed, it should be in the CVS. Great. I've just updated from CVS and re-generated my HAL fixes patch. My FSF copyright assignment is now in place, so any of these changes can now be included in the main tree. The patch file is at: http://www.zynaptic.com/ecos/patches/stm32_fixes_02_01_09.patch.gz The patch makes the following changes: * Adds the .sram memory section to the linker script fragments for the STM3210E eval board. This is required by the STM32 SPI driver so that bounce buffers can be placed in on-chip SRAM. * Adds SPI and DMA register maps to the STM32 var_io.h for use by the STM32 SPI driver. * Adds USB register map to the STM32 var_io.h for use by the STM32 USB driver. * Adds GPIO alternate function configuration registers to the STM32 var_io.h so that external interrupts can be set up. * Fixes STM32 var_io.h register layouts for CYGHWR_HAL_STM32_DEV_SIG and CYGHWR_HAL_STM32_RCC_APB1ENR * Removed EXTI16, EXTI17 and EXTI18 interrupt definitions from STM32 var_intr.h since these alias the PVD, RTC_ALARM and USB_WAKEUP interrupts respectively. * Fixed interrupt mask/unmask in STM32 var_intr.h so that external interrupts work. * Added interrupt acknowledge to STM32 var_intr.h for external interrupts. An updated SPI driver for the STM32 will follow imminently. USB driver in progress... Chris.