I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
64
4.8 Accessing the I-7188XA(D) Memory
4.8.1 Using Flash Memory
The I-7188XA(D) module contains 512K bytes of Flash memory which
includes space reserved for the MiniOS7. The MiniOS7 occupies the
0xF000 segment. So user can use the other segments whose total size
is 448K bytes.
Each bit of the Flash memory can only be written from 1 to 0 and cannot
be written from 0 to 1. The only way to change the data from 0 to 1 is to
call the
EraseFlash()
function to erase a block from the Flash Memory
(64K bytes). The user should decide whether to write to the block or to
erase it.
To write an integer to segment 0xD000, offset 0x1234 of the Flash
Memory, the code is as follows:
Reading data from the Flash Memory is somewhat like reading data
from SRAM. The user should allocate a far pointer to point to the
memory location first, and then use this pointer to access the memory.
int data=0xAA55, data2;
char *dataptr;
int *dataptr2;
InitLib(); /* Initiate the 7188xa library */
dataptr=(char *)&data;
FlashWrite(0xd000, 0x1234, *+);
FlashWrite(0xd000, 0x1235, *dataptr);
/* read data from the Flash Memory method 1 */
dataptr=(char *)&data2;
*dataptr=FlashRead(0xd000, 0x1234);
*(1)=FlashRead(0xd000, 0x1235);
/* read data from the Flash memory method 2 */
dataptr2=(int far *)_MK_FP(0xd000, 0x1234);
data=*data
Содержание I-7188XA
Страница 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Страница 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Страница 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Страница 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Страница 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Страница 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Страница 161: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 161 Below snap shots are steps for install TC 3 0...
Страница 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Страница 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...