In-Application Programming
UG0451 User Guide Revision 7.0 32
The following tables list the IAP command options. For more information about these commands, see the
SmartFusion2 MSS System Services Driver User Guide, which can be downloaded from the Libero SoC
firmware catalog.
The following tables list the IAP service responses, status codes, error codes, and bitstream
authorization error codes receptively.
Table 14 • IAP Service Requests
Offset Length (bytes) Field Description
0 1 CMD=20 Command
1 1 OPTIONS See the following table
2 4 SPIADDR Base address of bitstream in MSS/HPMS SPI 0 (MS byte ignored)
Table 15 • IAP Programming Options
76 543 2 1 0
MODE
Table 16 • IAP Programming Modes
Mode Operation
0 AUTHENTICATE
1PROGRAM
2 VERIFY
Table 17 • IAP Service Responses
Offset Length (bytes) Field Description
0 1 CMD=20 Command
1 1 STATUS Command status, see Table 13, page 26
Table 18 • IAP Programming Service Status Codes
Status
Description76543210
0 Success
0 AUTHERRCODE Authentication error
1 0 ERRORCODE Programming error
255 Service protected