Arduino DUE - Write .bin file to flash via UART

Hi guys!

I want to write a .bin file to my flash 1 via UART. Do i need any special library. Can i use DueFlashStorage lib to write, and how can i receive whole .bin file from UART. Many thanks to those who help me.

sboy888:
I want to write a .bin file to my flash 1 via UART

This is precisely what is done when you select Menu>Sketch>upload and you selected Arduino prgramming Port (via UART)

You can also export binaries to a PC folder : Menu>Sketch>export compiled binaries

Thanks ard_newbie but i mean that Arduino Due has 2 flash storage 0 and 1. My sketch run on flash 0 and i want to storage another to flash 1 using UART 1 or 2.

See this thread, reply #8:

Thanks ard_newbie. I'll try it.