Skip to content

Latest commit

 

History

History

dspic33e-rtsp-from-aux-flash

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

image

RTSP of Primary Flash Memory from Auxiliary Flash Memory

Description:

This code example demonstrates how user code running from Auxiliary Flash Program Memory can perform Run-Time Self-Programming (RTSP) of the Primary Flash Program Memory. Note that the user code does not get stalled when the Primary Flash RTSP operation is in progress. In this example, a page-sized array of data has been initialized and defined as a Primary Flash constant array using the space(prog) attribute of the compiler, whereas the subroutines that perform the RTSP operations have been located in an Auxiliary Flash Program Memory code section using the 'auxflash' attribute of the assembler. Then, the user code erases the entire page in Primary Flash Program Memory and modifies the contents of one of the rows in the page using RTSP. Subsequently, the user code reads back the contents of the page into an array called 'pageMirrorBuff'. Verify that the specified row (row 7) now contains the modified data and the remaining rows are in their original state.

Hardware Used

Software Used