![Aim AMC429 Reference Manual Download Page 61](http://html1.mh-extra.com/html/aim/amc429/amc429_reference-manual_2871731061.webp)
Software Library Reference Manual for VME 429
51
Section 3 - System Functions
3.9 Api429CmdLoadSRec
P
P
r
r
o
o
t
t
o
o
t
t
y
y
p
p
e
e
:
:
AiUInt8 Api429CmdLoadSRec( AiUInt8 b_Module, AiUInt8 b_Mode, AiUInt8 b_Cnt,
AiUInt32 l_Offset, AiUInt8 *pb_SRec,
AiUInt8 *pb_St, AiUInt32 *pl_FSize );
D
D
r
r
i
i
v
v
e
e
r
r
C
C
o
o
m
m
m
m
a
a
n
n
d
d
:
:
API429_LOAD_SREC (0x35)
P
P
u
u
r
r
p
p
o
o
s
s
e
e
:
:
This command is used to load a R4000 executable program (S-Record format) to a
fixed ASP Shared Memory area via the ASP Driver Software. The S-Record ASCII
characters are converted from the ASP Driver Software into an executable format.
Note:
No further ASP Driver Command shall be called when starting the
downloaded code ('Mode = 2') since the target software is restarted
(Api429Close function must follow).
I
I
n
n
p
p
u
u
t
t
A
A
i
i
U
U
I
I
n
n
t
t
8
8
b
b
_
_
M
M
o
o
d
d
e
e
Value Description
0
Initialize download function (reset 'FileSize')
1
Download 'CNT' S-Record characters
2
Start downloaded program from 'OFFSET' address
A
A
i
i
U
U
I
I
n
n
t
t
8
8
b
b
_
_
C
C
n
n
t
t
If MODE
Value / Description
0
0
1
Amount of characters to download
2
0
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
l
l
_
_
O
O
f
f
f
f
s
s
e
e
t
t
If MODE
Value / Description
0
0
1
Add offset value to S-Record address
2
Address to start from
A
A
i
i
U
U
I
I
n
n
t
t
8
8
*
*
p
p
b
b
_
_
S
S
R
R
e
e
c
c
Array of Characters / Line from S-Record file
Summary of Contents for AMC429
Page 2: ......