NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
diddly has quit [Ping timeout: 250 seconds]
diddly has joined #openocd
tsal has quit [Ping timeout: 265 seconds]
diddly has quit [*.net *.split]
renrelkha has quit [*.net *.split]
indy has quit [*.net *.split]
zjason` has quit [*.net *.split]
Inoperable has quit [*.net *.split]
karlp has quit [*.net *.split]
diddly has joined #openocd
indy has joined #openocd
zjason` has joined #openocd
karlp has joined #openocd
tsal has joined #openocd
renrelkha has joined #openocd
Inoperable has joined #openocd
thinkfat_ has joined #openocd
thinkfat has quit [Ping timeout: 264 seconds]
Hawk777 has joined #openocd
defiant has quit [Quit: defiant]
shoragan has quit [Ping timeout: 246 seconds]
olerem has quit [Ping timeout: 264 seconds]
olerem has joined #openocd
renrelkha has quit [Quit: bye]
renrelkha has joined #openocd
renrelkha has quit [Ping timeout: 252 seconds]
renrelkha has joined #openocd
shoragan has joined #openocd
nerozero has joined #openocd
Inoperable has quit [*.net *.split]
tlwoerner has quit [*.net *.split]
zjason` has quit [*.net *.split]
josuah has quit [*.net *.split]
urja has quit [*.net *.split]
tlwoerner has joined #openocd
josuah has joined #openocd
urja has joined #openocd
Inoperable has joined #openocd
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
indy_ has joined #openocd
indy has quit [Ping timeout: 268 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
defiant has joined #openocd
cambrian_invader has quit [Ping timeout: 255 seconds]
cambrian_invader has joined #openocd
nvmd has joined #openocd
nvmd has quit [Quit: WeeChat 3.7]
nerozero has quit [Ping timeout: 268 seconds]
Haohmaru has quit []
shibboleth has joined #openocd
shibboleth has quit [Quit: shibboleth]
Steve42 has joined #openocd
<Steve42> Hi,
<Steve42> I am create a config file to control a daisy chain of 4 Arm M0+ cores on a custom board. The config file looks like this:
<Steve42> set _CHIPNAME armM0
<Steve42> set _M0_JTAG_TAPID 0x0ba01477
<Steve42> jtag newtap $_CHIPNAME m0app -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
<Steve42> jtag newtap $_CHIPNAME m1app -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
<Steve42> jtag newtap $_CHIPNAME m2app -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
<Steve42> jtag newtap $_CHIPNAME m3app -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
<Steve42> dap create $_CHIPNAME.m0app.dap -chain-position $_CHIPNAME.m0app
<Steve42> dap create $_CHIPNAME.m1app.dap -chain-position $_CHIPNAME.m1app
<Steve42> dap create $_CHIPNAME.m2app.dap -chain-position $_CHIPNAME.m2app
<Steve42> dap create $_CHIPNAME.m3app.dap -chain-position $_CHIPNAME.m3app
<Steve42> target create $_CHIPNAME.m0app cortex_m -dap $_CHIPNAME.m0app.dap
<Steve42> target create $_CHIPNAME.m1app cortex_m -dap $_CHIPNAME.m1app.dap
<Steve42> target create $_CHIPNAME.m2app cortex_m -dap $_CHIPNAME.m2app.dap
<Steve42> target create $_CHIPNAME.m3app cortex_m -dap $_CHIPNAME.m3app.dap
<Steve42> targets $_CHIPNAME.m3app
<Steve42> $_CHIPNAME.m3app configure -endian little -work-area-phys 0x20000000 -work-area-size 0xF000 -work-area-backup 0
<Steve42> Info : Listening on port 6666 for tcl connections
<Steve42> Info : Listening on port 4444 for telnet connections
<Steve42> Info : clock speed 1000 kHz
<Steve42> Info : JTAG tap: armM0.m0app tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
<Steve42> Info : JTAG tap: armM0.m1app tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
<Steve42> Info : JTAG tap: armM0.m2app tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
<Steve42> Info : JTAG tap: armM0.m3app tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
<Steve42> Error: [armM0.m0app] Could not find MEM-AP to control the core
<Steve42> Warn : target armM0.m0app examination failed
<Steve42> Error: [armM0.m1app] Could not find MEM-AP to control the core
<Steve42> Warn : target armM0.m1app examination failed
<Steve42> Error: [armM0.m2app] Could not find MEM-AP to control the core
<Steve42> Warn : target armM0.m2app examination failed
<Steve42> Info : [armM0.m3app] Cortex-M0+ r0p1 processor detected
<Steve42> Info : [armM0.m3app] target has 4 breakpoints, 2 watchpoints
<Steve42> So it can detect the cores of all of them but not the MEM-APs. All the cores are identical. Is there some configuration that I have to do to indicate position in the daisy chain?
Steve42 has quit [Quit: Client closed]
Steve55 has joined #openocd
wolfshappen has quit [Quit: later]
<karlp> please in general use a paste service and refer to it, rather than spamming that, I can't even see what you're talking about anymore
<karlp> so, m0s dont' speak jtag, doyou have hardware that properly supports swd multidrop?
<karlp> or are yuou working on a "custom" board to the point that you've added back jtag into your custom m0 core?
<karlp> I'm not even sure how well openocd supports swd multidrop, I knwo it's been getting worked on, but nto sure of the status personally.
<PaulFertser> swd multidrop should work properly with current master (but not latest rc).
<PaulFertser> Steve55: please explain what you really got there.
<PaulFertser> And yes, please use a pastebin service in the future.
<Steve55> ok, I had hoped that the entire message was legible but apparently not
<Steve55> let me see if I can repost it more legibly
<Steve55> I am create a config file to control a daisy chain of 4 Arm M0+ cores on a custom board.
<Steve55> set _CHIPNAME armM0
<Steve55> set _M0_JTAG_TAPID 0x0ba01477
<Steve55> jtag newtap $_CHIPNAME m0app -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
<Steve55> jtag newtap $_CHIPNAME m1app -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
<Steve55> jtag newtap $_CHIPNAME m2app -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
<Steve55> jtag newtap $_CHIPNAME m3app -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
<Steve55> dap create $_CHIPNAME.m0app.dap -chain-position $_CHIPNAME.m0app
<Steve55> dap create $_CHIPNAME.m1app.dap -chain-position $_CHIPNAME.m1app
<Steve55> dap create $_CHIPNAME.m2app.dap -chain-position $_CHIPNAME.m2app
<Steve55> dap create $_CHIPNAME.m3app.dap -chain-position $_CHIPNAME.m3app
<Steve55> target create $_CHIPNAME.m0app cortex_m -dap $_CHIPNAME.m0app.dap
<Steve55> target create $_CHIPNAME.m1app cortex_m -dap $_CHIPNAME.m1app.dap
<Steve55> target create $_CHIPNAME.m2app cortex_m -dap $_CHIPNAME.m2app.dap
<Steve55> target create $_CHIPNAME.m3app cortex_m -dap $_CHIPNAME.m3app.dap
<Steve55> targets $_CHIPNAME.m3app
<Steve55> $_CHIPNAME.m3app configure -endian little -work-area-phys 0x20000000 -work-area-size 0xF000 -work-area-backup 0
<Steve55> cortex_m reset_config vectreset
<Steve55> When I connect and run, the only MEM-AP I can see is the last one
<Steve55> The first three I see this :  Error: [armM0.m0app] Could not find MEM-AP to control the core
wingsorc has quit [Remote host closed the connection]
wingsorc has joined #openocd
<Steve55> So my question is this:  All the processor hardware is the same in the chain, and I can see the JTAG ids of all the processors but only the MEM-AP of the last one, is there some extra clocking that needs to be done somehow for the earlier devices in the chain?  If so, how is this done?
* karlp leaves
Steve55 has quit [Quit: Client closed]