[mc1322x] CodeSourcery , flash loader

Mariano Alvira mar at devl.org
Thu May 6 07:49:34 EDT 2010


On Wed, May 05, 2010 at 07:09:16PM -0700, Andrew Pullin wrote:
> On 05/02/2010 11:03 AM, Mariano Alvira wrote:
>>    
> Ah, ok, OpenOCD seems to work, for the most part. If I connect via gdb,  
> I can load & run a program as per the instructions on the site.  
> Unfortunately, debugging doesn't seem to be working? If I do a "break  
> main", and then "continue", it won't work right:
>     Warning:
>     Cannot insert breakpoint 8.
>     Error accessing memory address 0x400982: Unknown error 4294967295.
>
> Single instruction stepping seems to work and output the proper source  
> lines, but OpenOCD occasionally generates "Error: address + size  
> wrapped(0xfffffffe, 0x00000004)" .
>
> I'm using a development version of OpenOCD, 0.5.0-dev-00191-gcc5f3c8,  
> built with --enable-maintainer-mode . Have you gotten breakpoints and  
> debugging to work fully?

Yes, that should work. OpenOCD does change and break stuff frequently
though. What kernel are you running? There is a bug in the ftdi driver
for the FT2232H that has been fixed since 2.6.31 --- it caused data to
be lost randomly (also caused dropped serial characters). If you
aren't running a newer kernel then I'd try that before trying a
different version of OpenOCD.

I know this commit is good: 0324eb24967088f753bc2fd997b4c18f4ea988c8

So if it is Openocd you can bisect against that.

>
>>> If the Econotag has onboard JTAG, does that mean that there's a way to
>>> do a similar thing with the redbee-dev, not needed a JTAG pod?
>>>      
>> Yes, you plug in an EconoTAG and run:
>>
>>     openocd -f board/redbee-econotag.cfg
>>    
> That seems to work for the Econotag, but the small redbee + dev board  
> only enumerates one USB->serial device when I plug it in, which seems to  
> be the communication UART.

Ah, I think I misunderstood/misread your question. The module has it's
JTAG pins on the top and no JTAG controller. The dev board doesn't
hook into JTAG at all --- so for the redbee + dev combo you need an
external JTAG pod.

-Mar.



More information about the mc1322x mailing list