Hi,everyone
When I debug my program I find it stuck in somewhere,so I set a breakpoint near the end of my code and start to debug again,then the arrow stop exactly where my breakpoint is set,and then I resume my program and it ends normally by printing some message.
So it seems I need a breakpoint to let it run smoothly,quite strange to me.
I believe there must be something wrong with my code,and I guess too much cache writeback in my code may cause problem.so I paste some relative code here:
*(int*)rxflag_add=0;
Cache_wb((Ptr) rxflag_add, sizeof(int), Cache_Type_ALL, TRUE);
Trans_sim();
txflag=1;
Cache_wb((Ptr) &txflag, sizeof(txflag), Cache_Type_ALL, TRUE);
(set breakpoint here)txend=1;
Cache_wb((Ptr) &txend, sizeof(txend), Cache_Type_ALL, TRUE);
when I debug without a breakpoint, I find txend is still 0 when it runs to the end,while with a breakpoint and resuming txend is set to 1.
I can not figure why this is happening,could anyone help me?
Thank you for your patience.
Zhao