目前正在練習123 sample code中的UDC範例。 
在sample code中定義了USB total sector number: 
dataFlashTotalSectors = DATA_FLASH_STORAGE_SIZE / UDC_SECTOR_SIZE; 
 
打算將USB storage size 設為 1MB,UDC_SECTOR_SIZE = 4096,則得到totalSectors = 256。 
 
 
但這樣的參數設定得到的storage size只有128K, 
請問我應該如何設定才能得到storage size為1MB, 而UDC_SECTOR_SIZE = 4096, totalSectors = 256。 
 
 
先謝過各位的指導。 
 |