AVR32UC3A Flash Writing Support

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello all,
 

I need some help in writing and reading content to internal flash of AVR32UC3A3128S. Had seen official example (for EVK1104 and changed the device to UC3A3128S ) for flash writing using flashc driver, but unable to figure out how we can program a particular flash address/page.

 

In Flashc_example.c,  there is a structure nvram_data_t, used flashc_memset & flashc_memcpy functions to set (clear) and copy values respectively. (But I couldn't understand..  to what address (nvram_data_t) is mapped and writing operation is happening to)

 

Neverthless, I dumped the program and saw the memory window, after breaking the debugging. But couldn't see any written data to memory (Except for the magic number at start 0x80000000 & at user flash page)

 

I read similar posts in forum, but couldn't get what I'm searching for. Please help me in this regard.

 

Thanks,

Tilak.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think the asf example puts the struct into the last page of flash in the .lds file - have a look there?

I the end its the usual: a page erase, write to the temp buffer, page commit.

If you have a simple use-case the datasheet might be a better place to look than asf...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@mraardvark,

 

Thanks a lot for your reply. I checked it... it does put content at the end of the flash. And I followed this App note.. through which I was able to place content at any flash address.