[mc1322x] Contiki hello-world example

Andrew Pullin pullin at berkeley.edu
Wed Jun 9 14:11:15 EDT 2010


Try using my python implementation : 
http://andrewpullin.org/tools/mc1322x/red-bsl.py
The syntax is largely the same. You'll need to install python-serial 
from apt.
flasher.bin and ssl.bin are both int he same directory, if you're doing 
write-to-flash.

And make sure nothing else might be interfering with the ports. brltty 
is a common suspect.

-Andrew

On 6/9/2010 2:21 AM, Daniel Berenguer wrote:
> This is very weird... It's finally an USB-related problem.
>
> The problem is reproduced only on my Ubuntu 8.04 machine. On this PC,
> small bin images (blink-green ) can be uploaded without problems via
> mc1322x-load.pl. However, bigger images like the contiki examples seem
> to return "done sending files" earlier than expected.
>
> On my laptop, under Ubuntu 9.10 and 10.04 both "hello-world" and
> "blink" contiki examples can be loaded into the econotag through
> serial just fine.
>
> As the binaries are the same, I think that the problem is in that
> Ubuntu 8.04 uses libusb0 instead of libusb1 so perhaps there is a
> limited support for the FT2232H IC. libusb0 is also incompatible with
> OpenOCD so I can not use the JTAG interface on the 8.04 PC either.
>
> Has anyone shortcut this limitation on 8.XX Ubuntu versions?
>
> Thanks!
>
> Daniel.
>
>
> On 8 June 2010 18:31, Mariano Alvira<mar at devl.org>  wrote:
>    
>> On Tue, Jun 08, 2010 at 05:57:13PM +0200, Daniel Berenguer wrote:
>>      
>>> Thanks a lot Mar for your fast reply.
>>>
>>> I've been able to make the hello-world work a couple of times thanks
>>> to your remarks. However, after re-building the app with some minor
>>> changes (now reverted to the original example) the hello-world app no
>>> longer works. Mar, does the blink example work out of the box too? It
>>> doesn't work in my case either...
>>>        
>> Yes, it should.
>>
>>      
>>> Perhaps all this is due to some possible USB problems on my PC so I'm
>>> going to do the test on a different PC and will try to flash the
>>> example through JTAG too.
>>>        
>> Hmm... it's possible. Although if this were the case, and it has
>> worked before, then I'd expect some of the loads to work and some not
>> too regardless of changes to the code.
>>
>> -Mar.
>>
>>      
>
>
>    




More information about the mc1322x mailing list