Hello,
I am attempting to debug a linux application on my imx6ul evk. I am having some difficulties connecting my DStream JTAG to NXP i.MX6UL EVK. The EVK is connected to Ethernet, usb, and JTAG. DSteam connected to Ethernet. I’m using DS-5 ultimate.
With DSteam not connected, I can connect to EVK and debug using gdb.
If I reset EVK, wait for it to fully boot up, then try to connect using DStream (Bare Metal or Linux), I get:
Unable to connect to TCP:xxx.xxx.xxx.xxx (DStream)
Unable to connect to device AHB_0
No Connection to target.
If I connect using DStream and DS-5 debugger right after restart, then I am able to connect. However, kenel loading process freezes and I can’t do anything. I do have a JTAG connection, I can get trace data, registers, etc. The boot process does not complete.
On the putty terminal, it stops after “snvs-secvio 20cc000.caam-snvs: can’t get snvs clock”. BTW, I get this line when I do not have JTAG connected, and everything is normal.
The Remote Systems Explorer no longer works.
The Debug LED on the DStream flashes rapidly. The LED on the EVK Ethernet port flashes rapidly as well.
Hello Mark
mentioned "50.20 operation" may explain why it is necessary to disable CAAM.
As Yocto demo does not disable caam issue may persist, so one can try to
build image with disabled caam drivers using sources
http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/?h=imx_4.1.15_1.0.0_ga
Best regards
igor
btw, why is the marked "assumed answered"
Hi Mark
we do not support Timesys bsps, suggest to try nxp releases on
http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-process...
for Timesys builds may be suggested to apply to Timesys support.
Reagrding kernel freeze one can try to disable CAAM described in
https://community.nxp.com/thread/358832
Disabling the camm drivers in defconfig fixed this issue.
#CONFIG_CRYPTO_DEV_FSL_CAAM is not set
#CONFIG_CRYPTO_DEV_FSL_CAAM_SM is not set
#CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST is not set
#CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO is not set
Best regards
igor
Hello Igor,
I'm now able to do a kernel config and remove the crypto statements. However, it's still not letting me connect.
I'm not sure wheat to make of the "50.20 operation" image in your reply. Please elaborate.
BTW, the issue also occred onthe Yocto demo from Freescale. It was, however, version L3.14.38. Does this issue exist on the new L4 version? What fixed it?
Hello Igor,
I've been successful with performing the uart example in AN5229 and the u-boot.
I'm stuck at the kernel debug. I can run the kernel configuraiton, but having issues trying to build. My image was built using Timesys web factory (they did the build). I need to build image on my pc after running kernel configuration.
ARM support believes there is something in the kernel that's turning off the JTAG debug, and I need to go the NXP or Timesys with this issue.
There is another post in the i.MX Community called "imx6 locks up when jtag used" that concerns disabling the camm drivers.
In my case, the device does not load kernel beyond the "platform caam_sm:" lines in the putty terminal when I connect DStream right after reset. If I attempt to connect DStream after kernel load, then it does not connect.
Is there anyone familiar with JTAG kernel debug and security settings?
Hi Mark
please check AN5229 ARM DS-5 Development Studio Debug i.MX6UL-EVK
http://www.nxp.com/files/32bit/doc/app_note/AN5229.pdf
for linux connectios issues one can post on arm support
DS-5 Development Studio | Supported Devices – ARM Developer
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------