--- Quote Start ---
Are you remembering to include hostFS in your BSP as well as running your code using the debug channel?
--- Quote End ---
Yes ,I forgot it and it was OK.
Now I meet new difficulty. When I read data from file on PC and write to on_chip memory ,it is well. And in normal mode ,large datas of writing and reading DDR2 is OK.
But when read data from file on PC and write to DDR2, it is unstable. First time it maybe right, second maybe wrong. And sometimes may give errors as following, "Processor failed to go into debug mode when requested","m_state == STATE_DEBUG" failed: file "nios2debug.cpp" Can you give me some advices?
Tahnk you!