Arduino DUE copy program

I have a working Arduino DUE model R3 (Atmel ATSAM3X8E) with a program inside. Since I do not have the program I need to make a backup in case of failure in the second replacement Arduino DUE model R3 (Atmel ATSAM3X8E).
How can I do this? Can a program in Arduino DUE be somehow locked against copy or read? Can't I damage the existing one in this way?

Please, give me an advice. Thank you.

Welcome to the forum.

Do you have the copyright to do this?

You will need a IDE with full debug support and a debug adapter. Because this is not a common use case you will need to read the documentation carefully to figure out how to read the flash memory content and then save that to a HEX file.

The IDEs have the capability to read flash memory for verification after flash programming, but they usually do not expose the function to a menu click item.

Yes, most microcontroller allow copy protection bits for internal flash memory to be set.

A copy protected device can in most cases be erased by using a bulk erase command. This will erase the entire device and make it usable again for new programs, but the original will be lost forever.

For IDEs with debug adapters for ARM Cortex-M processors you can check out the semiconductor companies web site in your case Microchip/Atmel as well as some commonly know companies like ARM/Keil, IAR, Segger, Lauterbach, ...

1 Like

Hi @karel74

Is it the same subject?

RV mineirin

I'm sorry I had a duplicate question deleted.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.