Hi,
I think you first have to erase the sector in which the page you want to program is.
But be careful with 0x0C000000, usually there is the NVIC and the reset handler address located, isn't it?
Regards
elm0
Edit:
BTW: I think the XMC_FLASH_UCBx defines are meant to be used in regards to the read/write protection or the BMI bootmode. In a context where you want to specify the flash address to program directly, you should use e.g. the XMC_FLASH_SECTOR defines
I think you first have to erase the sector in which the page you want to program is.
But be careful with 0x0C000000, usually there is the NVIC and the reset handler address located, isn't it?
Regards
elm0
Edit:
BTW: I think the XMC_FLASH_UCBx defines are meant to be used in regards to the read/write protection or the BMI bootmode. In a context where you want to specify the flash address to program directly, you should use e.g. the XMC_FLASH_SECTOR defines