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.

TMS320C6655在使用gel文件加载程序时卡住

Other Parts Discussed in Thread: TMS320C6655

您好:

         我使用x100v2的仿真器去下载程序时,gel文件可以连接上,但用gel文件下载.out的程序时,卡在了Flush_Cache()接口上,清cache一直不成功,循环等待,请问这个问题如何解决。

gel 文件中清cache的接口:

hotmenu Flush_Cache()
{
GEL_TextOut( "Flush All Cache...\n" );

/* Invalidate L1P cache */
*(int*)L1PINV = 1;

// Wait for cache operation to finish
// Wait for transition to finish for max timeout time...
while(( *(int*)L1PINV & 0x0001 ) ) Wait_Soft(150);

/* Flush L1D cache (writeback dirty lines to lower memory and invalidate all) */
*(int*)L1DWBINV = 1;

// Wait for cache operation to finish
// Wait for transition to finish for max timeout time...
while( ( *(int*)L1DWBINV & 0x0001 ) ) Wait_Soft(150);

/* Flush L2 cache (writeback dirty lines to lower memory and invalidate all) */
*(int*)L2WBINV = 1;

// Wait for cache operation to finish
// Wait for transition to finish for max timeout time...
while(( *(int*)L2WBINV & 0x0001 ) ) Wait_Soft(150);

GEL_TextOut( "Flush All Cache... Done.\n" );
}