Hi Fernando,
in a first step, please look into the attached appnote, maybe it provides the missing piece of information.
If not, just come back and I'll look for more details. I'm missing the sample code the appnote is referring to.
>> I read that I have to write 0x7FFFFFFF in some part of the flash but I cannot do it
"Writing to flash" of course means that you need to program specific memory locations, I think in the index sector.
Btw, if you have a need for LPC2900 boards (from Keil or Hitex) I have many of them in my office in Munich, more or less to be trashed.
Regards,
Bernhard.
Update: found some code for the LPC2900 and attached it.