Flash programming broken?

I upgraded to latest svn version and recompiled to try and fix some other problem I had. Now all my scripts for flashing the part fails because the command set used for flash programming seems to be reworked.

The svn history tells a tale of command changing names, but this does not work.

How does the new flash programming stuff work?

All the lastet committs should be considered experimental, because of the large number of changes.

The new flash programming syntax is already documented in the OpenOCD wiki at http://openfacts.berlios.de/index-en.ph … D_commands, but apparently there’s a bug in the flash writing code. This problem is currently being investigated.

The major change is that flash programming can now be flash bank dependant: flash write_binary

This is limited to writing plain binaries, because more complex images could specify addresses that belong to more than one bank.

The second variant is target dependant, i.e. it writes to all the flash banks defined for the current target:

flash write_mage [offset] [type]

This writes an image (bin, ihex, elf, s19) to the current target’s flash(es), possibly relocated by an [offset].

Because flashes now invariably belong to a target, the syntax of two flash drivers changed, too:

#flash bank lpc2000 0 0 <target#> [calc_checksum]

#flash bank str7x 0 0 <target#>

The target# and the variant fields switched place, because target# now needs to be specified for each bank. The driver specific arguments (variant, cclk) follow after the generic arguments.

Regards,

Dominic