This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB host

Hello Sir,

I am working on USB host using LPC2468. I am facing a problem when i try to create 6 different file it creates 5 files on pendrive 6th file is not creating my code is like that


for(file_no =1;file_no<=6;file_no++)
files_on_pendrive();

void files_on_pendrive(void){


switch(file_no){

case 1:
           cashier_dbase();
           break;


case 2:
           tax_dbase();
           break;


case 3:
           billsumm_dbase();
           break;


case 4:
           crd_trans_dbase();
           break;

case 5:
           bill_copy_dbase();
           break;


case 6:
           pagewise_dbase();
           break;





 }
}

in the above code each switch case creates a file but case6 is not creating the file if i place case 5 function in place of case6 function then again case6 is not creating a file
what,s the reason behind it.

0