Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: RX64M Problem with code flash self-programming

$
0
0
UPDATE the code below shows what i am doing. But lockbit_state always stays PROTECTED. This only happens if i try this with blocks with program code. Unused/empty blocks f.e. FLASH_CF_BLOCK_100 return state UNPROTECTED.   while(1) {         flash_res_t lockbit_state;         ret = R_FLASH_Control(FLASH_CMD_LOCKBIT_DISABLE, NULL);         if (FLASH_SUCCESS != ret) {             while (1);         }         ret = flash_lockbit_read(FLASH_CF_BLOCK_84, &lockbit_state);         if (FLASH_SUCCESS != ret) {             while (1);         }         if(FLASH_RES_LOCKBIT_STATE_PROTECTED != lockbit_state)         {             break;  //------------------ OK         } } Somebody have ideas???????

Viewing all articles
Browse latest Browse all 59170

Trending Articles