Saturday, December 16, 2017

FlashMagic on Ubuntu

Hi all,

Here is the post for using FlashMagic on Linux (Ubuntu 16.04)

FlashMagic is will versed PC tool for ISP programming NXP flash based microcontrollers. Here are the steps for using Flash Magic on Ubuntu.

1) Install "Wine" from Ubuntu Software Center, it also installs Winetricks

2) Downlaod FlashMagic tool from here
3) Right click on "FlashMagic.exe", select "Open With" --> "Wine Windows Program Loader". It opens the installation window, follow the instructions to complete the setup.
4) From applications you can launch "Flash Magic"



Setting up UART for flash Magic.

Its very common that device naming convention/path is different from Linux to Windows.
Devices for wine are located at the following path

ls -l ~/.wine/dosdevices/
total 0
lrwxrwxrwx 1 testingjig testingjig 10 Dec 16 11:47 c: -> ../drive_c
lrwxrwxrwx 1 testingjig testingjig  9 Dec 16 11:52 d:: -> /dev/sdb1
lrwxrwxrwx 1 testingjig testingjig  8 Dec 16 11:52 e:: -> /dev/sdb
lrwxrwxrwx 1 testingjig testingjig  1 Dec 16 11:47 z: -> /

Connect USB-Serial Cable, from dmesg, identify the device node created, in my case it is ttyUSB0

Note: Naming convention to follow in small letters, say com1 instead of COM1


cd ~/.wine/dosdevices/

ln -s /dev/ttyUSB0 com1 

Now from FlashMagic tool select COM1 for programming the device in ISP mode.


This completes setting up FlashMagic in Linux using wine.

Creating Default FlashMagic Configuration

We can create a default configuration for FlashMagic which can be launched just by a single click.

From FlashMagic window, select "File"->"Save Settings", save your settings as mySeetings.fms

you can place this file on Desktop and launch your settings just at a click

 please leave your comments, it will be encouraging :)

1 comment:

  1. I am glad to find amazing information from the blog. Thanks for sharing the information about Linux kernel programmimg and for more information Please go trough the link : Linux training in Hyderabad

    ReplyDelete