Exceptionally, the command end flag may only be cleared to 0 or checked.
Table 3.7 Exceptional command end flag processing
flag | command | |
|---|---|---|
Only clear 0 (do not check) | ||
| | ESEL | Soft reset (specified by the CDC_CdInit parameter) |
EFLS | Abort file access (CDC_AbortFile) | |
Only check (do not clear 0) | ||
ESEL | -Get actual data size (CDC_GetActSiz) |
|
| The value of the command end flag held by the CDC is the separately linked CDC If you run the program code, inconsistencies will occur. For this reason, commands may not be issued unless the command end flag is initialized. Please note the following points when using the CDC library. (a) As a rule, only one program code is resident in the memory and used. (b) When executing another program code, be sure to execute a soft reset first to initialize the command end flag. |