I use the RX62n and the Renesas Flash API.
Writing to the dataFlash block BLOCK_DB0 or BLOCK_DB1 from the RAM, e.g. a local array with some variables, is no problem via R_FlashWrite() Function. Everything works fine.
Now I want to write to the dataFlash block BLOCK_DB0 from an other dataFlash block (BLOCK_DB1). So basicly a copy from Block BLOCK_DB1 to Block BLOCK_DB0. If I first read from BLOCK_DB1 to a local array and then write from the local array to BLOCK_DB0 it works just fine.
If I try to write directly from block BLOCK_DB1 to BLOCK_DB0 (write from start address to start address) then no error is returned, but the block BLOCK_DB0 contains only zeros.
Any idea what the problem is? Is it even possible to do that without first reading and readit in the RAM?
In reply to FrankL:
In reply to Benjamin:
Did you see this?
220.127.116.11 Data Flash P/E ModesThese modes are for programming and erasure of the data flash memory. Reading out the data flash is not possible.Data flash P/E normal mode, data flash status read mode, and data flash lock-bit read mode are the three data flash P/E modes
It is not possible to have a memory block in P/E AND read mode at the same time. If you enable P/E mode on all data blocks you cannot copy from DB1 to DB0 because you cannot read DB1 as soon as you set FENTRYD bit.
In reply to Mike Clements: