Hello,
I'm using IAR 5.30 with Jlink 4.02e and terminal I/O.
So far I've got no problem using the code provided in SEGGER\JLinkARM_V402e\Samples\DCC\IAR.
The only thing I could not make working is Host to target via terminal I/O.
I've seen in your code this comment:
So i think this is my problem. Where do i need to put this #define. In my C code? Seems strange, how will it have effect?
Anyhow, I've tried it, and has no effect.
When I enter commands in Terminal I/O the buffer isn't flushed. If I deactivate buffering on terminal I/O input (host->target) I don't receive commands 0x93xx_xxxx.
The only commands I receive in :
Display All
Val is always equal to 0x6000_00xx.
Do I miss something with Cspy?
Thx for any help!
I'm using IAR 5.30 with Jlink 4.02e and terminal I/O.
So far I've got no problem using the code provided in SEGGER\JLinkARM_V402e\Samples\DCC\IAR.
The only thing I could not make working is Host to target via terminal I/O.
I've seen in your code this comment:
So i think this is my problem. Where do i need to put this #define. In my C code? Seems strange, how will it have effect?
Anyhow, I've tried it, and has no effect.
When I enter commands in Terminal I/O the buffer isn't flushed. If I deactivate buffering on terminal I/O input (host->target) I don't receive commands 0x93xx_xxxx.
The only commands I receive in :
C Source Code
- /*********************************************************************
- *
- * _HandleRead
- *
- * Function description
- * Performs Command / data read from host
- */
- static void _HandleRead(void) {
- U32 Data;
- U32 val = _ReadDCCStat();
- if ((val & 1) == 0) { // Data or command received ?
- return; // Nothing received
- }
- Data = _ReadDCC();
Val is always equal to 0x6000_00xx.
Do I miss something with Cspy?
Thx for any help!