invalid command name "str9xpec"

I am using OpenOCD version:

Open On-Chip Debugger 0.4.0 (2010-10-08-15:42)

on Linux 2.6.35-22-generic-pae.

This is the version that I received when I did a standard “apt-get install openocd”.

Other commands have been working properly, and I can successfully program my board for normal operation (our chip is STR912).

Now, I am trying to set up a bootloader, using the example1 from ST (AN2475).

Several sources have said to use the str9xpec to configure the boot bank:

flash bank str9xpec [options]

However, first I have to send a series of commands such as

str9xpec enable_turbo 0

When I send any str9xpec command, I get:

invalid command name “str9xpec”

What am I missing here??

BTW, I downloaded and installed openocd 0.5.0, and I get exactly the same results:

Open On-Chip Debugger

str9xpec enable_turbo 0

invalid command name “str9xpec”

flash bank str9xpec 0x00000000 0x00080000 0 0 0

The ‘bank’ command must be used before ‘init’. in procedure ‘flash’

So how do I enter the commands necessary to load a bootloader on this chip??