AnsweredAssumed Answered

OTG_FS Rx Interrupt disabled while erasing or writing the flash

Question asked by dai.linge on Jul 5, 2012
Latest reply on Jul 5, 2012 by Clive One
Hi Everyone,

I'm writing a program that receives data from the USB and writes data into the flash. The program also resides in flash.

Before each erase and write operation, the USB is NACKed because the flash erase/write operation disables all the interrupt. After the flash erase/write operation, the NACK is removed. 

But the problem is that after the NACK is removed and the USB interrupt is reenabled, the data that NACKed is lost. 

Is it possible to NACK USB data during flash erase/write operation? Is the program supposed to be put in SRAM to avoid flash read operation during flash erase/write?

Any suggestions?

Thanks!

Outcomes