Pages: [1]   Go Down
Author Topic: flashing DUE with the help of bossac  (Read 497 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,
I see flashing the Arduino Due works with bossac, what is a great tool. So I want to flash the DUE only with this tool(without Arduino IDE, because for bigger projects this is not (I'm afraid to say this) the best way to work. So I call the programm bossac on the shell with the option to read from the arduino. I think it should work so, but it doesn't. There is always the exception: "Auto scan for device faliure"... So I want to give the port manually ( bossac -r0x10000 --port=/dev/ttyUSB3(I take this port from the arduino IDE) image.bin). Then I work with superuser rights, it also doesn't work

 So my question is:
How do the Arduino IDE call bossac to flash the DUE(I use Linux)? Does it already use bossac?
Or can anyone tell me where the code in java, which calls bossac, is?

Thanks for your help
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK found it. If anybody have the same problem,
I've wrote a very simple programm, to get all the overgiven parameters, so: now it works... Oh my god, it's to early in the morning. So if you want to know what bossac gets:
1) Write a simple C-programm callec "bossac": The Code is also very simple:
Code:
#include <stdio.h>
#include <stdlib.h>


int main(int argc, char **argv)
{
    printf("Argumentenliste:\n");
    while(argc--) {
        printf("%s\n ", *argv++);
    }
  return 0;
}
2) go to -> arduino->hardware->tools
3) rename the programm "bossac" to "~bossac"
4) copy the executable from your programm(also must be called bossac) to this folder your rename the other programm
5) start the arduino-IDE from the shell and write any code to the DUE( real flashing must not work!!)
6)in the shell you see the parameters given to bossac from the Arduino IDE...
Logged

Pages: [1]   Go Up
Jump to: