LC-PI-200S

From LCWIKI
Jump to: navigation, search

Getting Started Guide

This guide is designed for LCPI F1C200S enthusiasts.Its purpose is to understand the LCPI F1C200S,and how to prepare and use it.


About of LCPI F1C200S

LCPI F1C200S adopts Allwinner F1C200S ARM926EJ-S core processor,with 64MB SIP-DDR1 on-chip,the DDR frequency can run stably at 156Mhz,and the CPU main frequency can reach 720Mhz. Onboard USB,Flash,TF card holder,40P LCD interface,microphone,etc. Support 720P video output,support H.264, MJPEG and other decoding.


Purpose of LCPI F1C200S

F1C200s is a highly integrated,low-power mobile application processor from Allwinner,which can be used in a variety of multimedia audio and video devices. Allwinner F1C200s is based on the ARM 9 architecture and integrates DDR.
It supports high-definition video decoding,including H.264,H.263,MPEG 1/2/4, etc. It also integrates audio codec and I2S/PCM interface to enhance user experience with excellent system integration capabilities,Simple development,support for low-power applications,and rich interfaces,such as usb otg,uart,spi,tWI,tp,sd/mmc,csi,etc.
It can support operations such as MELIS and Linux operating systems. It is a product with simple development and high cost performance.


View of LCPI F1C200S

Front view of LCPI F1C200S
F1C200S-1.png

Reverse view of LCPI F1C200S
F1C200S-2.jpg



Introduction

1.Description for interface
F1C200S-3.jpg

2.Board size:76*38mm. Weight:15g
F1C200S-4.jpg

3.FPC Interface Pin Description
F1C200S-5-1.jpg



Function features

  • Core:ARM926EJS@900MHz
  • Memory:DDR1 built-in 64M
  • Support memory card:onboard self-bouncing TF card holder
  • Onboard Flash:1Gbit SPI NAND Flash
  • Audio:1 microphone and 1 piece 1W power amplifier chip
  • LCD:40pin-0.5mm FPC seat LCD interface
  • Carema:24pin-0.5mm FPC seat CSI interface(can be connected to OV2640,OV5640,etc.,default OV2640)
  • USB:OTG USB(TYPE-C interface)
  • UART:CH340E(TYPE-C interface)

Chip Architecture Block Diagram
F1C200S-5-2.png



Introduction for use

1.Program burning
(1)Install the driver under Windows
Find zadig-2.5.exe in the tool software folder and open it.

(2)Install FEL mode Driver
F1C200S-6.jpg

F1C200S-7.jpg

F1C200S-8.jpg

F1C200S-9.jpg


(3)Install DFU mode Driver
F1C200S-10.jpg

F1C200S-11.jpg

F1C200S-12.jpg


(4)Brush tool SUNXI-FEL
This tool is when the Allwinner SoC fails to boot in all Flash,the chip automatically enters the FEL Flashing state and communicates through USB.
This part will use sunxi-fel.exe in the compressed package. Do not insert the TF card,press and hold the BOOT button and then plug in the USB cable;or insert the USB first,press the RST button while holding the BOOT button,you can actively enter the USB Flashing mode,and the computer detects a new USB Flashing device.
When using sunxi-fel,you must use the command line.For example,you can install a git tool(https://git-scm.com/downloads)instead of the terminal that comes with windows. A working FEL device,we can test ir with the command:
F1C200S-13.jpg


(5)Brush tool DFU-UTIL
️This part will use dfu-util.exe in the tools folder.
️️️①Put the module in FEL mode.
②Run the from-fel-to-dfu.bat script,double-click to run.Or run the commands in the script on the Windows command line.
③At this point,the module will print some logs.When you see these,it indicates that the module is in DFU mode.
F1C200S-14.jpg
④Prepare the NAND image, and then use the following command to flash the machine in the Windows command line.
F1C200S-14-1.png

Please modify the specific path yourself
Brush log:
F1C200S-13-2.png


Burn write to TF card
1.Prepare a TF card and a card reader connected to the computer,open the Win32DiskImager software;Select the corresponding image file, click Write to start burning
F1C200S-17.png

F1C200S-18.png

F1C200S-19.png



Function test

F1C200S-20.jpg

Prepare the necessary accessories
1.A 480*272 LCD display:Used to display relevant debugging information/human-machine interaction
F1C200S-21.jpg

2.A small speaker:Used to test audio output.
An OV2640 camera:Used for photo testing.
F1C200S-22.jpg F1C200S-23.jpg


(It is recommended that professionals can directly test)
1.Camera test
Use a TYPE-C cable to connect to the TTL interface, open putty.exe; wait for the board to start and enter root without a password.
Set image format:
media-ctl --set-v4l2 '"ov2640 0-0030":0[fmt:YUYV8_2X8/640x480]'
Photo test:
fswebcam -d /dev/video0 --no-banner -r 640x480 -S 10 1.jpg
F1C200S-24.jpg

After completion, you can connect another TYPE-C cable or unplug the cable on the TTL interface and then connect it to the OTG interface, wait for a device to appear, and then open it to see photos in 1.jpg format
[fswebcam -d /devideo0 --no-banner -r 640x480 -S 10 1.jpg]
F1C200S-26.png


2.Display test
Insert the cable of the LCD into the row seat of the motherboard, power on and start
View screen interface: # ls /dev/fb0
Print string to screen: # echo hello > /dev/tty1
F1C200S-27.png


3.Recording/playback test
Connect the small speaker to both ends of OUT+ and OUT-, power on and start
Modify the configuration file Command: # tinymix contents
F1C200S-28.jpg

Modification method
Modify the command to:tinymix set serial number content
For example:# tinymix set 2 1 Modify the value of item number 2 to on,on

           # tinymix set 1 63 Modify the value of item number 1 to 63
# tinymix set 13 1 Modify the value of item number 13 to on

F1C200S-29.png

After the modification is completed,it is as follows
F1C200S-30.jpg


Next, start recording audio:# tinycap /tmp/test.wav
Ctrl + C End recording
F1C200S-31.jpg

Test the recording effect:# tinyplay /tmp/test.wav
F1C200S-32.jpg



LCPITester_ Instructions for using F1C software (it is recommended that beginners can use the F1C200S specialized testing software developed by Elsa Technology)

The following is the test method using Putty general software. Customers who want to speed up the test can use the F1C200S special test software developed by Airsay Technology, as shown in the figure below:
F1C200S-33.png


Way for use:
1.Connect the peripherals that need to be tested (such as LCD),and connect the USB port of the computer to the TTL Type-C interface on the development board through a USB cable.
2. Select the correct port number,baud rate 115200,click "Connect",and the window will print out a lot of debugging information.After the system starts up,click "Disconnect".Then click "Connect",when the following information appears,it means that the login to the Linux system is successful,and the function test can be carried out.
F1C200S-34.png

Remarks:The software only supports ports within COM9.If the port number recognized by the computer exceeds COM9,please modify the port number in the Windows Device Manager.

Take the test LCD as an example:
1.Check "LCD" and click "Execute".If the test is successful,the LCD will display "Hello Lctech!"
F1C200S-35.png

F1C200S-36.jpg

Thermal imaging test:
F1C200S-36-1.jpg

2.At this time,the software will ask whether the test is successful,and if you click "Yes", the LCD will display greenF1C200S-37.png, Otherwise, it will display red. The test method for the rest of the functions is similar to this



Source code compilation

1. Virtual machine installation
LC provides customers with virtual machines that have built various compilation environments. You can directly install the virtual machine for compilation.
Proceed as follows:
①Download and unzip the Ubuntu_16.04_X64_ES_LCPI.7z virtual machine file
②Open the VMware Workstation software, click "Open Virtual Machine" and locate the folder you just extracted.
Ubuntu_16.04_X64.vmx file in Ubuntu_16.04_X64_ES_LCPI-200S
F1C200S-38.png

③Click the green play icon on the left or in the menu bar to "Open this virtual machine"
F1C200S-39.png

④After entering the Ubuntu system, click on the Test account and enter the password 123456 to enter the system.
F1C200S-40.png


2.Source code compilation
①Click F1C200S-41.png icon and enter according to the home/lc/buildroot path
F1C200S-42.png

②Right-click the mouse to open the Terminal tool
●Enter make widora_mangopi_r3_defconfig and press Enter
F1C200S-43.png
●Enter make -j8 and press Enter
F1C200S-44.png

F1C200S-45.png

Wait about 1 hour (depending on the computer configuration) to complete the file packaging. The image file output path is:
/home/lc/buildroot/output/images



Download LCPI F1C200S User Manual=

For more information on the use of LC-PI-200S, please view https://drive.google.com/drive/folders/1BfryVhaF8VwfVE6C_hKur-7hDE7IAhnq?usp=sharing