Which is also strange, if I try to upload the "am" from Arduino with bassac 1.9.1 it doesn't work either.
Bassac 1.6.1 works without any problems. Assuming I reset the com port beforehand.
To make it easier, I've written a utility program:
procedure TForm1.DUEClick(Sender: TObject);
const
bos161 = '/home/tux/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino/bossac';
bos191 = '/home/tux/Schreibtisch/BOSSA-1.9.1/bin/bossac';
binMIR = '/n4800/DATEN/Programmierung/Lazarus/Tutorials/Embedded/ARM/Arduino_DUE/von_MIR/Project1.bin';
binArduino = '/tmp/arduino_build_303924/Blink.ino.bin';
com = 'ttyACM0';
var
SerialHandle: TSerialHandle;
begin
if not Assigned(RunCommandForm) then begin
RunCommandForm := TRun_Command_Form.Create(nil);
end;
SerialHandle := SerOpen('/dev/' + com);
SerSetParams(SerialHandle, 1200, 8, NoneParity, 1, []);
SerSetDTR(SerialHandle, True);
SerSetDTR(SerialHandle, False);
Sleep(500);
SerClose(SerialHandle);
Sleep(500);
// RunCommandForm.RunCommand(bos191 + ' --port=' + com + ' -U false -e -w -v -b ' + binArduino + ' -R');
RunCommandForm.RunCommand(bos191 + ' -e -w -v -b ' + binArduino + ' -R');
end;
What is also strange, if I try to upload the "am" from Arduino with bossac 1.9.1, it doesn't work either.
With bossac 1.6.1 there is no problem. Assuming I reset the com port beforehand.
To make it easier, I've written a utility program:
By the way, whoever I try with sleober (Arduino plugin for Eclipse) doesn't want the DUE either, although bossac 1.6.1 is used there.