What could be the problem that I'm not able to erase my chip by clicking Flash > erase?
If I select Erase Full Chip within the Flash Download Setup menue (options for target -> utilities) -> I'm not able to erase the chip or program the chip...
If I select Erase Sectors -> I'm able to erase and programm the chip...
I've an external Flash IC with 4MB.
Programming Algorithm AT49xV32x Flash Ext. Flash 16Bit 4M 0x10000000 size 0x00400000
I use the AT91Rm9200 controller from Atmel.
Bernd
Have you enabled any code-protection mode that doesn't allow erase of some sectors of the flash, such as a boot loader or configuration sector?
I don't work with the Atmel chip, but code protection is quite generally available for flash-based chips.
right there's a code protection mode installed.. So I have no chance to disable this
It is important to remember that setting either the Persistent Sector Protection Mode Locking Bit or the Password Mode Locking Bit permanently selects the protection mode. It is not possible to switch between the two methods once a locking bit is set. It is important that one mode is explicitly selected when the device is first programmed, rather than relying on the default mode alone.
www.spansion.com/.../s29gl-n_00_b6_e.pdf
thanks for the hint...
By the way could it be possible that a program could installed variable (local or global) to this protection area - or is that not possible? Or which changes do I have to made in the linker script file, that it is not possible to install something in the protection mode?