您好:
我使用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" );
}
Andy Yin1:
gel文件不是用来下载out文件的,下载out可以用ccs中的load program执行。说一下你具体执行的步骤,我们再一起分析一下可能的问题。
foreverstrong cheng:
你好,能够共享一份TMS320C6655的GEL文件,谢谢,chengyq116@163.com