Build and Run for Linux host
The linux port of the oWL Pico API reference design is designed to run on a standard desktop linux PC.
Hardware Setup
To connect the SPB820 to a linux host, an adapter board, SPB406, is required to convert the 10-pin connector on the SPB820 board to a RS232 or USB serial port. The SPB820 board should be attached to the adapter board. The RS232 or USB port on the adapter board can then be connected to the Linux host.
Pre-compiled binaries
Build
First, make sure that necessary build utilities such as gcc and make for the target platform are installed.
To compile for a linux host, download the oWL Pico API reference design from
DownloadSources and run the following commands:
$ unzip pico_client-r<rev>.zip
$ cd pico_client -r<rev>/build/linux
$ make
The binary "pclient" should now be created.
Run
The pclient binary can be either built manually using the steps described above or a pre-built binary could be used.
Make sure that the pclient binary is executable by issuing the following command:
$ chmod +x pclient
Then power up the SPB820 board and connect the eval kit to the PC. Allow the device to boot up completely before starting the pclient application on the linux host.
Use the following command:
$ ./pclient /dev/ttyUSB1
/dev/ttyUSB1 should be replaced by the actual serial port on the linux host where the SPB820 EVK is connected.
Topic revision: r3 - 2015-08-27 - 13:16:58 -
AndersGrahn