ok - from AVR studio I can access (read and wirte flash, the fuses too) the mega 328 chip sitting on an breadboard using an external ISP programmer.
After verifying this I want flash my sketches from ARDUINO IDE using the upload button. Changed upload.using bootloader
following the instructions in http://www.arduino.cc/en/Main/Programmer
I end up with:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error: expect 0x41: resp=0x51
What do I have to change and where?
BTW: where do I find the .hex files of the sketches? If all went wrong I could burn the chips via Studio. But still hoping there is a direct way from within Aduino IDE.