Hello,

Am 17.03.2011 13:45, schrieb Drasko DRASKOVIC:
> 1) In openocd/src/target/mips_m4k.c we can see that target endianess
> is checked and treated only mips_m4k_bulk_write_memory() in  and not
> mips_m4k_write_memory() and mips_m4k_read_memory(). Why is this so ?
> (It leads to wrong SDRAM setup, as mww and mdw commands make no sense
> in my case, because mips_m4k_write_memory() is called and my taget is
> big endian).

You need to call target.c:target_buffer_get_u32 and the other functions to 
convert your data to the
correct endianness.

> 2) When is mips_m4k_bulk_write_memory() actually called ? Obviously
> from my tests - not always. I can see it called when I am trying to
> load bigger files into SDRAM, but for smaller directly
> mips_m4k_write_memory() is called (and thus endianess is never
> treated). How does this fast_write actually works in MIPS case ?

Bulk is called on aligned data and a length > 128 bytes if i remember correct
(target.c:target_write_buffer).

> 
> 3) Can we conclude based on this that big endian targets for MIMPS are
> not supported in the current OpenOCD implementation ? Did anyone had
> sucess running OpenOCD eith big endian target and how is it done in
> this case, having in mind problems I pointed out.

The dsp56k is big endian. See 1)



Regards,

Mathias
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to