AN4547 Application note Migrating from STM32F407xx/417xx to STM32F427xx/429xx/437xx/439xx Introduction Designers of STM32 microcontroller applications must have the possibility to easily replace one microcontroller with another from the same product series. Reasons for migrating an application to a different microcontroller can be for example; to fulfill higher product requirements, extra demands on memory size, or an increased number of I/Os. to meet cost reduction constraints that require to switch to smaller components and shrink the PCB area. This application note is written as a help with the analysis of the steps involved when migrating from an existing STM32F407xx/417xx-based design to the STM32F427xx/429xx/437xx/439xx one withing the high performance STM32F4 series. This application note gathers the most important information and presents the main considerations to address. Table 1 provides the list of products to which this document applies. This application note is not exhaustive and comes as a complement of other product specifications available on www.st.com/stm32: Datasheets – DS8597 and DS8626 for STM32F407xx/417xx microcontrollers respectively, – DS9405 and DS9484 for STM32F427xx/429xx/437xx/439xx microcontrollers respectively. Errata sheets – STM32F405xx/407xx and STM32F415xx/417xx device limitations, – STM32F427xx/437xx and STM32F429xx/439xx line limitations. Reference manual – RM0090 - STM32F405xx/07xx, STM32F415xx/17xx, STM32F42xxx and STM32F43xxx advanced ARM®-based 32-bit MCUs Programming manual – PM0214 - STM32F3 and STM32F4 Series Cortex®-M4 programming manual Application note – AN4488 - Getting started with STM32F4xxxx MCU hardware development, – AN2606 - STM32 microcontroller system memory boot mode. June 2014 DocID026596 Rev 1 1/6 www.st.com AN4547 Table 1. Applicable products Reference product 2/6 Part numbers STM32F407xx STM32F407IE, STM32F407IG, STM32F407VE, STM32F407VG, STM32F407ZE, STM32F407ZG STM32F417xx STM32F417IE, STM32F417IG, STM32F417VE, STM32F417VG, STM32F417ZE, STM32F417ZG, STM32F427AG, STM32F427AI STM32F427xx STM32F427IG, STM32F427II, STM32F427VG, STM32F427VI, STM32F427ZG, STM32F427ZI STM32F429xx STM32F429AG, STM32F429AI, STM32F429BE, STM32F429BG, STM32F429BI, STM32F429GDIE, STM32F429IDIE, STM32F429IE, STM32F429IG, STM32F429II, STM32F429JG, STM32F429JI, STM32F429NE, STM32F429NG, STM32F429NI, STM32F429VE, STM32F429VG, STM32F429VI, STM32F429ZE, STM32F429ZG, STM32F429ZI STM32F437xx STM32F437AI, STM32F437IG, STM32F437II, STM32F437VG, STM32F437VI, STM32F437ZG, STM32F437ZI STM32F439xx STM32F439AI, STM32F439BG, STM32F439BI, STM32F439GDIE, STM32F439IDIE, STM32F439IG, STM32F439II, STM32F439JG, STM32F439JI, STM32F439NG, STM32F439NI, STM32F439VG, STM32F439VI, STM32F439ZG, STM32F439ZI DocID026596 Rev 1 AN4547 1 Product feature comparison Product feature comparison Table 2 summarizes the main differences between the STM32F407xx/417xx and STM32F427xx/429xx/437xx/439xx product features, and the impact on the hardware and on the firmware of the application design when migrating from STM32F407xx/417xx to STM32F427xx/429xx/437xx/439xx microcontrollers. Table 2. Main product feature differences for safe migration Feature STM32F407xx/417xx STM32F427xx/429xx/437xx/439xx Power supply 1.8 V to 3.6 V on the whole temperature range, reduced to 1.7 V in the 0°C to 70°C range 1.7 V to 3.6 V on the whole temperature range Maximum frequency 168 MHz 180 MHz with overdrive mode enabled Voltage Scaling Output (VOS) Scale1 Scale 2 Can be changed on the fly Scale1 Scale 2 Scale 3 Can be modified only when PLL is off Flash size Up to 1 Mbyte Up to 2 Mbyte, split on two banks with two controllers. Supports dual bank (RWW) RAM size and other memories 128 Kbyte of SRAM including 64 Kbyte of CCM, 4 Kbyte of backup RAM, 20 x 32-bit backup registers 256 Kbyte of SRAM including 64 Kbyte of CCM, 4 Kbyte of backup RAM, 20 x 32-bit backup registers FSMC (16-bits) FMC: extended with SDRAM controller and supporting 32-bit mode Crypto/Hash Extended with GCM and SHA2 support Three I2C Three I2C enhanced with digital filters to be programmed and enabled/disabled by firmware Enhanced peripherals Up to three general purpose timers All general purpose timers running running at maximum system at maximum system frequency frequency Other peripherals New peripherals Bootloader version Up to three SPI (with two I2S in full duplex) Up to six SPI (with two I2S in full duplex) Up to six U(S)ARTs Up to eight U(S)ARTs - One Serial Audio Interface (SAI) with dedicated PLL - LCD-TFT controller - Chrom-ART accelerator Refer to application note AN2606 DocID026596 Rev 1 3/6 6 Product feature comparison AN4547 Table 2. Main product feature differences for safe migration (continued) Feature Pin list and packages Modified behavior or fixed limitations STM32F407xx/417xx STM32F427xx/429xx/437xx/439xx Refer to STM32F407xx/417xx datasheets, STM32F427xx/429xx/437xx/439xx datasheets and AN4488 Incorrect BOR option byte when consecutively programming BOR option byte Resolved Configuration of PH10 and PI10 as external interrupts is erroneous Resolved DMA2 data corruption when managing AHB and APB peripherals in a concurrent way Resolved Slow down of APB clock during a DMA transfer Resolved Battery charge monitoring lower than 2.4 V Resolved but with changed behavior: the temperature sensor is connected to ADC_IN18 input, same as VBAT Internal noise impacting the ADC accuracy Resolved with new behavior to enhance the accuracy I2S2 in full-duplex mode may not work properly when SCK and WS Recommendation added in the signals are mapped on PI1 and PI0 datasheet. respectively SDIO clock divider BYPASS mode may not work properly 4/6 DocID026596 Rev 1 Resolved AN4547 2 Revision history Revision history Table 3. Document revision history Date Revision 25-Jun-2014 1 Changes Initial release. DocID026596 Rev 1 5/6 6 AN4547 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B) AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT PURCHASER’S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE, UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR “AUTOMOTIVE, AUTOMOTIVE SAFETY OR MEDICAL” INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS. PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. © 2014 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 6/6 DocID026596 Rev 1