FDI LP3180 User Manual Download Page 36

FDI 

NXP LPC3180 Demo  

User’s Manual

 

FDI 

 

Rev 2 

Page 36 

9/7/2007 

a.

 

Purpose:  If the screen is not inverted, this command places the screen in 
inverted mode.  If the screen is inverted, this command places the screen 
in normal mode: 

b.

 

Arguments:  None 

c.

 

Returns:  1 on failure, 0 on success 

d.

 

Example: 

 

if (ioctl(fbfd, FBIO_TOGGLEINVERT)) { 
     printf("Error toggling screen invert.\n"); 
     exit(1); 

 

9.

 

FBIO_INVERTON 

a.

 

Purpose:  If the screen is in normal mode, this command places the screen 
in inverted mode.  If the screen is already inverted, this command has no 
effect. 

b.

 

Arguments:  None 

c.

 

Returns:  1 on failure, 0 on success 

d.

 

Example: 

 

if (ioctl(fbfd, FBIO_INVERTON)) { 
     printf("Error inverting screen.\n"); 
     exit(1); 

 

10.

 

FBIO_INVERTOFF 

a.

 

Purpose:  If the screen is in inverted mode, this command places the 
screen in normal mode.  If the screen is already in normal mode, this 
command has no effect. 

b.

 

Arguments:  None 

c.

 

Returns:  1 on failure, 0 on success 

d.

 

Example: 

 

if (ioctl(fbfd, FBIO_INVERTOFF)) { 
     printf("Error inverting screen.\n"); 
     exit(1); 

 

11.

 

FBIO_CONTRASTPLUS 

a.

 

Purpose:  Increments the screen’s contrast adjustment by 1.  If the contrast 
adjustment is at its highest possible value, this command has no effect. 

b.

 

Arguments:  None 

c.

 

Returns:  1 on failure, 0 on success 

d.

 

Example: 

 

if (ioctl(fbfd, FBIO_CONTRASTPLUS)) { 
     printf("Error increasing screen contrast.\n"); 
     exit(1); 

Summary of Contents for LP3180

Page 1: ...LPC3180 Development Kit User s Manual For Software and Documentation please go to www teamfdi com lpc3180...

Page 2: ...any form or by any means electronic or mechanical for any purpose without the express written permission of Future Designs Inc 2702 Triana Boulevard Huntsville AL 35805 NOTE The inclusion of vendor s...

Page 3: ...lash Memory Map 14 6 0 Downloading New Software 15 6 1 Loading Images Into SDRAM Memory 15 6 2 Writing SDRAM to NAND Flash 17 7 0 Building Images in Linux 19 7 1 Building U Boot 19 7 2 Building the Li...

Page 4: ...ral Sales and Contact Information 31 11 1 General Sales 31 11 2 Contact Information 31 12 0 APPENDIX A Board Layout and Connectors 32 13 0 APPENDIX B Schematic and Parts List 33 14 0 APPENDIX C Frameb...

Page 5: ...U and Bluetooth Low Power USB Port DB9 Serial Port SD Card slot LCD and Keypad expansion board optional 2 0 Guide to Kit 2 1 Kit Contents The following items are included in the NXP LPC3180 Kit LPC318...

Page 6: ...ND Flash 1 2 default Allows PMU JTAG to reset BGW211 JP5 2 3 BGW211 can only be reset by POR Table 1 Jumper Descriptions 2 5 JTAG Connectors The following table lists the JTAG connectors of the LPC318...

Page 7: ...lar phone like buttons as well as the Densitron DVC40406 LCD module The LCD module allows for a resolution of 128x160 and up to 65K Colors With the power off the GUI board may be connected to the LPC3...

Page 8: ...of the LPC3180 board with connectors J1 and J2 of the GUI board respectively Push the boards together until a complete connection is made see Figure 1 3 Connect Condor Power supply from wall outlet t...

Page 9: ...FDI NXP LPC3180 Demo User s Manual FDI Rev 2 Page 9 9 7 2007 Figure 1 GUI Board Connection Figure 2 Serial Connection Figure 3 Power Switch...

Page 10: ...Next to advance to the License Agreement Figure 4 JLink License Agreement Click Yes to agree to the license and Next to advance to the Destination Location window The software should be installed in...

Page 11: ...h will allow you to open JLink Commander and run the programming scripts Figure 7 Finish Installation 4 2 Build System To successfully re build kernel u boot and root filesystem images for the LPC3180...

Page 12: ...flash into SDRAM at predefined locations 4 U Boot is then executed which performs other checks and initialization steps and finally executes the Linux Kernel image already in memory 5 Linux boots usi...

Page 13: ...essed to handle flashing of the NAND memory testing and other basic low level features read write individual bytes If left to run U Boot will automatically start up the Linux system 5 3 Linux Boot Lin...

Page 14: ...NAND Flash Memory Map The NAND Flash is split into the following sections Section Address Start Interface Configuration data ICR 0x00000000 Secondary Boot Loader SIBL 0x00000800 RootFS 0x00020000 Linu...

Page 15: ...oaded to the LPC3180 s NAND flash memory using a two stage process First all images must be transferred via JTAG to the LPC3180 s SDRAM Next these images in SDRAM are programmed into NAND flash using...

Page 16: ...ight hand side of the LPC3180 board For assistance in installing J Link Commander please consult section 4 1 Figure 8 LPC3180 JTAG Connection After connecting the LPC3180 Board to the power supply 5VD...

Page 17: ...to enter the following commands into a J Link Commander window A new J Link Commander window must be opened if the above commands were not typed in manually setpc 81EC0000 g After performing the abov...

Page 18: ...a particular image the following commands are useful LPC3180 nand erase 00020000 500000 filesystem LPC3180 nand erase 00620000 160000 kernel LPC3180 nand erase 00800000 040000 u boot All commands list...

Page 19: ...4 0 vfp bin arm linux gcc export ARCH arm export CROSS_COMPILE arm linux make distclean make lpc3180db_config make make u boot axf tools mkimage A arm O u boot T Firmware C none a 81EC0000 e 81EC0000...

Page 20: ...r written when this occurs The modules should be copied over into their respective locations cp vhw ko path to mnt_rootfs lib modules 2 6 10 kernel drivers i2c cp ga_linuxdrv_211_pnx4008_spi ko path t...

Page 21: ...boot and it is not necessary to re issue it within Linux As a result following boot a USB Block Device may be inserted at any time 8 2 JFFS2 In the on board NAND Flash a space of 15 Megs has been rese...

Page 22: ...eless tools commands are used to configure WIFI within the scripts 8 4 Bluetooth Each LPC3180 board is equipped with the NXP BGB203 Bluetooth module programmed with version 1 2 4 of the NXP 1SPP firmw...

Page 23: ...ectly into the linux kernel Also lines were added to successfully compile ssdfb c and link it during the make modules stage of compilation lpc3000evb_defconfig LINUX arch arm configs This file contain...

Page 24: ...ly if the GUI board is not present the space key may be tapped after observing the following text in HyperTerminal NXP LPC3180 Demo FDI SIBL v1 00 SIBL will perform initialization and the quick memory...

Page 25: ...resses the test will echo out the LED number currently lit Figure 10 shows the LCD and LEDs after pressing the OK button a number of times Figure 10 LED Test To end the test the Enter key Clear button...

Page 26: ...tion of the SPI bus by sending out a pattern which may be observed using an oscilloscope The oscilloscope should be configured with a trigger value of 1V and 1ms Div The ground may be connected to pin...

Page 27: ...e test and return to the main menu the Enter key Clear button may be pressed 9 7 Test UART2 to Bluetooth This test verifies the connection of UART2 from the LPC3180 to the Bluetooth device After selec...

Page 28: ...at any time by pressing and holding the Clear key on the GUI keypad until the test returns to the main menu Also if using HyperTerminal the space key may be tapped and the test will return to the main...

Page 29: ...loading vhw module modprobe r vhw fi echo Loading loopback vhw module insmod nv STloopback vhw ko NOTE In some cases it was necessary to directly connect the digital and analog grounds to successfully...

Page 30: ...support for the J Link Commander Software and J Link ARM KS dongle You may request assistance for any issues encountered by filling out a request form at http supp iar com Support Request Technical s...

Page 31: ...uthorized sales representatives for the LPC3180 Development Kit include Worldwide contact FDI http www teamfdi com 256 883 1240 11 2 Contact Information The following is a list of company contact info...

Page 32: ...in Antenna WLAN J6 50 Ohm AUX Antenna WLAN J7 8 Ohm External Speaker Connection J9 BGW211 UART Header J11 Daughter Board Connector 1 J12 GUI Keypad Connector J13 GUI Display Connector J15 Headset Jack...

Page 33: ...emo User s Manual FDI Rev 2 Page 33 9 7 2007 13 0 APPENDIX B Schematic and Parts List Please refer to the Hardware documentation within the distribution for latest schematics and parts list for the LP...

Page 34: ...gned int array using the following format x_Location y_Location x_Resolution y_Resolution c Returns 1 on failure 0 on success d Example unsigned int to_send 4 0 0 128 160 if ioctl fbfd FBIO_DUMPSCREEN...

Page 35: ...re 0 on success d Example if ioctl fbfd FBIO_TOGGLESLEEP printf Error toggling screen sleep n exit 1 6 FBIO_SLEEPON a Purpose If the LCD panel is awake this command explicitly puts it to sleep If the...

Page 36: ...ts None c Returns 1 on failure 0 on success d Example if ioctl fbfd FBIO_INVERTON printf Error inverting screen n exit 1 10 FBIO_INVERTOFF a Purpose If the screen is in inverted mode this command plac...

Page 37: ...ts highest possible value this command has no effect b Arguments None c Returns 1 on failure 0 on success d Example if ioctl fbfd FBIO_BRIGHTNESSPLUS printf Error increasing screen brightness n exit 1...

Page 38: ...FDI NXP LPC3180 Demo User s Manual FDI Rev 2 Page 38 9 7 2007 15 0 APPENDIX D GUI Keypad Mapping Each button is assigned a column Cx and row Ry as shown below...

Page 39: ...FDI NXP LPC3180 Demo User s Manual FDI Rev 2 Page 39 9 7 2007...

Page 40: ......

Reviews: