Flash manipulation on Due

Hello. Is it possible to write to the flash while Arduino is running? If yes, do you know any tool (beside bossac) to erase only a part of the flash and for partial write starting from a specific zone? Thanks!


By default IDE write the program on bank 1 and with this library you can write data on bank 2. Infact while the program is running in a particular bank, this bank is blocked. There is a way to avoid this by calling the IAP_functions of SAM3X8E that allow you to rewrite the flash freely, but i don't know how to do that. I'm very interesting too about this kind of topic, so if you find something, pls post.