Jun 19, 2019
01:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 19, 2019
01:22 AM
Hi all,
Performance Counter Registers on TC297 board works only with connected usb cable on board (i suppose,it is debug mode).
but if i connect power supplier, value is null.
what other register i should configurete for connect without USB cable?
Thank you
Performance Counter Registers on TC297 board works only with connected usb cable on board (i suppose,it is debug mode).
_mtcr(CPU_M1CNT,0);
_mtcr(CPU_M2CNT,0);
_mtcr(CPU_M3CNT,0);
_mtcr(CPU_CCNT,0);
_mtcr(CPU_CCTRL,0|(1<<1)|(2<<2)|(2<<5)|(2<<8));
unsigned int value=_mfcr(CPU_CCNT);
but if i connect power supplier, value is null.
what other register i should configurete for connect without USB cable?
Thank you
- Tags:
- IFX
2 Replies
Jun 19, 2019
12:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 19, 2019
12:33 PM
Hi Rombic. Try enabling the On-Chip Debug System with this sequence first:
#include "IfxCbs_reg.h"
// Unlock debug system if it's not already unlocked
if( !(__mfcr(CPU_DBGSR) & 0x1) )
{
CBS_OEC.U = 0xA1;
CBS_OEC.U = 0x5E;
CBS_OEC.U = 0xA1;
CBS_OEC.U = 0x5E;
}
_mtcr( CPU_DBGSR, 1 ); // enable the Core Debug Controller
Jun 20, 2019
03:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 20, 2019
03:24 AM
Hi UC_wrangler,
It works! Thank you.
It works! Thank you.