Creating a custom chip programmer, similar to PG-FP6/5

Hello, 

We wish to create a standalone field tool for upgrading Renesas RX family chips via an exposed FINE interface (specifically, for the R5F51138 target device).

Rather than building the firmware updating/verifying functionality from the ground up, we were wondering if any libraries or other source code implemented in any Renesas updating tools such as the PG-FP6/5 could be made available to us to speed up development. If anyone has any information in regards to this, it would be much appreciated if you could share. 

Regards,

C