Hello,
I suspect that the input address to the function is being read as an integer value and hence, writing to an undefined address.
Better will be to use a #define for the address, or write in the hex format.
Another suggestion is to always erase the Flash page before any programming.
Therefore your code should be:
Regards,
Min Wei
I suspect that the input address to the function is being read as an integer value and hence, writing to an undefined address.
Better will be to use a #define for the address, or write in the hex format.
Another suggestion is to always erase the Flash page before any programming.
Therefore your code should be:
Code:
// Erase Flash page before writing to the block
XMC_FLASH_ErasePage(0x10009000);
// Address I verified wasn't used by the program, pointer to the location of data, # of blocks, verify
XMC_FLASH_WriteBlocks(0x10009000, parameter, 1, 1);
Min Wei