User`s manual
RX600 & RX200 Series Simple Flash API for RX
R01AN0544EU0250 Rev.2.50 Page 26 of 33
March 4, 2014
Example
uint8_t ret;
/* Blank check an entire data flash block. */
ret = R_FlashDataAreaBlankCheck(address, BLANK_CHECK_ENTIRE_BLOCK);
/* Check result. */
if (FLASH_NOT_BLANK == ret)
{
/* Block is not blank. */
. . .
}
else if (FLASH_BLANK == ret)
{
/* Block is blank. */
. . .
}
Special Notes:
The blank check sizes for different RX MCUs are shown in the table below.
MCU Blank Check Sizes
RX610 8 bytes or Entire Block (8KB)
RX62x 8 bytes or Entire Block (2KB)
RX63x 2 bytes or Entire Block (2KB)
RX210 2 bytes or Entire Block (2KB)
Earlier versions of this API had the option to use BLANK_CHECK_2_BYTE or BLANK_CHECK_8_BYTE
depending on which MCU was being used. The use of these macros has been deprecated in favor of use of
the BLANK_CHECK_SMALLEST macro. Use of BLANK_CHECK_2_BYTE or BLANK_CHECK_8_BYTE will
still work with no issues.