tag:blogger.com,1999:blog-585820012390048267.post305976372069406033..comments2022-08-26T15:28:02.605-07:00Comments on All things embedded: UDOO Neo and openocd workingtcmichalshttp://www.blogger.com/profile/05764655304666199297noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-585820012390048267.post-6818902956312183292016-06-27T06:32:43.402-07:002016-06-27T06:32:43.402-07:00I use the program to load the code into M4 from A9...I use the program to load the code into M4 from A9 to configure the the gate. tcmichalshttps://www.blogger.com/profile/05764655304666199297noreply@blogger.comtag:blogger.com,1999:blog-585820012390048267.post-68438654418637720202016-06-23T05:54:58.088-07:002016-06-23T05:54:58.088-07:00Hi Tim,
Would you please show me where the confi...Hi Tim, <br /><br />Would you please show me where the config script opens clock gate and activates the M4 core. As Segger said that, A9's debug session must be opened first and does somethings to enable M4 core before connect it with JTAG ?Anonymoushttps://www.blogger.com/profile/07043376638566226548noreply@blogger.comtag:blogger.com,1999:blog-585820012390048267.post-91634729993414636662016-05-13T06:55:00.092-07:002016-05-13T06:55:00.092-07:00sudo ./src/openocd -f interface/ftdi/jtagkey.cfg ...sudo ./src/openocd -f interface/ftdi/jtagkey.cfg -f ./tcl/target/imx6sx.cfg<br /><br /><br />-f interface/ftdi/jtagkey.cfg (this the JTAG interface to use, instead use the jlink interface.)<br /><br />Also, need to compile openocd with jlink interface enabled<br /><br />tcmichalshttps://www.blogger.com/profile/05764655304666199297noreply@blogger.comtag:blogger.com,1999:blog-585820012390048267.post-19058815221785739172016-04-29T20:10:08.817-07:002016-04-29T20:10:08.817-07:00Hello Tim
Do you know if I can debug the cortex M...Hello Tim<br /><br />Do you know if I can debug the cortex M4 with Segger J-Link?Anonymoushttps://www.blogger.com/profile/02637035539852575136noreply@blogger.comtag:blogger.com,1999:blog-585820012390048267.post-46023706670750940172016-01-13T19:31:07.747-08:002016-01-13T19:31:07.747-08:00JTAG is now working. More work is needed to load ...JTAG is now working. More work is needed to load the M4 without fist loading the code via A9 and Linux. <br /><br />Here is the config file:<br /><br />transport select jtag<br /># Slow speed to be sure it will work<br />adapter_khz 1000<br /> <br /> <br />if { [info exists CHIPNAME] } {<br /> set _CHIPNAME $CHIPNAME<br />} else {<br /> set _CHIPNAME imx6sx<br />}<br /> <br /> <br /># CoreSight Debug Access Port<br />if { [info exists DAP_TAPID] } {<br /> set _DAP_TAPID $DAP_TAPID<br />} else {<br /> set _DAP_TAPID 0x4ba00477<br />}<br /> <br />jtag newtap $_CHIPNAME dapM4 -irlen 4 -ircapture 0x01 -irmask 0x0f \<br /> -expected-id $_DAP_TAPID<br />jtag newtap $_CHIPNAME dapA9 -irlen 4 -ircapture 0x01 -irmask 0x0f \<br /> -expected-id $_DAP_TAPID<br />jtag newtap $_CHIPNAME sdma -irlen 5 -ircapture 0x0 -irmask 0x0f \<br /> -expected-id 0x1<br />jtag newtap $_CHIPNAME sjc -irlen 4 -ircapture 0x0 -irmask 0x0f \<br /> -expected-id 0x0891C01D<br />target create imx6sx.dapM4 cortex_m -chain-position imx6sx.dapM4<br /><br /><br />imx6sx.dapM4 configure -event "reset-assert" {<br /> echo "Reseting ...."<br /> #cortex_a dbginit<br />}<br /><br />imx6sx.dapM4 configure -event reset-init { m4_init }<br /><br /><br />proc m4_init { } {<br /> echo "Reset-init..."<br /> ; # halt the CPU<br /> halt<br /><br /> dap apsel 0<br /> cortex_m reset_config vectreset<br /><br />}<br />tcmichalshttps://www.blogger.com/profile/05764655304666199297noreply@blogger.com