TN LPC1800, LPC4300, MxMEMMAP, memory map. Document information

Similar documents
R_ Driving LPC1500 with EPSON Crystals. Rev October Document information. Keywords Abstract

TED-Kit 2, Release Notes

UM DALI getting started guide. Document information

AN Maximum RF Input Power BGU6101. Document information. Keywords Abstract

AN Energy Harvesting with the NTAG I²C and NTAG I²C plus. Application note COMPANY PUBLIC. Rev February Document information

AN NHS3xxx Temperature sensor calibration. Document information

UM DALI getting started guide. Document information

AN High-performance PCB antennas for ZigBee networks. Document information. Keywords

AN MIFARE Plus Card Coil Design. Application note COMPANY PUBLIC. Rev April Document information

UM OM29263ADK Quick start guide antenna kit COMPANY PUBLIC. Document information

UM Slim proximity touch sensor demo board OM Document information

AN Ohm FM LNA for embedded Antenna in Portable applications with BGU7003W. Document information. Keywords Abstract

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

AN PR533 USB stick - Evaluation board. Application note COMPANY PUBLIC. Rev May Document information

ES_LPC1114. Errata sheet LPC1114. Document information

PTN5100 PCB layout guidelines

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

AN NTAG21xF, Field detection and sleep mode feature. Rev July Application note COMPANY PUBLIC. Document information

AN11994 QN908x BLE Antenna Design Guide

AN Replacing HMC625 by NXP BGA7204. Document information

OM29110 NFC's SBC Interface Boards User Manual. Rev May

UM10950 Start-up Guide for FRDM-KW41Z Evaluation Board Bluetooth Paring example with NTAG I²C plus Rev February

UM User manual for di2c demo board. Document information

AN NFC, PN533, demo board. Application note COMPANY PUBLIC. Rev July Document information

AN12232 QN908x ADC Application Note

UM Description of the TDA8029 I2C Demo Board. Document information

PN7120 NFC Controller SBC Kit User Manual

AN UCODE I2C PCB antenna reference designs. Application note COMPANY PUBLIC. Rev October Document information

AN12082 Capacitive Touch Sensor Design

AN PN7150X Frequently Asked Questions. Application note COMPANY PUBLIC. Rev June Document information

UM TEA1721 universal mains white goods flyback SMPS demo board. Document information

AN Thermal considerations BGA3131. Document information. Keywords Abstract

BGU8007/BGU7005 Matching Options for Improved LTE Jammer Immunity

TN ADC design guidelines. Document information

AN BFU725F/N1 2.4 GHz LNA evaluation board. Document information. Keywords. LNA, 2.4GHz, BFU725F/N1 Abstract

PN7150 Raspberry Pi SBC Kit Quick Start Guide

AN12165 QN908x RF Evaluation Test Guide

AN UBA2015/UBA2017 saturating inductor support during ignition. Document information

AN GHz to 2.7 GHz Doherty power amplifier using the BLF7G27LS-150P. Document information

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

PN7120 NFC Controller SBC Kit User Manual

AN Programming the PCA200x family of watch ICs. Document information

AN TEA1892 GreenChip synchronous rectifier controller. Document information

UM GreenChip TEA1995DB1295 synchronous rectifier controller demo board. Document information

VHF variable capacitance diode

AN Low Noise Fast Turn ON-OFF GHz WiFi LNA with BFU730F. Document information

BB Product profile. 2. Pinning information. 3. Ordering information. FM variable capacitance double diode. 1.1 General description

AN BGA GHz 16 db gain CATV amplifier. Document information. Keywords. BGA3021, Evaluation board, CATV, Medium Power.

AN High Ohmic FM LNA for embedded Antenna in Portable applications with BGU6102. Document information. Keywords

AN BGU6009/N2 GNSS LNA evaluation board. Document information. Keywords. BGU6009/N2, GNSS, LNA Abstract

AN Relay replacement by NXP high-power bipolar transistors in LFPAK56. Document information

AN How to design an antenna with DPC. Rev November Application note COMPANY PUBLIC. Document information.

B (bottom) Package type descriptive code. VFBGA176 Package style descriptive code

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Four planar PIN diode array in SOT363 small SMD plastic package.

Two elements in series configuration in a small SMD plastic package Low diode capacitance Low diode forward resistance AEC-Q101 qualified

Planar PIN diode in a SOD523 ultra small plastic SMD package.

BFU550XR ISM 433 MHz LNA design. BFU520, BFU530, BFU550 series, ISM-band, 433MHz 866MHz Abstract

KMA22x; KMA32x handling information

75 MHz, 30 db gain reverse amplifier

BAP Product profile. 2. Pinning information. 3. Ordering information. Silicon PIN diode. 1.1 General description. 1.2 Features and benefits

BGU6101 Low Noise Amplifier for ISM / LTE bands

200 MHz, 35 db gain reverse amplifier. High performance amplifier in a SOT115J package, operating at a voltage supply of 24 V (DC).

Planar PIN diode in a SOD882D leadless ultra small plastic SMD package.

AN SDARS active antenna 1st stage LNA with BFU730F, 2.33 GHz. Document information

SOT Package summary

Planar PIN diode in a SOD523 ultra small SMD plastic package.

AN BLF0910H9LS600

UM User manual for the BGU7008 GPS LNA evaluation board. Document information. Keywords LNA, GPS, BGU7008. Abstract

PESD5V0F1BSF. 1. Product profile. 2. Pinning information. Extremely low capacitance bidirectional ESD protection diode. 1.1 General description

NXPS20H100C. High junction temperature capability Low leakage current

50 ma LED driver in SOT457

PTN General description. 2. Features and benefits. SuperSpeed USB 3.0 redriver

Octal buffer/driver with parity; non-inverting; 3-state

Symbol Parameter Conditions Min Typ Max Unit V F forward voltage I F =10mA V P ZSM. non-repetitive peak reverse power dissipation

SOT1688-1(SC) 1 Package summary

Broadband LDMOS driver transistor. A 5 W LDMOS power transistor for broadcast and industrial applications in the HF to 2500 MHz band.

HEF4001B. 1. General description. 2. Features and benefits. 3. Ordering information. 4. Functional diagram. Quad 2-input NOR gate

Quad 2-input EXCLUSIVE-NOR gate

Ultrafast power diode in a SOD59 (2-lead TO-220AC) plastic package. Discontinuous Current Mode (DCM) Power Factor Correction (PFC)

Hyperfast power diode in a SOD59 (2-lead TO-220AC) plastic package.

D (double) Package type descriptive code. SC-73 Package type industry code. SC-73 Package style descriptive code

SJA1105P/Q/R/S. 1 Features and benefits. 1.1 General features. 1.2 Ethernet switching and AVB features. 1.3 Interface features

Hex non-inverting precision Schmitt-trigger

HVQFN (thermal enhanced very thin quad flatpack; no leads) P (plastic) MO-220 S (surface mount) Issue date Manufacturer package code

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

BAT54W series. 1. Product profile. 2. Pinning information. Schottky barrier diodes. 1.1 General description. 1.2 Features and benefits

Logic controlled high-side power switch

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Quad 2-input NAND buffer (open collector) The 74F38 provides four 2-input NAND functions with open-collector outputs.

Dual 4-bit static shift register

Symbol Parameter Conditions Min Typ Max Unit V F forward voltage I F =10mA

1-of-4 decoder/demultiplexer

NPN power transistor with integrated diode

NX20P3483UK. 1. General description. 2. Features and benefits. USB PD and Type-C high voltage sink/source combo switch with protection

D (double) Package type descriptive code SO8. SO (small outline) Package body material type. P (plastic) IEC package outline code

D (double) Package type descriptive code. TSOP6 Package type industry code. TSOP6 Package style descriptive code

HEF4002B. 1. General description. 2. Features and benefits. 3. Ordering information. 4. Functional diagram. Dual 4-input NOR gate

D (double) Package type descriptive code. SMA; PMOS Package type industry code. SMA; PMOS Package style descriptive code

Transcription:

Rev. 1 30 November 2012 Technical note Document information Info Keywords Abstract Content LPC1800, LPC4300, MxMEMMAP, memory map This technical note describes available boot addresses for the LPC1800 and LPC4300 memory map registers

Revision history Rev Date Description 1 20121130 Initial version. Contact information For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com All information provided in this document is subject to legal disclaimers. NXP B.V. 2012. All rights reserved. Technical note Rev. 1 30 November 2012 2 of 9

1. Introduction The LPC1800 and LPC4300 MCUs both contain one or more registers called MxMEMMAP. These registers can be used to modify the MCU s memory map. They affect the instructions fetched when executing code and the local data read and written to by the instructions. For LPC1800 family: For LPC4300 family: The MxMEMMAP registers all have the same layout: The lower 12 bits are reserved and must be zero. The field consisting of the remaining bits 31:12 contains the high 20 bits of the address that will be shadowed into address 0. A simpler way to think of this is that the MxMEMMAP register contains an address, which must end in 0x000. Up to 256 MB of the information mapped at the specified memory region, will also appear at 0x00000000. This is called shadowing since the information appears both at its original address and at address 0x00000000. Fig 1 contains an example of how this works on the LPC1850 when booting from external flash memory via the External Memory Controller (EMC). All information provided in this document is subject to legal disclaimers. NXP B.V. 2012. All rights reserved. Technical note Rev. 1 30 November 2012 3 of 9

M3MEMMAP = 0x1C00 0000 This chart shows how the boot ROM initializes M3MEMMAP when booting from external flash. By setting M3MEMMAP to 0x1C00 0000, external static memory chip select CS0 is remapped to the shadow area at 0x0000 0000. Despite the shadow area being 256 MB in size, the internal AHB SRAM located starting at 0x2000 0000 will not be shadowed.* *The MEMMAP registers only affect the Instruction (I) and Data (D) buses on the M3/M4 cores, so memory with an address > 0x2000 0000 (on the Cortex System Bus) is not able to be shadowed unless it can be accessed by the System (S) bus. Fig 1. Example of shadowing All information provided in this document is subject to legal disclaimers. NXP B.V. 2012. All rights reserved. Technical note Rev. 1 30 November 2012 4 of 9

1.1 MxMEMMAP FAQ Q: What address should I build my code for? A: The intention in providing the MxMEMMAP registers is to make it possible to build for a fixed address. Always building code for 0x0000 0000 could simplify booting from different memories since the code will be the same regardless of the address of the memory. Depending on your tool, it may be difficult to build for 0x0000 0000 because this could break the flash programming algorithms if the tool does not support relocating the code from linker address 0x0000 0000 to the flash memory area during programming. Q: What if instead of linking for 0x0000 0000, I link my code for another address such as 0x1400 0000, which is SPIFI s lower memory region? Will the code still run? A: Yes it will. When you build an image for the Cortex-Mx platforms, the first word in the image will be the stack location, and the second word will contain the address of the code s entry point. After mapping your code to 0x0000 0000, the ROM driver reads address 0x0000 0004 to get the code entry point. It then jumps to this address to start your program. If you build for 0x1400 0000, then the code entry point at 0x1400 0004 will be 0x14xx xxxx. This word is remapped to 0x0000 0004 and loaded by the boot ROM resulting in starting your code at 0x14xx xxxx. In this case, the shadow area would only be used by the boot ROM to read the stack pointer and start address, and would be ignored thereafter. Q: What if I want to use many memories all containing different segments of code? A: In this case, the shadow area can only represent one memory area and should be set up to point to your boot memory. Code for other memory areas such as DYCS0 (SDRAM) should be linked to the actual memory address, and not linked for 0x0000 0000. Q: Is the ARM Cortex-M3/M4 VTOR register supported? A: Yes. VTOR is supported and can be used to move the vector table out of the shadow region and locate it in another memory region. Upon boot, VTOR will be set to 0x0000 0000. Q: Can on-board bus mastering peripherals such as USB, Ethernet, and DMA access the shadow region? A: No. The MxMEMMAP mechanism only affects memories as seen by the Cortex- M3/M4 core s I and D or S buses or by the M0 core. Q: What if I want to use a QSPI memory larger than 64 MB? Can I locate my code at 0 and map the upper SPIFI aperture at 0x8000 0000 to 0 using MxMEMMAP? A: Yes. Since the SPIFI peripheral can be accessed by the System Bus (S), it will remap to 0x00000000. Other memories at address ranges > 0x20000000 that cannot be accessed by the System Bus (S) will not remap to 0x00000000. All information provided in this document is subject to legal disclaimers. NXP B.V. 2012. All rights reserved. Technical note Rev. 1 30 November 2012 5 of 9

1.2 LPC4300-specific FAQ On the LPC4300, there are two MxMAP registers. M4MEMMAP controls the memory map for the Cortex-M4, and M0APPMEMMAP controls the memory map for the Cortex- M0. This means that the M0 and M4 can have different memory mapped into the shadow area. This means the code for both cores can be linked to 0x0000 0000 and stored in different memory areas. Fig 2. MxMAP registers Q: How can the M0 and the M4 execute different code at the same address? A: The MxMEMMAP registers only affect a single core in the MCU. The M4MEMMAP register does not affect the M0 or any peripherals. Neither does the M0MEMMAP register affect the M4 or any peripherals. All information provided in this document is subject to legal disclaimers. NXP B.V. 2012. All rights reserved. Technical note Rev. 1 30 November 2012 6 of 9

Q: Do I have to use M0APPMEMMAP when using the M0 core? A: You must use M0APPMEMMAP. This is because when the M0 core is let out of reset, it will begin executing at 0x0000 0000. M0APPMEMMAP must be set up so that the M0 can fetch the correct stack pointer and code start address. Q: Why isn t the VTOR register used? A: There is a VTOR register on the M3 and M4 cores, but not on the M0 core. Since no VTOR is present on the Cortex-M0 core, the MxMEMMAP register was conceived as a way to remap memory on any Cortex-Mx core. All information provided in this document is subject to legal disclaimers. NXP B.V. 2012. All rights reserved. Technical note Rev. 1 30 November 2012 7 of 9

2. Legal information 2.1 Definitions Draft The document is a draft version only. The content is still under internal review and subject to formal approval, which may result in modifications or additions. NXP Semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information. 2.2 Disclaimers Limited warranty and liability Information in this document is believed to be accurate and reliable. However, NXP Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. NXP Semiconductors takes no responsibility for the content in this document if provided by an information source outside of NXP Semiconductors. In no event shall NXP Semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. Notwithstanding any damages that customer might incur for any reason whatsoever, NXP Semiconductors aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms and conditions of commercial sale of NXP Semiconductors. Right to make changes NXP Semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. This document supersedes and replaces all information supplied prior to the publication hereof. Suitability for use NXP Semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. NXP Semiconductors and its suppliers accept no liability for inclusion and/or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer s own risk. Applications Applications that are described herein for any of these products are for illustrative purposes only. NXP Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. Customers are responsible for the design and operation of their applications and products using NXP Semiconductors products, and NXP Semiconductors accepts no liability for any assistance with applications or customer product design. It is customer s sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer s applications and products planned, as well as for the planned application and use of customer s third party customer(s). Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. NXP Semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer s applications or products, or the application or use by customer s third party customer(s). Customer is responsible for doing all necessary testing for the customer s applications and products using NXP Semiconductors products in order to avoid a default of the applications and the products or of the application or use by customer s third party customer(s). NXP does not accept any liability in this respect. Export control This document as well as the item(s) described herein may be subject to export control regulations. Export might require a prior authorization from competent authorities. Evaluation products This product is provided on an as is and with all faults basis for evaluation purposes only. NXP Semiconductors, its affiliates and their suppliers expressly disclaim all warranties, whether express, implied or statutory, including but not limited to the implied warranties of noninfringement, merchantability and fitness for a particular purpose. The entire risk as to the quality, or arising out of the use or performance, of this product remains with customer. In no event shall NXP Semiconductors, its affiliates or their suppliers be liable to customer for any special, indirect, consequential, punitive or incidental damages (including without limitation damages for loss of business, business interruption, loss of use, loss of data or information, and the like) arising out the use of or inability to use the product, whether or not based on tort (including negligence), strict liability, breach of contract, breach of warranty or any other theory, even if advised of the possibility of such damages. Notwithstanding any damages that customer might incur for any reason whatsoever (including without limitation, all damages referenced above and all direct or general damages), the entire liability of NXP Semiconductors, its affiliates and their suppliers and customer s exclusive remedy for all of the foregoing shall be limited to actual damages incurred by customer based on reasonable reliance up to the greater of the amount actually paid by customer for the product or five dollars (US$5.00). The foregoing limitations, exclusions and disclaimers shall apply to the maximum extent permitted by applicable law, even if any remedy fails of its essential purpose. 2.3 Trademarks Notice: All referenced brands, product names, service names and trademarks are property of their respective owners. All information provided in this document is subject to legal disclaimers. NXP B.V. 2012. All rights reserved. Technical note Rev. 1 30 November 2012 8 of 9

3. Contents 1. Introduction... 3 2. Legal information... 8 2.1 Definitions... 8 2.2 Disclaimers... 8 2.3 Trademarks... 8 3. Contents... 9 Please be aware that important notices concerning this document and the product(s) described herein, have been included in the section 'Legal information'. NXP B.V. 2012. All rights reserved. For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com Date of release: 30 November 2012 Document identifier: