This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

formatting drive using the bios api

Other Parts Discussed in Thread: SYSBIOS

Hello,

I am trying to add the fatfs in BIOS PSP package. I want to format the nand.

I registered the nand device functions to fatfs using disk_register( ) with arbitrary drive number other than 0
I tried to format the nand using the BIOS function f_mkfs( ) with drive number registered but i am getting error value of 12.
Only when the drive number is 0 i am getting the callback functions from fatfs.

Is there any restriction on drive number or using f_mkfs( ) function or should i use any other function for formatting?

Regards,
Prasad