Hmm..I thought I need to write the comX port to the command yet. I saw in the device manager under Windows that the ports where the device was jointed are com10 and com11. So it seems I was wrong! Cause I tried what you wrote! And it was working, but I got another message:
xubun...@xubuntos-tinyos:~/Desktop/mikay$ uisp -dprog=mib510 -dserial=/dev/ttyUSB0 --wr_fuse_h=0xd9 -dpart=ATmega128 --w Firmware Version: 1.8 Probably the AVR MCU is not in the RESET state. Check it out and run me again. Why did I get this message? Thanks! Peter Kokai 2009/3/12 Janos Sallai <[email protected]> Peter, > > I guess the port you specified is wrong: > > xubun...@xubuntos-tinyos:~/Desktop/mikay$ uisp -dprog=mib510 > > -dserial=/dev/tty9 --wr_fuse_h=0xd9 -dpart=ATmega128 --w > > The mib520 shows up as two serial ports under linux, typically > /dev/ttyUSB0 and /dev/ttyUSB1. You need to specify the lower one if > you want to program the mote and the higher one to communicate with > it. > > Janos > > > On Thu, Mar 12, 2009 at 8:07 AM, Péter Kókai <[email protected]> wrote: > > Thx Kaisen the help! > > > > But I have a new problem after this! A try this command in the folder > > containing the hex file, and I don't get any error message, so this is a > > good new! =) > > But after this I get this message: Programmer is not responding! > > > > xubun...@xubuntos-tinyos:~/Desktop/mikay$ uisp -dprog=mib510 > > -dserial=/dev/tty9 --wr_fuse_h=0xd9 -dpart=ATmega128 --w > > Programmer is not responding. > > > > I thought that maybe the file format is not good, so I convert the hex > file > > to .srec file as you wrote! > > But the same result! > > I tried to change the port: I use the com10 and com11: I tried both of > them, > > but the same result I got! > > Can somebody help me to find the solution? > > I'm starter in these things: tinyos, micaz and mib520! > > > > Thanks > > Peter Kokai > > > > > > > > > > 2009/3/11 Kaisen Lin <[email protected]> > >> > >> You need the uisp program, and the command is: > >> > >> uisp -dprog=mib510 -dserial=/dev/ttyUSB0 --wr_fuse_h=0xd9 > -dpart=ATmega128 > >> --w > >> r_fuse_e=ff --erase --upload if=main.srec --verify > >> > >> Make sure you to check what your USB port is. There are two (one for > >> programming, one for communication, use the first one). The file in this > >> case is main.srec. Your hex file might work, but I'm not 100% sure. You > can > >> try it. If not, just convert it to an srec. > >> > >> Kaisen > >> > >> ----- "Péter Kókai" <[email protected]> wrote: > >> > >> > Hi all! > >> > > >> > I have a micaz mote, and a MIB520 programming board! > >> > And my problem is, that I have a program what was write with AVRStudio > >> > 4 in Assembly, cause I have to use this language. It generated a .hex > >> > file! And I should upload this file to the mote! > >> > I thought that I can do this with tinyOS, but I couldn't! I tried to > >> > figure out a solution but I wasn't successful yet! > >> > Is there any chance to do this with TinyOs? To upload a .hex file to > >> > the mote? > >> > > >> > Thanks & Regard > >> > Peter Kokai > >> > _______________________________________________ > >> > Tinyos-help mailing list > >> > [email protected] > >> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > > > > -- > > Üdv: Kókai > > ___ > > Have a Nice Night!!! > > > > _______________________________________________ > > Tinyos-help mailing list > > [email protected] > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > -- Üdv: Kókai ___ Have a Nice Night!!! -- Üdv: Kókai ___ Have a Nice Night!!!
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
