At 5:42pm on Nov 14, electrons from Harri Siirtola conveyed:

> 
> I remember someone having this problem before but couldn't find a solution. I
> have connected a UART device to MicaZ UART 1. I did it in a somewhat "brutal"
> way, changing the HPLUART level to duplicate all UART traffic to/from both
> UARTs. This way I thought I could use all tinyos base mote applications with
> either UART. Now I noticed those apps that use flash access don't work while
> all others do (eg. TOSBase, TinyDB, SimpleCmd). For example, the Remote
> component can't find any files and I get "bad crc" when trying to write a file
> with "CopyIn.java". After removing my UART 1 functionality it works fine.
> 
> Is the flash access conflicting with UART 1?

Yes there is a pin conflict for the flash and the second 
UART interface on avr chip. (I am sure about mica2 but I 
haven't verified it for micaz but it seems their is a 
conflict)


In order to make it work you have to do a bit of gymnastics. 
In short you have to write a simple arbitration code to make 
sure only the flash or the uart device is using the pins at 
a given time. You may also be require to use a another pin 
(PIN or PORT G IIRC) to signal the uart device when to use 
the pins and when to keep them is tri-state. We have a 
working code for this, so let us know if you like to have 
it.


Sumit 

> 
> Thanks,
> 
>       Harri
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 

-- 
Nothing in the world can take the place of persistence.
Talent will not; nothing more common than unsuccessful men
with talent. Genius will not; unrewarded genius is almost a
proverb. Education will not; the world is full of educated
failures. Persistence and determination alone are
omnipotent.
        Calvin Coolidge
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to