USB rights

Some programming devices like AVRISPmkII requires rights on USB devices. This can be done by adding a rules file (provided in the archive):

sudo cp 60-avrisp.rules /etc/udev/rules.d/

For changes to be applied, restart USB services:

sudo service udev restart

Note that if an AVRISPmkII device is connected, unplug and replug.

Add the current user to the dialout group:

sudo usermod -a -G dialout $(whoami)

Close your session to apply changes.

Qt Creator project configuration

Previous steps have to be done only once. But the following has to be done every time a new project is created. Create a new Arduino project through the Wizard. Once the project is created, go in the menu Tools>Option, change the terminal to xterm :

In the project Tab (left of the screen) select Build Settings. Add /src at the end of the build directory :

In build steps (if it not already done) select make all:

In Clean steps, select make clean:

Go to the second tab : Run Settings, and set the following parameters:

I appreciate your post on using QTCreator to program arduinos. Like many other people I ran into the problem of avrdude not communicating with the arduino when called directly. The solution was to set the baud to 57600. I guess that’s the expected default .

Thank you for you feed back. To the best of my knowledge, Arduino does not support debugging via USB interface. You can debug with AVR tools but I think it will be hard to link with Qt-Creator. Automatic port monitoring is possible, after programming the Arduino, you can launch a serial terminal (for example a command line serial terminal), but I never find this solution very satisfying. We developed a small software named pandarduino for monitoring the port and the terminal. You can download the archive by clicking here. I’m sorry because explanations are in french !