Documentation for OpenOCD

Hi

Is there a complete documentation of all openocd commands?

I’ve searched the offical homepage but I didn’t find something.

I only found an openocd quick guide which is incomplete, e.g. the command

“load” isn’t documented in it.

I also have problems to configure the cfi flash driver.

flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
    Configures a flash bank at <base> of <size> bytes and <chip_width> and <bus_width> bytes using the selected flash <driver>.

My flash has a bus and chip width of 16bit. I read in the forum most people

use the value “2” for 16bit. Where is this documented? What values are

used for different bus-width?

I try to get flash debuging to work so I try to understand openocd but

sometimes it is not easy :frowning:

It would be great if someone could help me with this.

Best regards,

Hello Katagia,

you can find some information here:

http://openfacts.berlios.de/index-en.ph … le=OpenOCD

If you have downloaded OpenOCD from the YAGARTO side,

the installer (r247) will come with a new pdf. This pdf is build from

the tex file of the source tree.

If you have build OpenOCD by your own, take a look in

the doc directory of the source tree.

Regards,

mifi

Hello mifi.

Thank you for your replay. I read the pdf and it’s a good description

how jtag works generally. It must be a lot of work to get

openocd working and it’s great work for a diploma!

Unfrotunatly it down’t answer my questions.

Any other hints or resources?

Best regards, Tilo

Katagia:
I also have problems to configure the cfi flash driver.

flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
Configures a flash bank at <base> of <size> bytes and <chip_width> and <bus_width> bytes using the selected flash <driver>.



My flash has a bus and chip width of 16bit. I read in the forum most people

use the value "2" for 16bit. Where is this documented? What values are

used for different bus-width?

There may be some more explicit documentation somewhere, but everything that I have says almost the same thing that is in the “flash bank” comments in your quote above. That simply says that the “chip width” and “bus width” are specified in units of bytes. So, a 16 bit bus is TWO 8 bit bytes wide, the way that I read it?

–Dave

This is used used to specify the bus/chip width in number of bytes.

1 - 1byte (8bit bus)

2 - 2bytes (16bit bus)

The docs probably need updating.

Cheers

Spen

Thank you ntfreak.

I’ts easy when you know the number represents

the number of bytes :slight_smile: