Guys, I am trying to control a target using a TI controller. It all used to work on an older version of Ubuntu (don’t remember which, but OpenOcd installed by apt-get on that system was version 0.3.1). Development had to be moved to the latest Ubuntu version, which is bundled with OpenOcd version 0.5.0
The problem is with this line in the old config file:
flash bank stellaris 0 0 0 0 lm4f232h.cpu
which causes this error generated by openocd on startup:
Error: usage: flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target>
flash bank bank_id driver_name base_address size_bytes chip_width_bytes
bus_width_bytes target [driver_options ...]
flash banks
flash list
mflash bank soc_type base_addr pin_id target
I tried to look into the most recent documentation, I see that there are flash and nand commands now, and I believe that this controller uses SPI flash, so the nand command needs to be used in the config. But I don’t seem to be able to figure out how to configure it.
Any clues/comments/suggestions would be highly appreciated!