Hi
Most tools give a warning about the value written to the security area but it shouldn't necessarily be an error.
Check your binary file (in a binary editor) that you are loading to see what it has at the addresses 0x400..0x4f
Typically it has
ff ff ff ff ff ff ff ff ff ff ff ff fe ff ff ff
where the 0xfe is the "unsecure bit".
If is is all 0xff simply modify the single byte to correct it.
If it is random looking data it is probable that the flash security settings are not being inserted correctly and it is random code, which is dangerous since it could write a pattern that makes the chip unusable because it cannot be programmed anymore. In this case you need to get the problem correct at the source.
It may turn out that the programmers are setting a pattern to intentionally set some level of security, in which case you need to find out why the programmer is not allowing it to be programmed (probably a setting in the tool somewhere which is trying to avoid 'presumbly' bad code from causing problems).
Regards
Mark