mruby/cのvmはCode FlashにおいてmrbはData Flashにおくようにしてみました。
R5F52108ADFPの場合Code Flashの書き込み回数は1000回ですが、Data Flashは100000回です。
Renesas Flash Programmerのcliで焼いてみます。
C:\Program Files (x86)\Renesas Electronics\Programming Tools\Renesas Flash Progr
ammer V3.16>rfp-cli.exe -d rx200 -port COM32 -a C:\Users\hiroki\Downloads\hoge.
mot C:\Users\hiroki\Downloads\main.mot
Renesas Flash Programmer CLI V1.10
Module Version: V3.16.00.000
Load: "C:\Users\hiroki\Downloads\hoge.mot" (Size=514, CRC=E9C1492D)
Load: "C:\Users\hiroki\Downloads\main.mot" (Size=333508, CRC=69B28360)
Connecting the tool (COM port)
Tool: COM32
Interface: 2 wire UART
Connecting the target device
Main Clock: 32 MHz
Speed: 57,600 bps
[Warning] ID Authentication is disabled
Connected to RX200 Series
Erasing the target device
[Data Flash 1] 00100000 - 00101FFF
[User Boot Area 1] FF7FC000 - FF7FFFFF
[Code Flash 1] FFF80000 - FFFFFFFF
[Data Flash 1] 00100000 - 001007FF
[Code Flash 1] FFF80000 - FFF9BFFF
[Code Flash 1] FFFFF000 - FFFFFFFF
Writing data to the target device
[Data Flash 1] 00100000 - 001000FF
[Code Flash 1] FFF80000 - FFF9B1FF
[Code Flash 1] FFFFFF00 - FFFFFFFF
Verifying data on the target device
[Data Flash 1] 00100000 - 001000FF
[Code Flash 1] FFF80000 - FFF9B1FF
[Code Flash 1] FFFFFF00 - FFFFFFFF
Disconnecting the tool
Operation successful
これはうまくいったのですが、mrbのData Flashだけ書き込むと起動しなくなります。
C:\Program Files (x86)\Renesas Electronics\Programming Tools\Renesas Flash Progr
ammer V3.16>rfp-cli.exe -d rx200 -port COM32 -p C:\Users\hiroki\Downloads\hoge.
mot
Renesas Flash Programmer CLI V1.10
Module Version: V3.16.00.000
Load: "C:\Users\hiroki\Downloads\hoge.mot" (Size=514, CRC=E9C1492D)
Connecting the tool (COM port)
Tool: COM32
Interface: 2 wire UART
Connecting the target device
Main Clock: 32 MHz
Speed: 57,600 bps
[Warning] ID Authentication is disabled
Connected to RX200 Series
Erasing the target device
[Data Flash 1] 00100000 - 001007FF
Writing data to the target device
[Data Flash 1] 00100000 - 001000FF
Disconnecting the tool
Operation successful
なんでだろう?