NXP Semiconductors LPC8N04 Скачать руководство пользователя страница 12

UM11082

All information provided in this document is subject to legal disclaimers.

© NXP B.V. 2018. All rights reserved.

User Manual

Rev. 1.1 — 12 January 2018 

12 of 18

 

NXP Semiconductors

LPC8N04 Development Board

User Manual

Note that in the demo application (app_demo) from the Code Bundle (and 
pre-programmed into the board, as described earlier) P0_10 and P011 are set up for SWD 
functionality when the board starts up, but if/when NFC is activated, the I/O functionality 
changes to GPIO mode. To allow debugging when NFC is activate, the code to switch this 
I/O functionality should be removed.

The rest of this section describes specific setup steps for MCUXpresso IDE, and provides 
guidelines for using other IDEs, using the on-board debug probe. When using an external 
debug probe the steps are identical except for the selection of the target probe (which will 
vary by IDE use). See 

Section 4.1

 for more information on using an external debug probe.

3.3.1 Using MCUXpresso IDE (using on-board debug probe)

Note that MCUXpresso IDE has built-in knowledge of the LPC8N04 part family, so does 
not require any SDK installation steps. Follow the steps below to build and run the 
application example from the LPC8N04 Board support package provided by NXP.

1. LPC8N04 driver firmware and the demo application for the LPC8N04 can be 

downloaded from nxp.com: http://www.nxp.com/demoboard/OM40002 (look under 
Software and Tools tab.) Select the MCUXpresso IDE version when downloading.

2. Open a new workspace in the MCUXpresso IDE.
3. In the Quickstart panel of the IDE, click in “Import a new project from the file system”
4. In the “Import project(s) from file system...” dialog box that opens, click “Browse...” in 

the Project Archive (from zip) section, and select the LPC8N04 code zip file 
downloaded in step (1) above. Click “Next >” on the “Import project(s) from file 
system...” dialog to continue.

5. You will several projects listed in the project bundle; click “Finish” to import them all.
6. The dialog box will close, and you will see the imported projects in the Project tab at 

the upper left window of the IDE. Click on app_demo to select it, then select Build 
from the Quickstart panel. This is the same firmware as pre-loaded in the Board 
during manufacture. You will see the build processing in the Console window to the 
right of the Quickstart panel. The projects are set up to include dependency checking, 
so the build process will automatically build the utility and peripheral libraries as well 
as the example program.

7. Ensuring the LPC8N04 Development Board is connected to the host computer, click 

Debug in the Quickstart panel. The IDE will search for available debug probes. Select 
the debug probe that appears for your board, then click OK. Note that the IDE will 
remember your selection for the next time you debug this project, so will not prompt 
for this again, unless it cannot find the board.

8. The code will execute to main. Press F8 to resume and run the program. You will now 

be able to interact with the demonstration, as described in 

Section 3.2

.

3.3.2 Using 3rd Party IDEs

LPC8N04 driver firmware and the demo application for the LPC8N04 can be downloaded 
(from February 2018) from nxp.com: http://www.nxp.com/demoboard/OM40002 (look 
under Software and Tools tab.) Projects are provided with Keil MDK and IAR EWARM 
projects.

Содержание LPC8N04

Страница 1: ...anual Rev 1 1 12 January 2018 1 of 18 NXP Semiconductors LPC8N04 Development Board User Manual UM11082 User Manual for LPC8N04 Development Board Rev 1 1 12 January 2018 User Manual Document informatio...

Страница 2: ...NXP B V 2018 All rights reserved User Manual Rev 1 1 12 January 2018 2 of 18 NXP Semiconductors LPC8N04 Development Board User Manual Revision history Rev Date Description 1 0 20171218 First draft 1...

Страница 3: ...ker LS1 The LPC8N04 Development Board board includes the following features Compatible with MCUXpresso IDE and other popular toolchains incl IAR and Keil Detachable two section board featuring minimal...

Страница 4: ...the layout of the LPC8N04 Development Board board indicating location of jumpers buttons connectors expansion options and MCU devices Fig 2 Board layout top silkscreen SWD LED jumpers P8 P7 SPKR LED j...

Страница 5: ...P1 when using this header 4 1 S1 LPC8N04 power on off switch When the switch is open the power is disconnected from the LPC8N04 This switch is provided to prevent accidental draining of the batteries...

Страница 6: ...r see installation notes included in the package for further information 3 2 Running the out of box demo The LPC8N04 on the Development Board is pre programmed with a demonstration program which desig...

Страница 7: ...enabled on the smartphone then activate the App Tap on the LED TEXT AND MUSIC tab at the top left then the Read NDEF button 3 2 2 Enabling and reading the and scrolling message temperature Bring the p...

Страница 8: ...essage in the Text box then tap Write NDEF to write the message to the LPC8N04 The message TAG successfully written should appear along with the speed at which the write took place The LED array will...

Страница 9: ...instead of the top row of LEDs see Figure 3 By default the firmware will assume this GPIO is being used for the LED row but will switch to driving the speaker once a push of button S2 is detected Beca...

Страница 10: ...Semiconductors LPC8N04 Development Board User Manual 3 2 5 Running demos using energy harvesting If a smart phone with sufficient NFC reader power is used a demo can be run using energy harvesting to...

Страница 11: ...DAP protocol This protocol is supported by MCUXpresso IDE and other popular IDEs such as Keil MDK and IAR EWARM It is not normally necessary to update the debug probe firmware but this can be done by...

Страница 12: ...click in Import a new project from the file system 4 In the Import project s from file system dialog box that opens click Browse in the Project Archive from zip section and select the LPC8N04 code zi...

Страница 13: ...File Explorer or equivalent on Mac Linux platforms look at the available drives on your system A device called CRP_DISABLED will appear 4 Delete the firmware bin file on the CRP_DISABLED drive 5 Drag...

Страница 14: ...signals PIO0_11 and PIO0_10 and PIO0_3 which is shared with the speaker driver These three signal may be disconnected for all these functions using P7 P8 and P9 for other I Os to be used the MP and DP...

Страница 15: ...that energy harvesting can still operate when the power switch is set in the off position Protection diodes are provided to prevent reverse powering of the coin cell batteries or external debug probe...

Страница 16: ...th a scanning technique is provided in the app_demo example code mentioned in Section 3 3 7 3 Speaker and Speaker Driver A surface mount speaker LS1 is provided on the reverse side of the DP section o...

Страница 17: ...be expected to result in personal injury death or severe property or environmental damage NXP Semiconductors accepts no liability for inclusion and or use of NXP Semiconductors products in such equip...

Страница 18: ...7 3 2 3 Updating the scrolling message 8 3 2 4 Playing a tune 9 3 2 5 Running demos using energy harvesting 10 3 3 Setting up the board for Development 11 3 3 1 Using MCUXpresso IDE using on board de...

Отзывы: