Microcontroller programming in Linux


Are you using Windows Vista or 7 and want to work on your microcontroller??
Then you would have definitely faced 2 problems in:
1. Using your USB programmer to burn the code into the uC. The digitally signed driver issue.
2. Using a USB to Serial converter to test serial communication.

I was fed up of trying different things and so i thought of giving a try to Linux.
I am working on AVRs on Ubuntu 10.10 now.

For dumping the code: On Linux, I just had to install the following packages:
libusb0 – library to using USB for programming
avrdude – the programmer.
thats it.
Run the normal avrdude commands & done! (run as Superuser or root ($sudo avrdude … )).

For serial communication: I installed “Cutecom“, a GUI based serial terminal (like hyperterminal of windows XP). Run it from the console ($ cutecom). It shows 4 serial devices namely “/dev/ttyS0” to “/dev/ttyS3”. For using USB to Serial cable, manually type in the device name as “/dev/ttyUSB0”. Thats it! you can now test all your serial communication.

For writing and compiling the code there is “avr-gcc“. Or if you are familiar with CodevisionAVR on windows, you can install the same using “wine”… but remember to configure “wine” for windows XP before installing.

Note: I tried to program using Linux on VMware on windows 7… but it was not working.

Advertisements

What do you think??

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s