RX62N write data in internal memory instead of eeprom

Hi all ,

i have an RX62N   i am able to write/read  data in external  eprom  . Now i have a little problem

if i use the NMI ( setting vdet2  ) on power off  i have not sufficient time to write this data about 10 words  and can write just 3/10 

i just want to know if i can acces  for store and read in internal memory ..... thinking is more fast!

  • MarFrap,

    Have you found an answer to your question?

    Mike Clements
    RenesasRulz Moderator
  • This is a typical RTFM question.
    There is no reference how fast read or write of external flash is.
    Internal flash is read at PCLK speed without wait.
    Write of internal flash is done in 8 or 128 byte blocks. Writing an 8 byte block takes typ. 0.4ms, max. 2ms.
  • In reply to FrankL:

    but i dont want to know the time i want to know HOW write on internal memory to store and read data ……. didint find any example untill now
  • In reply to Mike Clements:

    note yet unfortunately
  • In reply to MarFrap:

    On the Renesas homepage is an application note showing how to use FIT library with e2 studio and CC-RX ...
    ... and another sample for a simple Flash API for HEW or e2 studio and CC-RX
  • In reply to FrankL:

    thanks i will try to study the second document ….. but at first glance there isnt code sample but just api .
  • In reply to FrankL:

    i just want to find an example how to use the flash like eprom..... and during ongoing operation i want to write 1 byte in the flash data and then read this byte. can someone help me with a simple example???
  • In reply to FrankL:

    unlickely i'm not able to do point 3 and 4 ......
    so cant finish other points:(
    Follow the steps below to add the middleware’s code to your project.
    1. Copy the ‘r_flash_api_rx’ directory (packaged with this application note) to your project directory.
    2. Add src\r_flash_api_rx.c to your project.
    3. Add an include path to the 'r_flash_api_rx' directory.
    4. Add an include path to the 'r_flash_api_rx\src' directory.
    5. Copy the reference configuration file 'r_flash_api_rx_config_reference.h' from the ‘ref’ folder to your project and rename it r_flash_api_rx_config.h.
    6. Configure middleware for your system through just copied r_flash_api_rx_config.h.
    7. Add a #include for r_flash_api_rx_if.h in any source files that need to use the Flash API.
  • In reply to MarFrap:

    hi use hew and not e2 studio
  • In reply to MarFrap:


    Are you having trouble including the r_flash_api_rx to your project?
    What version of HEW do you use?

    Mike Clements
    RenesasRulz Moderator
  • In reply to Mike Clements:

    hi is my version …… the problem is that i created my project using pdg2 driver generator ……. so for example in the specific case if i try to include ….. there are a lot of error …… missing iodefine missing Platform.h and so on…… it's really difficult to integrate this api if the project is done using pdg2 . :(:(
  • In reply to MarFrap:

    Please try this example. It is an earlier version of application note r01an0544 that does not use FIT library.


  • In reply to FrankL:

    HI , first off all really thanks for your reply ,
    i ve tryed to merge this application node and i think that now i'm able to store data in flash during execution of program.
    With HEW i have opened the memory map but i cant find where the stored data are located …… i will try to understand better this and than tell u if all is good or some problems occurres .
    thanks a lotttt
  • In reply to MarFrap:

    wowwww now all is working ……. understand everithing ….. really really many thankssssss
  • In reply to FrankL:

    but after a restart of micro some byte on data flash are overwritten its possible to reserve a part of flash and change it just with command R_FlashWrite ???'??