[root@localhost Test]# Jflash-s3c2410 led_on /t=5
+------------------------------------+
| SEC JTAG FLASH(SJF) v 0.11 +
| modified by MIZI 2002.7.13 +
+------------------------------------+
> flashType=5
> S3C2410X(ID=0x0032409d) is detected.
ERROR: K9S1208 is not detected. Detected ID=0xdbdb.
--------------------------------------------------------------------------
以上为下载命令行错误提示。
最后一行应为错误,程序中是这样写的
k9sxx08.h
static const struct {
char *name;
U32 id;
U16 pages;
U16 blocks;
U16 capacity;
} smc_info[] = {
{"K9S3208", 0xece3, 16, 512, 4},
{"K9S6408", 0xece6, 16, 1024, 8},
{"K9S2808", 0xec73, 32, 1024, 16},
{"K9S5608", 0xec75, 32, 2048, 32},
{"K9S1208", 0xec76, 32, 4096, 64},
};
k9sxx08.c
id=NF_CheckId();
if(id!=smc_info[smc_type].id)
{
printf("ERROR: %s is not detected. Detected ID=0x%x.\n",smc_info[smc_type].name,id); return;
}
else
{
printf("> %s is detected. ID=0x%x\n",smc_info[smc_type].name,id);
}
这里如果读到的ID为0xec76 就不会有错误了
感谢大虾帮助