could you tell me the case of below problem.
i am trying flash write program every 1byte using flash api.
when I wrote a sector's Address, the CPU reset.
this problem was often happened but always.
code is write 1byte. select String address.
flashw( char *pszaddr ) {
Long int iadr = 0x00000000;
uint16 *psadr;
iadr = strtol( pszaddr, null, 16 );
psadr = (uint16 *)iadr;
// argument 2,4 declaration is cutting.
Flash_program( psadr, &usdat, 1, &programstates );
return;
}
My address selection something wrong?