beautypg.com

Boot(), Checkpasscode (), Figure 10: flash download and programming process – Maxim Integrated 73S12xxF Software User Manual

Page 68: E 68), Figure 10

background image

73S12xxF Software User Guide

UG_12xxF_016

68

Rev. 1.50

Application/Host

Received hex

record from

App/Host

Good record

(good CRC)?

Send 'F' to App/

Host

Address >

0x01FF

Send 'P' to App/

Host

Program Flash

with Hex record

End of File?

Yes

Jump to new app.

Start

Flash
Prog.

Yes

Start

Flash

Down

Load

Configure COM port

@ 115,200 baud,

8N1, Xon/Xoff

Open Hex File

Yes

No

No

End of file?

Read Hex Record

Send Record to

LAPI

No

Prompt User to

terminate App.

LAPI Responds

= ?

Retry

exhausted

'P'

'F'

No

Yes

Yes

LAPI-*.lib

Ignore Record

No

Configure COM port

@ 115,200 baud,

8N1, Xon/Xoff

Figure 10: FLASH Download and Programming Process


Boot()

Purpose

Invoke the Boot Loader function to start reprogramming of Flash.


Synopsis

void Boot ( U16 PassCode );


Parameters

PassCode: Input parameter
Specifies the 2-byte passcode.


Return Codes FALSE if the PassCode fails validation.

Once an application calls the Boot function, and the PassCode is validated, control will not be returned.

CheckPassCode ()

Purpose

Validate the PassCode for Security Mode management, PassCode management and
the Boot function.


Synopsis

Bbool CheckPassCode ( U16 PassCode );


Parameters

PassCode: Input parameter
Specifies the 2-byte passcode.


Return Codes TRUE if the PassCode is validated.

FALSE if the PassCode doesn’t match with the passcode stored in the Boot Loader
code space.