Question
OTG_FS Rx Interrupt disabled while erasing or writing the flash
Posted on July 05, 2012 at 18:59
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!