boru has quit [Killed (NickServ (GHOST command used by boru`))]
boru` is now known as boru
tsal has joined #openocd
Hawk777 has joined #openocd
nerozero has joined #openocd
Haohmaru has joined #openocd
rkta_ has joined #openocd
rkta has quit [Remote host closed the connection]
rkta_ is now known as rkta
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 265 seconds]
tsal has quit [Ping timeout: 252 seconds]
tsal has joined #openocd
Hawk777 has quit [Quit: Leaving.]
nerozero has quit [Ping timeout: 265 seconds]
nerozero has joined #openocd
<karlp>
ok, time to bite the bullet and bisect
<olerem>
ElReino: hi, what is CPU32 BDM?
<karlp>
sounds like motorola stuff.
<karlp>
BDM is the name for coldfire and probably 68k debug module
<ElReino>
Yeah, it's SPI-like debug protocol for Motorola cpu:s
<ElReino>
*CPUs
<karlp>
feck, bisected 0.11 to master and got all passes.
<karlp>
turns out this only fails when the cpu has been power cycled
* karlp
starts bisecting again...
<Haohmaru>
is that quadsecting? ;P~
<olerem>
ElReino: OpenOCD is working with JTAG/SWD chains and TAPs. If there is no such chain, it would be hard to implement. In current state, I can imagine some sort of code adapter to tell the maininfrastrucuture, that SPI is kind of local TAP.
<olerem>
ElReino: with other words, I doubt some one is working on it, and you will need to spend some time to implement it.
<ElReino>
olerem: Thanks for comprehensive answer, I might take a look at implementing it as there's no modern implementation of it for linux AFAIK
<olerem>
ElReino: can you please answer one question, if it is not a secret: why?
<ElReino>
olerem: It's because I want to reprogram a Trionic ECU, and all the tools are either only for Windows or DOS
<Fleck>
dosbox then :D
<ElReino>
That seems to be the easiest solution at this point
<ElReino>
Although GDB debugging would have been great
<karlp>
borneoa_: "armv7m_trace: get rid of the old tpiu code" definitively breaks trace for me :|
<karlp>
this is painful, newer openocds would work if the target hadn't been power cycled before, so it appeared to be still work.
<borneoa_>
karlp: what's the target? Is its script upstream?
<karlp>
stm32wb55
<karlp>
stock master.
<karlp>
it's not really revertable to test nicely though.
<karlp>
>>> mon itm port 0 on
<karlp>
timeout waiting for ITM_TCR_BUSY_BIT
<karlp>
that's certainly not helping much.
<karlp>
just tested on an f3 as well, same behaviour.
<karlp>
doesn't matter whether I use new style or old style config commands either.
<karlp>
there's nothign obviously worng in the ITM config blocks, I've no idea whether it's stlink end or target config end.
<Haohmaru>
was that the mechanism to print stuff over SWD (without having to use an actual UART) ?
<Haohmaru>
this ITM thing
<karlp>
it's one more pin actually, SWO.
<Haohmaru>
ah, right.. so that suddenly stopped working?
<karlp>
if you want to do it in band just over swd itself you need to use something like RTT or semihosting.
<karlp>
well, because of changes in oocd it stopped working for my configs, yes.
<Haohmaru>
hm..
<karlp>
presumably other configs that borneo and that nxp guy are using must be working, because they needed those changes made :)
<Haohmaru>
could it be maybe disabled.. the peripheral, iirc i remember reading some tricky stuff around the "debug unit" on my cortex chip
<karlp>
it seems to be enabled, the ITM->TCR is valid, and same as in working case, just a BUSY bit set.
<Haohmaru>
it's called "DSU" device service unit, actually.. i'm guessing that's an ARM thing and should be present and "the same" for all $vendors' chips
<Haohmaru>
The Debug Communication Channels (DCCO and DCC1) consist of a pair of registers with associated handshake
<Haohmaru>
logic, accessible by both CPU and debugger even if the device is protected by the NVMCTRL security bit. ...
<Haohmaru>
"The DCC0 and DCC1 registers are accessible when the Protected state is active. When the device is protected, however, it is not possible to connect a debugger while the CPU is running (STATUSA.CRSTEXT is not writable and the CPU is held under Reset)."
<Haohmaru>
sorry, that whole thing should have been quoted..
<Haohmaru>
but now i think this looks kinda atmel-ish so it's probably not very arm-ish
<borneoa_>
karlp: downloaded the doc of wb55. It's dual core, but only first core has its and tpiu at usual addresses. Should work fine. I only have an F4 here. Let me try again
<karlp>
well, f3 is also busted, and that's a pretty plain one.
<karlp>
I'm about out of time for the day though unfortunately.
<karlp>
and wb55 works jus fine before that commit
<borneoa_>
Just tested f4 and works. Can you send me the list of commands you have run to get the error? Maybe we are not using it in the same way
<Haohmaru>
could it be his debugger malfunctioning or damaged?