I'm new in this forum and in using atmel studio.
I'm using atmel studio 6.2.1563-Service Pack 2, with Arduino DUE and the SAM ICE debugger with the olimex adapter for arduino; for my project I need to store values in the internal flash memory of the microcontroller, so looking on atmel website I found the "NVM access driver" which seems to fit my requirements.
I copied the program found in the link below:
When I debug the program, at first I write the values at a certain address, for example 0x000C0100, then I read the values at this address and everything works, because in the array (in the example on the link above is data_read) where the data are read I can see the values written at 0x000C0100.
The problem is that in the memory window I cannot see the variation that I made, for example before the writing the values of the data at 0x000C0100 are all F (so I think that the memory is erased) but also after the writing all the values are still F, even if when I read using the nvm_read I see the right values in data_read, using the watch window (in the example 0xAA, 0xBB, 0xCC, 0xDD, 0xEE).
So can anyone help me? Is it a problem of atmel studio or of my device? Is there some trick to fix the problem?