Javier,

UISP does not support newer AVR microcontrollers. You will need to use
avrdude. If you have TinyOS 2.1 properly set up, avrdude should be
installed. The man page has all the information you need to read the
fuses.

Janos

2009/5/18 Javier Barbarán <[email protected]>:
> Hi again Janos,
>
> I have just recibed the Iris OEM PCB, and the first thing I tried to do has
> been to read the fuses, so I connected properly to MIB520, and I get the
> following output:
>
> $ uisp -dprog=mib510 -dserial=/dev/ttyS2 -dpart=ATmega128 --rd_fuses
> Firmware Version: 1.8
> Atmel AVR similar to the ATmega103 is found.
>
> Fuse Low Byte      = 0xc2
> Cannot read high fuse bits on this device. Returning 0xff
> Fuse High Byte     = 0xff
> Cannot read extended fuse bits on this device. Returning 0xff
> Fuse Extended Byte = 0xff
> Cannot read calibration byte on this device. Returning 0xff
> Calibration Byte   = 0xff  --  Read Only
> Lock Bits          = 0xff
>     BLB12 -> 1
>     BLB11 -> 1
>     BLB02 -> 1
>     BLB01 -> 1
>       LB2 -> 1
>       LB1 -> 1
>
> So I cannot read all the fuses because of it seems that it is detecting a
> ATMega103 device instead ATMega 1281 or at least 128... so.. Do you think
> I'm doing something wrong?
>
> Thanks in advance again,
>
> Javier.
>
> Janos Sallai escribió:
>
> Javier,
>
>
>
> I didn't know anything about stk500 or avr isp mkII, are they
> specific-programmers?
>
>
> Yes, they are in-system programmers from Atmel. Typically, you don't
> have a 51-pin mote connector in your embedded design, so you fall back
> to the programmers supplied by the mcu manufacturer.
>
>
>
> And I was wondering whether I could use the standard make iris install.1
> mib520,COM3,
> or maybe I could damage the mote?. Is it necessary to change the fuses, the
> company that
> made for us the circuit told that we had to put clkint and jtagen, that is
> fuse_l=0xc4 and
> fuse_h=0x19, because they tried with other configuration in a mote and they
> couldnt
> reprogram the mote anymore.
>
>
> I assume they didn't put an external oscillator on the PCB. This means
> that you need to set the fuses such that the internal RC oscillator is
> used for the MCU clock. The tinyos make system, by default, programs
> the fuses iris motes to use an external oscillator. These defaults
> would break your motes. You need to put the correct fuse values in
> your app specific Makefile:
> AVR_FUSE_L = 0xc4
> AVR_FUSE_H = 0x19
>
> Please note that I did not verify that the above values are correct, I
> just copied them from the mail you sent. I suggest that you experiment
> with the iris mote (not the OEM module) first -- it's harder to break.
>
> Janos
>
>
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to