procedure Erase
(Offset : Flash_Offset;
Length : Natural)
Erase Length bytes of flash starting at Offset bytes from the beginning of flash. Length and Offset must be multiples of 4096.
type Flash_Offset is range 0 .. Flash_Size;
Flash_Size : constant := 16 * 1024 * 1024;
XIP maps up to 16 MB of flash. Actual flash chip may be smaller.
function In_Flash
(Addr : System.Address)
return Boolean
Page_Size : constant := 256;
procedure Program
(Offset : Flash_Offset;
Source : System.Address;
Length : Natural)
Program Length bytes of flash starting at Offset bytes from the beginning of flash using the Source buffer. Length must be a multiple of 256.
Sector_Size : constant := 4096;
function To_Address
(Offset : Flash_Offset)
return System.Address
function To_Flash_Offset
(Addr : System.Address)
return Flash_Offset
function Unique_Id
return UInt64
Read the Unique Id (4Bh) from the flash chip