MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.10 ApiCmdProgFlash
Prototype:
AiInt16 ApiCmdProgFlash ( AiUInt32 ul_ModuleHandle, AiUInt32 src_addr,
AiUInt32 sector, AiUInt32 size, AiUInt8 *st );
Driver Command:
API_PROG_FLASH (0x37)
Purpose:
This function is used to perform in-circuit programming of the AIM on-board Flash-
Prom devices to update the ASP Driver Software and BIU Firmware.
Note: this function is not supported for all boards. Please see Table B-III – Function
Support By Boards With ASP for details
Input
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
s
s
r
r
c
c
_
_
a
a
d
d
d
d
r
r
Source RAM address
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
s
s
e
e
c
c
t
t
o
o
r
r
Flash-Prom sector
Sector for Firmware on BIU1
Sector for EFEX Firmware on BIU1
Sector for Firmware on BIU2
Sector for EFEX Firmware on BIU2
API_FLASH_SECTOR_TARGET_SW
Sector for Target Software
API_FLASH_SECTOR_APX_TARGET_SW
Sector for APX Target Software
API_FLASH_SECTOR_APX_BIU1
Sector for APX Firmware on BIU1
API_FLASH_SECTOR_APX_EF_BIU1
Sector for APX EFEX Firmware on BIU1
API_FLASH_SECTOR_APX_BIU2
Sector for APX Firmware on BIU2
API_FLASH_SECTOR_APX_EF_BIU2
Sector for APX EFEX Firmware on BIU1
API_FLASH_SECTOR_APX_EF_LCA
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
s
s
i
i
z
z
e
e
Number of bytes to be programmed