[mc1322x] Contiki hello-world example

Jon Smirl jonsmirl at gmail.com
Wed Jun 9 08:46:03 EDT 2010


On Wed, Jun 9, 2010 at 5:28 AM, Daniel Berenguer
<dberenguer at usapiens.com> wrote:
> Sorry, I meant libftdi1, not libusb1.

I've long ago stopped using 8.04... Try downloading the source for
libftdi. Set the prefix to /usr/local and make, make install it. That
version will override the one in Ubuntu without disrupting your
up-to-date process.

There was a big rewrite in all of these tools around that time when
they switched from the old libusb to the new one.

It could also be a problem in the kernel driver for the 2232H chip.
The old driver may not know about the newer model chip.

It's a lot easy to just upgrade your Ubuntu.

>
> Daniel.
>
> On 9 June 2010 11:21, Daniel Berenguer <dberenguer at usapiens.com> 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.
>>>
>>
>>
>
> _______________________________________________
> mc1322x mailing list
> mc1322x at devl.org
> http://devl.org/cgi-bin/mailman/listinfo/mc1322x
>



-- 
Jon Smirl
jonsmirl at gmail.com



More information about the mc1322x mailing list