Thursday, 13 July 2017

Xilinx SDK

Xilinx SDK has many bugs since it uses eclipse.

If Xilinx SDK fails to open. Delete the .metadata folder and try again.

To program the bit stream use Xilinx Tools -> Program FPGA

To program microblaze right click Run as-> Launch on Hardware (System Debugger)

Monday, 30 January 2017

Raspberry PI Bluetooth PAN (JAN 2017)


  • BlueZ 5+
  • Python2.7
  • bt-pan
  • bridge-utils
Get bt-pan here



Load bluetooth on both devices

systemctl start bluetooth

On the Raspberry Pi

1) Pair devices with bluetoothctl or GUIs

2) Execute this script

brctl addbr pan0
brctl setfd pan0 0
brctl stp pan0 off
ip addr add dev pan0
ip link set pan0 up
python2.7 bt-pan --debug server pan0

This will setup the Raspberry Pi to have an IP of and netmask of .

3) If it works then create a systemd service

On client

1) Pair devices with bluetoothctl or GUIs

2) Execute

python2.7 bt-pan --debug client XX:XX:XX:XX:XX:XX --wait

3) If it works then create a systemd service

4) Configure the client IP to be . Netmask is . Gateway is .

Friday, 27 January 2017

How to deploy MATLAB/Simulink on Raspberry PI without reformating SD Card

First install the Simulink support package for Raspberry Pi or MATLAB support package for Raspberry Pi.

Easy way. Type in 

raspi.internal.firmware.setupMATLABServer('<IP address>','<User name>','<Password>')

This should setup everything if it succeeds to execute the script. The user need root privileges and sudo without asking for the password.

If all fails.

Type in  


in MATLAB and configure the settings.

MATLAB will download a file called

Unzip it and open the image file.

Copy the entire /opt to your existing installation.

The location /opt/MATLAB/server_v16.2.0/ is where the binaries live.

To start MATLAB run

sudo /opt/MATLAB/server_v16.2.0/matlabd   <PORT NUMBER>

The port number is usually   18732   or the one you set.

To start the UDP daemon run

/opt/MATLAB/udp_ip /boot/iflist.txt

After this MATLAB/Simulink should work.