update clk source of key program
This commit is contained in:
@@ -84,7 +84,7 @@ fl_QSPIPorts p_opt_qflash_tile0 =
|
||||
XS1_PORT_1B,
|
||||
XS1_PORT_1C,
|
||||
XS1_PORT_4B,
|
||||
XS1_CLKBLK_1
|
||||
XS1_CLKBLK_3
|
||||
};
|
||||
|
||||
fl_QSPIPorts p_opt_qflash_tile1 =
|
||||
@@ -92,7 +92,7 @@ fl_QSPIPorts p_opt_qflash_tile1 =
|
||||
XS1_PORT_1F,
|
||||
XS1_PORT_1G,
|
||||
XS1_PORT_4D,
|
||||
XS1_CLKBLK_1
|
||||
XS1_CLKBLK_3
|
||||
};
|
||||
|
||||
#define KEY_ADDRESS 0xFFFD0
|
||||
@@ -391,12 +391,12 @@ uint8_t key_verify_old(unsigned sec_write, uint8_t expected_bin[], unsigned offs
|
||||
}
|
||||
|
||||
void flash_read_uid(uint8_t *uid)
|
||||
{
|
||||
{
|
||||
if (flash_opt_enable_ports(&p_opt_qflash_tile0) == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
flash_opt_read_uid(uid, 20);
|
||||
flash_opt_disable_ports();
|
||||
}
|
||||
@@ -521,7 +521,7 @@ uint8_t key_validate(void)
|
||||
{
|
||||
SetKeyFlag(0x20241224);
|
||||
}
|
||||
|
||||
|
||||
ret = key_verify_old(0, data, 1);
|
||||
if (ret == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user