Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

XMC_FLASH_WriteBlocks Stuck in Default handler in startup_XMC1300.S

$
0
0
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:

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);

Regards,
Min Wei

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>