
Flash Development Toolkit
Method for Using the User Program Mode (SH7086 Application)
REJ06J0071-0100 /Rev.1.00 2009.2 Page 95 of 106
(2) Area selection (FDTUMain.c)
To select the user boot area or the user area, set FmatsuUserBootMat (0xaa) or FmatsUserMat (0x00) in
the FMATS register. There must be 2 or more of NOP instructions after the setting.
/*
/////////////////////////////
// UserBootSelect Function //
/////////////////////////////
*/
void UserBootSelect(void)
{
volatile BYTE i;
FMATS = FmatsUserBootMat;
for(i=0; i < 1; i++);
/*
nop();
nop();
*/
}
/*
////////////////////////////
// UserMatSelect Function //
////////////////////////////
*/
void UserMatSelect(void)
{
volatile BYTE i;
FMATS = FmatsUserMat;
for(i=0; i < 1; i++);
/*
nop();
nop();
*/
}
Commentaires sur ces manuels