Thanks for your answer. I am not sure I completely understand, in intflash.lcf file I read
___FLASHX_START_ADDR = (_flashx_start + 0xfff) / 0x1000 * 0x1000;
___FLASHX_END_ADDR = ___INTERNAL_FLASH_BASE + ___INTERNAL_FLASH_SIZE;
and
___INTERNAL_FLASH_BASE = 0x00000000;
___INTERNAL_FLASH_SIZE = 0x00080000;
thus, the flashx end is at 0x00080000 and I am not trying to write in locations greater than that
(in my example I try at 0x0007E000).
then, I found
_flashx_start = __COPY_OF_DATA + SIZEOF(.main_application_data) +
SIZEOF(.romp);
I figured this is the size of the program code, and although I dont know the actual number,
I am almost sure the code program does not use memory after 0x0007E000(because the program is small).
Then, what could be causing the error?, How come I never see flash changing when debugging(even without changing the example to 0x0007E000. If the examples writes at 0x2400 I go to that address with the view memory option and I dont see anything changing.)?
I also found this definition at BSP libraries:
BSPCFG_FLASHX_SIZE = 0x4000
Why do I have to define that if it is already defined in intflash.lcf file?
Hope you can help me. Regards.