Hi,
I tried what you suggested but it didn’t work. I tried to write the blob firmware too (just in case) but the write command doesn’t work so…
Here is my code modified following your suggestions.
Gpu_CoCmd_FlashHelper_Init(&Gpu);
Gpu_CoCmd_FlashHelper_SwitchState(&Gpu, FLASH_STATUS_BASIC);
ubyte fl_status = Ft_Hal_Read8(&Gpu, REG_FLASH_STATUS);
ubyte fl_size = Ft_Hal_Read8(&Gpu, REG_FLASH_SIZE);
if ( (fl_status == FLASH_STATUS_BASIC) && (fl_size == 16) ) {
switch (Fl_Test) {
case FL_ERASE:
Gpu_CoCmd_FlashHelper_Erase(&Gpu);
break;
case FL_WRITE_BLOB:
// Ft_Hal_Write_Mem(&Gpu, 0, BLOB, 4096);
// Gpu_CoCmd_FlashUpdate(&Gpu, 0, 0, 4096);
Gpu_CoCmd_FlashHelper_Write(&Gpu,0, 4096, (ubyte*)BLOB);
break;
case FL_READ:
Memory_Set_Byte(Tmp, 0x00, 4096);
App_Flush_Co_Buffer(&Gpu);
Gpu_Hal_WaitCmdfifo_empty(&Gpu);
Gpu_CoCmd_FlashHelper_Read(&Gpu, 0, 0x1000, 4096, Tmp);
break;
}
}
What is strange is that, even when I start directly by reading the flash memory whithout erasing it first, I’m not able to read it. Read and Write commands seem to lead the chip to an abnormal behavior. But the chip works well if I don’t manage the flash, I mean, I’m able to use it to display widgets as when I was using an FT810.