MOD-LCD4.3 with IAR EW and ARM-JTAG-COOCOX debugger

Started by k1ngrs, April 14, 2015, 03:46:36 PM

Previous topic - Next topic

k1ngrs

Hi,
I am trying to write a simple program and flash it to the MOD LCD 4.3 board using IAR EW and the ARM JTAG CooCox debugger (based on the CoLinkEX).
First I have tried the RID.
Then I have copied the CMSIS-DAP firmware to the debugger and tried the CMSIS-DAP debugger, seems to detect the debugger but not able to connect to the board:

Debug output:

apr 14/13:14:00.173 DEBUG2 :       

StartSession()

apr 14/13:14:00.177 DEBUG2 :       -> ConnectToHardware()
apr 14/13:14:00.177 DEBUG2 :         SigAPISetPath('C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\bin\jet\bin')
apr 14/13:14:00.180 DEBUG2 :         SigProbe version: 1.02
apr 14/13:14:00.182 DEBUG2 :         ISigProbe::EnumScan()
apr 14/13:14:00.202 INFO   : Probe: CMSISDAP S/N 0001A0000000 mapped to a number 1387.

apr 14/13:14:00.202 DEBUG2 :         scanning finished: found 1 probes
apr 14/13:14:00.204 DEBUG2 :           connection Serial No: 01387
apr 14/13:14:00.206 DEBUG2 :           connection found probes:
apr 14/13:14:00.206 DEBUG2 :         ISigAPI::CreateInstance('ISigEmu', 'EARM', '')
apr 14/13:14:00.209 DEBUG2 :       Core 0: sigEmu->LinkAttach(SigProbe)
apr 14/13:14:00.209 DEBUG2 :         core 0: IsigEmu::ParamSet('Emulator', 'cmsisdap')
apr 14/13:14:00.210 DEBUG2 :         core 0: IsigEmu::ParamSet('Processor', 'Cortex-M3')
apr 14/13:14:00.210 DEBUG2 :         core 0: IsigEmu::ParamSet('JtagHeader', 'ARM-SWD')
apr 14/13:14:00.210 DEBUG2 :         core 0: IsigEmu::ParamSet('CoreSightSWJ', 'JTAG')
apr 14/13:14:00.210 DEBUG2 :         core 0: IsigEmu::ParamSet('JTagSpeed', '250')
apr 14/13:14:00.210 DEBUG2 :         core 0: IsigEmu::ParamSet('BoardCfg', '-auto')
apr 14/13:14:00.210 DEBUG2 :         core 0: IsigEmu::ParamSet('JtagInitDelay', '200,r:300')
apr 14/13:14:00.210 DEBUG2 :         core 0: IsigEmu::ParamSet('BigEndian', '0')
apr 14/13:14:00.210 DEBUG2 :         ISigEmu::LinkAttach('SigTerminalLog'...)
apr 14/13:14:00.210 DEBUG2 :       Core 0: sigEmu->LinkAttach(SigTerminalLog)
apr 14/13:14:00.210 DEBUG2 :         ISigProbe::AcquireInterface('ComProtocol')
apr 14/13:14:00.210 DEBUG2 :         core 0: IsigEmu::ParamSet('BoardDID', '')
apr 14/13:14:00.210 DEBUG2 :       Core 0: IceConnect(...)
apr 14/13:14:00.211 DEBUG2 :         ISigProbe::AcquireInterface('ISigXTrace')
apr 14/13:14:00.211 DEBUG2 :         ISigAPI::CreateInstance('ISigXTrace')
apr 14/13:14:00.214 DEBUG2 :       Core 0: IceInit(...)
apr 14/13:14:00.214 INFO   : EARM v.3.75

apr 14/13:14:00.226 INFO   : CMSIS-DAP Error: Cannot connect to the target.

apr 14/13:14:00.226 DEBUG2 :       Core 0: IceGetError(...)
apr 14/13:14:00.226 ERROR  : IceInit() returned Failure during executing the operation
apr 14/13:14:07.843 DEBUG2 :       <- ConnectToHardware()
apr 14/13:14:07.844 DEBUG2 :       ********** 'Controlled' exception (1) caught in DbBeginSession
apr 14/13:14:07.924 DEBUG2 :       AboutToStopSession()
apr 14/13:14:07.950 DEBUG2 :       PrepareStopSession()
apr 14/13:14:07.959 DEBUG2 :       StopGui()
apr 14/13:14:07.980 DEBUG2 :       StopSession()
apr 14/13:14:07.984 DEBUG2 :       -> TerminateHardware()
apr 14/13:14:07.984 DEBUG2 :         ISigXTrace::Term()
apr 14/13:14:07.984 DEBUG2 :         ISigAPI::ReleaseInstance(sigXTrace)
apr 14/13:14:07.984 DEBUG2 :       Core 0: sigEmu->LinkAttach(SigProbe)
apr 14/13:14:07.984 DEBUG2 :         ISigEmu::IceTerm()
apr 14/13:14:07.994 INFO   : CMSIS-DAP Error: Cannot connect to the target.

apr 14/13:14:08.004 INFO   : CMSIS-DAP Error: Cannot connect to the target.

apr 14/13:14:08.004 DEBUG2 :         ISigApi::ReleaseInstance(sigEmu)
apr 14/13:14:08.004 DEBUG2 :         SigAPITerm()
apr 14/13:14:08.005 DEBUG2 :       <- TerminateHardware()
apr 14/13:14:08.005 DEBUG2 :       ~TdJetDriver()
apr 14/13:14:08.005 DEBUG2 :       -> TerminateHardware()
apr 14/13:14:08.005 DEBUG2 :       <- TerminateHardware()

Thanks
Rob

LubOlimex

Hello Rob,

CooCox team no longer supports the plugin for IAR EW. The reason is that they had no approval from IAR to distribute the CoIARPlugin.

At the current moment ARM-JTAG-COOCOX works only with CooCox and Keil MDK (via plugin).

I have updated the ARM-JTAG-COOCOX to reflect this change.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex