VA108x0 SPI memory boot options application note

Similar documents
< W3150A+ / W5100 Application Note for SPI >

SPI peripheral use case examples

power supply Tamper Detect function will detect possible data modification from outside magnetic

VORAGO TECHNOLOGIES. Rad-hard CMOS Based Technology for Space Ross Bannatyne (512)

16-Megabit 2.3V or 2.7V Minimum SPI Serial Flash Memory

32-Megabit 2.7-volt Minimum SPI Serial Flash Memory AT25DF321A Preliminary

AT45DB041E. 4-Mbit DataFlash (with Extra 128-Kbits), 1.65V Minimum SPI Serial Flash Memory. Features

AT25PE40. 4-Mbit DataFlash-L Page Erase Serial Flash Memory ADVANCE DATASHEET. Features

VORAGO TECHNOLOGIES. Solutions for Selective Radiation-Hardened Components in CubeSats Ross Bannatyne, VORAGO Technologies

Part 1 Using Serial EEPROMs

64-Kbit (8K 8) SPI nvsram

AT90SO36 Summary Datasheet

32-Mbit 2.7V Minimum Serial Peripheral Interface Serial Flash Memory

AT45DB321E. Features. 32-Mbit DataFlash (with Extra 1-Mbits), 2.3V Minimum SPI Serial Flash Memory

64-Kbit (8 K 8) SPI nvsram with Real Time Clock

AT90SO72 Summary Datasheet

Very high operating frequencies 100MHz for RapidS 85MHz for SPI Clock-to-output time (t V ) of 5ns maximum

AT45DQ321. Features. 32-Mbit DataFlash (with Extra 1-Mbits), 2.3V Minimum SPI Serial Flash Memory with Dual-I/O and Quad-I/O Support

1-Mbit (128K 8) Serial (SPI) nvsram with Real-Time Clock

FM25CL64 64Kb FRAM Serial 3V Memory

VORAGO VA108x0 I 2 C programming application note

Mbit / 4 Mbit bit Single Operating Voltage Serial Flash Memory With 104 MHz Dual- or Quad-Output SPI Bus Interface

S25FL204K. 4-Mbit 3.0V Serial Flash Memory with Uniform 4 kb Sectors. Data Sheet

S25FL Family (Serial Peripheral Interface)

8 Mbit / 16 Mbit SPI Serial Flash SST25VF080 / SST25VF016

1-Mbit (128K 8) Quad SPI nvsram

512 Kbit / 1 Mbit / 2 Mbit / 4 Mbit SPI Serial Flash SST25VF512 / SST25VF010 / SST25VF020 / SST25VF040

AT45DB021E. 2-Mbit DataFlash (with Extra 64-Kbits), 1.65V Minimum SPI Serial Flash Memory PRELIMINARY DATASHEET. Features

Excelon -Ultra 4-Mbit (512K 8) Quad SPI F-RAM

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

Arduino Uno R3 INTRODUCTION

PRELIMINARY DATASHEET

64-megabit 2.7V Dual-interface DataFlash

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

8 Mbit bit Single Operating Voltage Serial Flash Memory With 104 MHz Dual- or Quad-Output SPI Bus Interface

1.8V Uniform Sector GD25LQ80B/40B DATASHEET

2-megabit 2.7-volt Minimum DataFlash AT45DB021D

512 Mbit, 1.8 V Serial Peripheral Interface with Multi-I/O Flash

SPI (Serial & Peripheral Interface)

Pm25LD256C FEATURES GENERAL DESCRIPTION

Clock Synchronous Control Module for Serial Flash Memory Access Firmware Integration Technology

1.8V Uniform Sector Dual and Quad Serial Flash GD25LQ64C DATASHEET. Rev.2.8

S25FL1-K. Data Sheet. S25FL1-K Cover Sheet

Micron M25P40 Serial Flash Embedded Memory

address lines and a parallel interface, the Atmel DataFlash uses an Atmel RapidS serial interface to sequentially access its data. The simple sequenti

An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus


Generic Serial Flash Interface Intel FPGA IP Core User Guide

IS25WD020/ Mbit / 4 Mbit Single Operating Voltage Serial Flash Memory With 80 MHz Dual-Output SPI Bus Interface FEATURES GENERAL DESCRIPTION

Getting Started with ESPI Interface Using the Z8 Encore! XP F1680

S25FL132K and S25FL164K

VORAGO TECHNOLOGIES. Radiation-Hardened Solutions for CubeSats Ross Bannatyne, VORAGO Technologies

W25X05CL/10CL/20CL 2.5 / 3 / 3.3 V 512K / 1M / 2M-BIT SERIAL FLASH MEMORY WITH 4KB SECTORS AND DUAL I/O SPI

App Note Application Note: Addressing Multiple FPAAs Using a SPI Interface

M45PE20. 2-Mbit, page-erasable serial flash memory with byte alterability and a 75 MHz SPI bus interface. Features

Micron M25P16 Serial Flash Embedded Memory

1.8V Uniform Sector Dual and Quad Serial Flash GD25LE128D DATASHEET

512 Mbit (64 Mbyte), 3.0 V SPI Flash Memory

AT90SDC10X Summary Datasheet

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

512-Kilobit 2.7-volt Minimum SPI Serial Flash Memory AT25BCM512B. Preliminary

USB-to-I2C. Professional Hardware User s Manual.

1.8V Uniform Sector Dual and Quad Serial Flash GD25LQ32C DATASHEET

GD25LQ80 DATASHEET

1-Mbit (128K 8) Quad SPI nvsram with Real Time Clock

3.3V Uniform Sector Dual and Quad Serial Flash GD25Q32C DATASHEET. Rev.3.6

or between microcontrollers)

ISSI IS25C02 IS25C04 2K-BIT/4K-BIT SPI SERIAL ELECTRICALLY ERASABLE PROM FEATURES DESCRIPTION. Advanced Information January 2005

EN25S10A 1 Megabit 1.8V Serial Flash Memory with 4Kbyte Uniform Sector

Memory Expansion. Lecture Embedded Systems

16-megabit 2.5V or 2.7V DataFlash

FM25L16-DG. 16Kb FRAM Serial 3V Memory. Features. Pin Configuration

1.8V Uniform Sector Dual and Quad SPI Flash

1.8V Uniform Sector Dual and Quad Serial Flash GD25LQ16 DATASHEET

VA Table of Contents. 1 Functional Description Block Diagram Pin Descriptions AC Electrical Characteristics...

1.3inch OLED User Manual

Interconnects, Memory, GPIO

Uniform Sector Dual and Quad Serial Flash GD25Q64B DATASHEET

HIGH TEMPERATURE 8MB SPI SERIAL FLASH MEMORY MODULE

I2C and SPI Foundation

VORAGO VA108x0 Bootloader application note

Hello, and welcome to this presentation of the STM32L4 System Configuration Controller.

AN2737 Application note Basic in-application programming example using the STM8 I 2 C and SPI peripherals Introduction

Micron M25P80 Serial Flash Embedded Memory

W25X40CL 2.5/3/3.3 V 4M-BIT SERIAL FLASH MEMORY WITH 4KB SECTORS AND DUAL I/O SPI. Publication Release Date: October 15, Revision E

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5096 P-DIP-8-1

Uniform Sector Dual and Quad Serial Flash GD25Q80B DATASHEET

Micron M25PE80 Serial Flash Memory

1.8V Uniform Sector Dual and Quad Serial Flash GD25LQ256C DATASHEET

X K x 8 Bit 64K. 5MHz SPI Serial E 2 PROM with Block Lock TM Protection

128 Mbit (16 Mbyte)/256 Mbit (32 Mbyte) 3.0V SPI Flash Memory

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

USB-to-I2C. Ultra Hardware User s Manual.

ANV32AA1W. Anvo-Systems Dresden

XM25QU64A 64 Megabit 1.8V Serial Flash Memory with 4Kbyte Uniform Sector

GT25C64 SPI. 64K bits. Serial EEPROM

512 Mbit, 1.8 V Serial Peripheral Interface with Multi-I/O Flash

Understanding SPI with Precision Data Converters

Single 2.5V - 3.6V or 2.7V - 3.6V supply RapidS serial interface: 66MHz maximum clock frequency. SPI compatible modes 0 and 3

128-Mbit (16 Mbyte) 3.0 V SPI Flash Memory

Transcription:

AN1205 VA108x0 SPI memory boot options application note Dec 21, 2016 Version 1.0 VA10800/VA10820 Abstract The VA108x0 family of MCUs boot from an external SPI memory then execute code from internal SRAM. This application note describes the programming software and hardware connections on four SPI memories proven with the VA108x0. This provides a platform for developing other memory options in the future. Table of contents 1 Boot sequence and options for the SPI memory... 2 2 Programming algorithm support... 3 3 Hardware considerations... 5 4 Memory devices already validated... 6 5 Conclusions... 9 6 Other Resources... 10

1 Boot sequence and options for the SPI memory The VA108x0 family of microcontrollers boot from an external SPI memory device. The power-on-reset boot sequence is shown in Figure 1. No scale is provided due to variable elapsed time as determined by input clock frequency and EF_CONFIG register contents. The yellow balloons show the order of the steps. Figure 1 Timeline for POR sequence to boot MCU For pin RESET and software RESET, the sequence begins at step 3, the read of the EF_CONFIG register. Step 5 reads 128 bytes of data at a time. After each 128 bytes, a new READ command and address is supplied to the memory device. 1.1 Boot sequence options Options for the boot sequence are set by EF_CONFIG field which is read from the on-chip efuse memory prior to the SPI memory being loaded are shown in Table 1. 2

Parameter Options Default Boot SPI clock rate bus clock divided by 2, 6, 12 or 52 6 Boot SPI memory 4k, 8k,16k, 32k, 64k, or 128 kbytes 128 kbytes size Redundant boot Reads every 128 byte block twice and Enabled compares the results. Repeats until they match. Boot delay 0, 1, 3, 10, 30, 100, 300, 500 msec 30 msec ROM read instruction code 8 bits available 0x03 (READ instruction for most serial memory devices) ROM address mode 16, 24 or 32 bits, 128 kbyte memories require 24-bit addresses 24-bit Table 1 - Boot option summary Programming the efuse to set these options is described in AN1204. 2 Programming algorithm support ARM â / Keil â define a specific format for programming algorithms so they may be used with their MDK IDE. The Keil tool downloads the programming algorithm to RAM on the MCU via the JTAG port then sends various commands such as erase, program and verify to the device. VORAGO has created and validated algorithms for 4 devices. The C files for these devices is included in this application note and can be used as a starting point for other IDEs or production programming tools. Some restrictions are placed on the code so that it can run from RAM regardless of the position it is placed. No interrupts are allowed and the code must be position independent. For each memory device, software is provided in flash_prg.c that performs functions as summarized in Table 2. 3

Subroutine Init: ProgramPage: Description This enables MCU peripheral clocks and configures SPIC (also referenced as SPI->BANK[2]) for operation. If the device has a block protect feature, it is disabled. The device is set to ignore the WP# pin. For most devices this consists of: 1) Write Enable Latch (WEL) command and 2) a Write Status Register (WRSR) command to clear the block protect bits (BP1 and BP0) The SPI is used to provide the memory device with a series of commands and a string of data to be programmed. Memory is programmed using a block transfer. Prior to each block of data being sent to the EEPROM, the following are sent to the memory: - Write Enable Latch (WEL) command - Write (WRITE) command - a 24-bit starting address. EraseChip: The SPI is used to provide the memory device with a series of commands. For flash devices, the chip erase (CE) command is used. For EEPROM, FRAM and MRAM, a value of 0x00 is written to each address. Most flash devices have an erased value of 0xFF. Verify: The SPI is used to read the memory device. The IDE provides the program data to be verified. If an error is detected, the failing address is returned to the IDE. UnInit: If the device has a block protect feature, it is enabled. The write protect pin sensitivity is enable. The SPIC block is disabled. Note: The Sector Erase and the Block Erase commands are not supported. Table 2 - Summary of subroutines in "flash_prg.c" Parameters specific for each memory chip are defined in a file called flash_dev.c. The software is provided AS IS and may be modified by anyone. VORAGO is not liable for any damage that altered software may impose on a system. Notes: 1. The evaluation version of the Keil tool, MDK-Lite, will not build the FLM files. The licensed version of the IDE is required. 4

2. If the software is customized, limit the page size to 256 bytes to avoid RAM overflow problems. 3 Hardware considerations The SPI interface has been proven to be a very robust communication link and is used throughout the electronics industry for chip to chip communications. While the interface is straight forward, there are several items to consider for robust operation. First, keep the trace length as short as possible and use a ground trace to flank the signals as shown in Figure 2. This keeps the loop area very short and will isolate the high speed digital signals from the rest of the board. Figure 2 - Recommended trace routing from MCU to Memory device Second, protect the device during power-up and power-down by using a pull-up resistor on chip select lines. While the processor is in reset, GPIO will be high impedance inputs and may float either high or low. The resistors will ensure no errant writes are made to the memory. Section 4 has device specific information. A hardware section is provided for each that shows the signal interconnect between the MCU and the Memory. 5

4 Memory devices already validated 4.1 STM EEPROM The M95M01 device is available in several temperature ranges with identical hardware connections and serial protocols. The high temperature version is the M95M01-A145. See st.com for the latest datasheet. This device is used on the VORAGO evaluation board. 4.1.1 Hardware connections Chip to Chip connections for M95M01 Master VA108xx Slave M95M01 Recommended board level connection Signal function SPI-MOSI ROM_SO D SPI-MISO ROM_SI Q SPI-SCK ROM_SCK C SPI-SS or Chip Select ROM_CSn S# pull-up Write protect Port pin W# pull-down Memory HOLD - Suspends serial operation No connect HOLD# pull-up Note: Signals with # are active low. 4.1.2 Programming software The project for this device can be found in AN1205_SW.7z file in the st_eeprom folder. 4.2 TT Semiconductor High Temperature Flash TT Semiconductor offers a high temperature SPI flash device (TTZ2564) rated for 200 C. Contact TT Semiconductor (http://www.ttsemiconductor.com/home.asp?uri=1000) for more information on this device. 6

4.2.1 Hardware connections Chip to Chip connections for TTZ2564 Master VA108xx Slave TTZ2564 Recommended board level connection Signal function SPI-MOSI ROM_SO SI SPI-MISO ROM_SI SO SPI-SCK ROM_SCK SCK SPI-SS or Chip Select ROM_CSn CS# pull-up Memory Write protect Port pin WP# pull-down Memory HOLD - Suspends serial operation No connect HOLD# pull-up Note: Signals with # are active low. Note: This device has a very high speed clock input buffer and is prone to double clocking if the slew rate on the clock is not very fast. It is advised to adhere to the chip specification and keep the rise and fall time of the clock below 5 nsec. 4.2.2 Programming software The erase chip function sends two commands to the SPI flash: - Write enable latch (WEL) - Chip Erase (CE) The Write-In-Progress (WIP) bit in the status register is polled until the memory device indicates a successful erase has completed. Before programming the flash, it must be erased. The project for this device can be found in AN1205_SW.7z file in the tt_flash folder. 7

4.3 Everspin MRAM MRAM has storage characteristics that makes data retention immune to many forms of radiation. The data sheet for this device can be found at: https://www.everspin.com. 4.3.1 Hardware connections Chip to Chip connections for MR25H40VDF Master VA108xx Slave MR25H40VDF Recommended board level connection Signal function SPI-MOSI ROM_SO SI SPI-MISO ROM_SI SO SPI-SCK ROM_SCK SCK SPI-SS or Chip Select ROM_CSn CS# pull-up Memory HOLD - Suspends serial operation No connect HOLD# pull-up Write Protect Optional Port Pin WP# Note: Signals with # are active low. pull-up if no MCU connection, pull-down if tied to MCU port pin 4.3.2 Programming software The project for this device can be found in AN1205_SW.7z file in the everspin_mram folder. 4.4 Cypress FRAM Cypress will be offering a 2Mb radiation hardened FRAM device (CYRS15x102) in 2017. The hardware connection and SPI protocol will be like the CY14E101 which has been proven out with the VA10820 device. 8

4.4.1 Hardware connections Chip to Chip connections for CY14C101Q Function Master VA108xx Slave CY14C101Q SPI-MOSI ROM_SO SI SPI-MISO ROM_SI SO SPI-SCK ROM_SCK SCK Recommended board level connection SPI-SS or Chip Select ROM_CSn CS# pull-up Memory Write protect Port pin WP# pull-down Memory HOLD - Suspends serial operation No connect HOLD# pull-up Hardware Store Busy No connect HSB# AutoStore Cap No connect VCAP Note: Signals with # are active low. capacitor or Open circuit 4.4.2 Programming software Even though FRAM does not require an erase operation before programming, it is sometimes required to set all locations of a memory device to a known condition. This can allow checksums to be used over the entire memory space. The project for this device can be found in AN1205_SW.7z file in the cypress_fram folder. 5 Conclusions Four suitable companion SPI memory devices have been proven to operate with the VA108xx family of devices. This application note along with the associated software provides all the information necessary to program, erase and verify those four memory devices. 9

6 Other Resources VORAGO VA108x0 programmers guide: http://www.voragotech.com/sites/default/files/va10800_va10820_pg_july2016revision 1.16%5B4%5D.pdf VORAGO MCU products: http://www.voragotech.com/vorago-products VORAGO Application notes: http://www.voragotech.com/resources VORAGO VA108xx REB1board user guide: Part of Board support package http://www.voragotech.com/products/reb1 ARM support answering question on how to modify a flash algorithm: http://www.keil.com/support/docs/3656.htm 10