Before starting up with programming mini2440 you need the following accessories.
1. USB A-B cable – 2 no.
2. RJ-45 Ethernet cable.
3. USB-UART board with RS232 Female-Female cable
4. 5V,2Amp adapter.
Following is the rough sketch up of connections to be made.
Connect the USB-UART board to the RS232 9 pin D connector of mini2440 using the Female – Female RS232 cable. The other end of USB-UART board is connected to one of the USB ports of your PC using the A-B cable.
Connect the 5V/2A adapter pin t the power socket of mini2440 which is at the lower left end above the S1 power switch.
Connect the RJ45 cable to the Ethernet port of mini2440 found just above the 9pin D connector.The other end is connected to one of the RJ45 sockets of the Router (mine is Linksys Router with built in ADSL Modem).Please note that already your PC’s Ethernet port is connected to this Router to provide Internet access.
The USB – B connector found at the top of mini2440 is connected to another USB port of your PC.
To establish communication between your Host PC & the Friendly mini2440 use the Terminal software PuTTY.This is similar to the HyperTerminal in Windows platform.
To install putty in Ubuntu 12.10, open the Terminal and enter the following command
sudo apt-get install putty
Once putty has been installed, open your Dash (press Win/super key) and type Putty.
The PuTTY SSH Client icon will appear in the search results. Launch PuTTY SSH Client by clicking on the icon.
Lock PuTTY SSH Client to your launcher by selecting Lock to Launcher.
Power ON the mini2440 device by sliding switch S1 to left (away from the board).
Fire on PuTTY terminal.To configure PuTTY to communicate with mini2440 , you should know the port to which the device is allotted.In Windows it is called like COM1, COM2,,..
In Linux it is like ttyUSB0 , ttySo,…
Under Linux Terminal type in following command (we are going to use both Linux terminal & PuTTY terminal.Be sure to understand which terminal to type in the command.)
dmesg | grep –i usb
to read out the information of devices connected to USB ports of the host PC.
As you see in the screenshot, the USB-UART board we are using to connect mini2440 to PC is recognized & allotted ttyUSB0 .As the conversion board is using cp2102 IC it is displayed as “cp210x converter attached to ttyUSB0 “.
Fire up PuTTY & under configuration window select Serial as the connection type.Enter speed as 115200 & under serial line type in /dev/ttyUSB0. Note that it is USB zero & not letter O.You can save the settings by providing a name,say arm2.
Now select the saved session “arm2” & click on Load & then Open.
A black blank PuTTY terminal window opens up.Switch off & then again switch ON the mini2440 device to see the action as below:
At the bottom of terminal screen finally you get the prompt as below:
To know the IP address of the mini2440 device type ifconfig
The IP address is 192.168.1.230 ,as seen above.
Now we shall see the Set Up to start loading example programs on to the mini2440 device.
From the DVD that is supplied along with mini2440 ,go to the /linux folder & copy
examples-20100108.tar.gz file to /tmp folder of file system.
Now under Linux Terminal change directory to /tmp.
Type in following command to UnTar the example files.
sudo tar xvzf examples-20100108.tar.gz –C /
Note the Space after filename .tar.gz & the usage of capital letter C followed by space & then a forward slash / .
A folder called examples is created under /opt/FriendlyARM/mini2440
into which all the example c code files along with make files are extracted.
Now you are all set to start loading & testing programs on the mini2440 device.