How to deal with "Big Sector" flash disk?

we change mcu's crystal fromm 22.118MHz to 12MHz while CH375's crystal is also 12MHz and then we can successfully use the "EXAM13" codes to open the files in smaller size disk like 128MB(fat 16) and 256MB(fat 16).

we try 1G,4G,8G flash disk but we cannot successfully use the "EXAM13" codes to open the files,while we can successfully use the "EXAM13" codes to open the files in smaller size disk like 128MB(fat 16) and 256MB(fat 16).

Is there something wrong with the "sector size issue"?

any positive suggestion is welcome. please help us. best regards

你用串口還是并口方式來操作CH375的?你可以下載一個(gè)WINHEX軟件來看一下你的U盤的扇區(qū)是多大的,DISK_BASE_BUF不能小于每個(gè)扇區(qū)的大小.無法打開文件返回的錯(cuò)誤代碼是多少?可以把你的程序發(fā)送到 tech@wch.cn


regards:

(1)we 并口方式 to 操作CH375,DISK_BASE_BUF is 4096,Is it possible that the sector size of one DISK is bigger than 4096? (2) the return 錯(cuò)誤代碼 is 0x1F.

any possitive suggestion is welcome.

best regards


你使用的哪個(gè)庫,是LIB6還是LIB4?同時(shí)你把1G的U盤格式化成FAT16去測(cè)試下看可以不可以??


regards: case 1: We use LIB4,and format 1G disk to fat16,it is useless. case 2: We use LIB6,and format 1G disk to fat32,it is useless. we think maybe it is something wrong with the "sector size issue". please help us. best regards to you all.


regards: when use the command i=ListAll(); does it matter that (1)special file like *.exe (2)file size cannot be too big. At this situation,when we use CH375hf6.lib,the brand is transcend, the flash disk is 2G big.the flash disk's file type is fat16. when we use the command i=ListAll(); the return ERROR code is 0x1F. Is something wrong with the situation.

please help us. best regards to you all.


1,按照你說的枚舉方式是不可以的,你可以首先枚舉文件,然后在找.EXE文件就可以了. 2,文件緩沖區(qū)的大小的話我們是通過一個(gè)宏定義的: #define FILE_DATA_BUF_ADDR 0x0200 /* 外部RAM的文件數(shù)據(jù)緩沖區(qū)的起始地址,緩沖區(qū)長度不小于一次讀寫的數(shù)據(jù)長度,字節(jié)模式不用該緩沖區(qū) */ #define FILE_DATA_BUF_LEN 0x0200 這個(gè)宏定義是用來修改文件緩沖區(qū)的大小. 你使用的是什么單片機(jī).普通的51單片機(jī)還是別的51核的單片機(jī)?可以不可以將你的硬件資源詳細(xì)的說明下?


wch regards:

we use listed below:

(1) 8051 megawin 82G516 (2) 64K SRAM (3) 128MB nandflash (4) CH375 (5) CPLD (6) 74373 (7) RTC(real time clock):DS12885 note: 8051 megawin 82G516 address and data bus connect to CPLD to allocate memory address. and IO output. 128MB nandflash for file storage. CH375 for flash disk reading. 64K SRAM for 82G516 memory using. 74373 for address latch. DS12885 for time counting. please help us,thank you best regards to wch


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频