User`s manual

RX600 & RX200 Series Simple Flash API for RX
R01AN0544EU0250 Rev.2.50 Page 23 of 33
March 4, 2014
Example
uint8_t ret;
uint8_t write_buffer[PROGRAM_SIZE] = “Hello World...”;
/* Write data to internal memory. */
ret = R_FlashWrite(address, (uint32_t)write_buffer, PROGRAM_SIZE);
/* Check for errors. */
if (FLASH_SUCCESS != ret)
{
. . .
}
Special Notes:
The programming sizes for different RX MCUs are shown in the table below.
MCU
ROM
Programming Line Size
Data Flash
Programming Line Size
RX61x & RX62x Groups 256 bytes 8 or 128 bytes
RX63x Groups 128 bytes 2 bytes
RX210 Group 2, 8, or 128 bytes 2 or 8 bytes
If you are writing a data flash block then make sure you have enabled modifications of the data flash block by
calling the R_FlashDataAreaAccess() function.