# full cloning one fully functional RCM4000 to a new RCM4000 Board

**URL:** <https://forums.digi.com/t/full-cloning-one-fully-functional-rcm4000-to-a-new-rcm4000-board/18204>\
**Category:** Rabbit Software\
**Tags:** rcm4000\
**Created:** [April 3, 2017, 8:46am UTC](https://forums.digi.com/t/full-cloning-one-fully-functional-rcm4000-to-a-new-rcm4000-board/18204 "2017-04-03T08:46:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mas93](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mas93](https://forums.digi.com/u/mas93)\
**Post date:** [April 3, 2017, 8:46am UTC](https://forums.digi.com/t/full-cloning-one-fully-functional-rcm4000-to-a-new-rcm4000-board/18204/1 "2017-04-03T08:46:43Z")

</div>

I wish to copy complete programme/codes etc from one fully functional RCM4000 board to a newly purchased empty RCM4000 board. Need to know which cloning product can be used and how to do it? Please help.

thanks

---

<div class="post-metadata">

**Author:** ![TomCollins](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/tomcollins/32/37_2.png) [@TomCollins](https://forums.digi.com/u/TomCollins)\
**Post date:** [April 3, 2017, 6:51pm UTC](https://forums.digi.com/t/full-cloning-one-fully-functional-rcm4000-to-a-new-rcm4000-board/18204/2 "2017-04-03T18:51:03Z")

</div>

When at all possible, you should use a binary image generated by Dynamic C for programming new core modules. You can compile to a file from your original source code using Dynamic C.

If you absolutely need to copy the compiled program from existing hardware, you’ll need to use Dynamic C to compile a program to RAM that you can use to read firmware from flash.

The RCM4000 has an Ethernet interface, so you could use this sample ([https://github.com/digidotcom/DCRabbit\_10/blob/master/Samples/tcpip/http/download\_flash.c](https://github.com/digidotcom/DCRabbit_10/blob/master/Samples/tcpip/http/download_flash.c)) to download a copy of the entire boot flash.

You would still need to extract the firmware image from the downloaded “boot.bin”. You can use Samples/RemoteProgramUpdate/firmware\_report.c to find out how big the firmware image is, and then truncate boot.bin to that size for a binary you should be able to install with the Rabbit Field Utility (RFU).

---

<div class="post-metadata">

**Author:** ![mas93](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mas93](https://forums.digi.com/u/mas93)\
**Post date:** [April 4, 2017, 3:52pm UTC](https://forums.digi.com/t/full-cloning-one-fully-functional-rcm4000-to-a-new-rcm4000-board/18204/3 "2017-04-04T15:52:05Z")

</div>

Can I contact you in private; please suggest your email or contact at [mas93sam@gmail.com](mailto:mas93sam@gmail.com)

---

<div class="post-metadata">

**Author:** ![Dimskl](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@Dimskl](https://forums.digi.com/u/Dimskl)\
**Post date:** [September 25, 2017, 10:47am UTC](https://forums.digi.com/t/full-cloning-one-fully-functional-rcm4000-to-a-new-rcm4000-board/18204/4 "2017-09-25T10:47:37Z")

</div>

Hello, we have similar situation, bought some fm transmitter this year and last months manufacturer broke. We have one RCM4000 died, but have other equipment to clone. I´m not a specialist so could you please help me with more instructions to [dimskl@yahoo.com](mailto:dimskl@yahoo.com)

---

<div class="post-metadata">

**Author:** ![BeGi](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@BeGi](https://forums.digi.com/u/BeGi)\
**Post date:** [March 17, 2023, 8:08am UTC](https://forums.digi.com/t/full-cloning-one-fully-functional-rcm4000-to-a-new-rcm4000-board/18204/5 "2023-03-17T08:08:45Z")

</div>

Dear Tom,  
I have similar problem with RCM4000, unfortunately I am a beginner without experience.  
The problem is that I have a functional unit with the program, but I lost my bin file. Now I would need to clone the new unit from the RCM function unit.  
I am with your instructions but without success. It writes a mistake.  
Can you send me a more detailed procedure How to clon the unit or save the program/code?  
I use Dynamic C and Rabbit Field utility software. Is there other software?

Thank you in advance for your support.  
Best regards

Begi

---

<div class="post-metadata">

**Author:** ![TomCollins](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/tomcollins/32/37_2.png) [@TomCollins](https://forums.digi.com/u/TomCollins)\
**Post date:** [March 18, 2023, 6:57pm UTC](https://forums.digi.com/t/full-cloning-one-fully-functional-rcm4000-to-a-new-rcm4000-board/18204/6 "2023-03-18T18:57:52Z")

</div>

Please try the `extract_flash.c` sample from the Dynamic C 10 GitHub repository:

> <https://github.com/digidotcom/DCRabbit_10/blob/master/Samples/extract_flash.c>

Follow the directions in the sample to compile the program to RAM (to avoid erasing the existing flash content). It will print the firmware image or entire flash to STDOUT as base64-encoded text. You can easily decode that text to get a binary image.

I recommend using Dynamic C 10.72E (the latest release) to get the file.
