This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

f28069 flash program (flash api)

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?