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 SPB820P to a linux host, an adapter board, SPB406, is required to convert the 10-pin connector on the SPB820P board to a RS232 or USB serial port. The SPB820P 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.
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>/trunk/platform/linux/apps/pico_client
$ make
The binary "pico_client-stack-offload-desktop.elf" should now be created.
Run
The pico_client binary can be either built manually using the steps described above or a pre-built binary could be used.
Make sure that the pico_client binary is executable by issuing the following command:
$ chmod +x pico_client-stack-offload-desktop.elf
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:
$ ./pico_client-stack-offload-desktop.elf /dev/ttyUSB1
/dev/ttyUSB1 should be replaced by the actual serial port on the linux host where the SPB820 EVK is connected.