User`s manual
RX600 & RX200 Series Simple Flash API for RX
R01AN0544EU0250 Rev.2.50 Page 2 of 33
March 4, 2014
1. Overview
The Simple Flash API is provided to customers to make the process of programming and erasing on-chip flash areas
easier. Both ROM and data flash areas are supported. The API in its simplest form can be used to perform blocking
erase and program operations. The term ‘blocking’ means that when a program or erase function is called, the function
does not return until the operation has finished. When a flash operation is on-going, that flash area cannot be accessed
by the user. If an attempt to access the flash area is made, the flash control unit will transition into an error state. For
this reason ‘blocking’ operations are preferred by some users to prevent the possibility of a flash error. But there are
other cases where blocking operations are not desired. If the user is writing data to the data flash for example, the ROM
can still be read. In this case many users would like for the data flash write or erase to occur in the background (non-
blocking) while their application continues to run in ROM. RX600 and RX200 Series MCUs support this feature and it
is available in the Simple Flash API. The user can also perform non-blocking ROM operations as well, but application
code will need to be located outside of ROM.
1.1 Features
Below is a list of the features supported by the Simple Flash API.
• Blocking erasing and programming of User ROM
• Non-blocking, background operation, erasing and programming of User ROM
• Blocking erasing, programming, and blank checking of data flash
• Non-blocking, background operation, erasing, programming, and blank checking of data flash
• Callback functions for when flash operation has finished (only with non-blocking)
• ROM to ROM transfers
• Data flash to data flash transfers
• Lock bit protection
• Lock bit set/read