📄 arm_target_philips_lpc210x.htm
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<meta name="GENERATOR" content="Microsoft FrontPage 4.0" />
<meta name="ProgId" content="FrontPage.Editor.Document" />
<title>Philips LPC210X Target Support</title>
<link rel="stylesheet" href="default.css" type="text/css" />
</head>
<body>
<p>CrossStudio's New Project Wizard simplifies the creation of projects for the
Philips LPC2000 family by creating a project with the appropriate project settings,
memory map files and startup files. See <a href="../../html/arm_new_project.htm">Creating
a New Project</a> for more information on creating projects.</p>
<h5>To create a new Philips LPC2000 project</h5>
<ul>
<li>Select the <b>File | New | New Project</b> menu item.</li>
<li>Select <b>Philips LPC2000 Projects</b> from the <b>Project Type</b> list.</li>
<li>Select the required project template type from the <b>Templates</b> list.</li>
<li>Set the required project name and location directory.</li>
<li>Click <b>OK</b>.</li>
<li>Set the <b>Build | Target Processor </b>project property to the member of
the LPC2000 family you wish to target.</li>
</ul>
<p>CrossStudio for ARM supports the Philips LPC2000 family running applications from
both RAM and FLASH. </p>
<h5>To build and debug an application</h5>
<ul>
<li>Select the project to work on by using the <b>Project | Set Active Project</b>
menu option.</li>
<li>Select the <a href="../../html/arm_project_configurations.htm">
configuration</a> you require by using the <b>Build | Set Active
Build Configuration</b> menu option.</li>
<li>Build the project by using the <b>Build | Build Project</b> menu option.</li>
<li>Connect to the appropriate target in the target window.</li>
<li>Download and start debugging the current project by using <b>Debug | Start
Debugging</b>.</li>
</ul>
<p>The following sections describe the Philips LPC2000 support in more detail.
See <a href="../../html/arm_target_support.htm">ARM Target Support</a> for more
information.</p>
<h3>Memory Map Files</h3>
<p>Default memory map files have been provided in the $(StudioDir)/targets/Philips_LPC210X
directory for each member of the LPC2000 family. These files are used to describe the memory layout of the target
and is used for linking and debugging. The placement of program sections within
the memory map for both RAM and FLASH configurations is described by the
non-target-specific default memory maps $(StudioDir)/targets/flash_placement.xml
and $(StudioDir)/targets/sram_placement.xml.</p>
<p>The <b>Build | Target Processor </b>project property specifies which of the
LPC2000 family memory map files are used.</p>
<h3>Target Definitions</h3>
<p>Target definitions have been provided for both RAM and FLASH configurations. The only difference between the two configurations is that
the RAM configuration maps the interrupt vectors from SRAM and the FLASH
configuration maps the interrupt vectors from the boot block (the default from
reset). This therefore means that applications configured for FLASH will run
from a reset however applications configured for RAM will need to be started
from CrossStudio.</p>
<h3>Target Startup Code</h3>
<p>The default startup code is in $(StudioDir)/targets/Philips_LPC210X/Philips_LPC210X_Startup.s.
It contains the exception vectors and the default exception handlers.</p>
<p>By default the startup code for both RAM and FLASH configurations is the
same, however if <b>SRAM_EXCEPTIONS</b> is defined the interrupt vectors will be
copied from FLASH into the start of SRAM and the SRAM interrupt vectors will be
remapped to 0x00000000. This is useful if you want to re-program the exception
vectors whilst the program is running when using a FLASH configuration. For the <b>SRAM_EXCEPTIONS</b>
option to work, the 36 bytes of memory occupied by the exception vectors must be
reserved at the top of SRAM.</p>
<h3>FLASH Loader</h3>
<p>In order for the FLASH loader program to work reliably, it needs to know the
target's oscillator frequency. The default oscillator frequency value is 10Mhz,
for targets with a different oscillator frequency the value (in Hertz) should be specified
in the <b>Target | Loader Parameter</b> project property.</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -