NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tsal has joined #openocd
tsal_ has quit [Ping timeout: 252 seconds]
Foxyloxy_ has joined #openocd
Foxyloxy has quit [Ping timeout: 265 seconds]
Hawk777 has joined #openocd
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Guest14 has joined #openocd
Guest14 has quit [Client Quit]
sys64738 has quit [Ping timeout: 252 seconds]
sys64738 has joined #openocd
sys64738 has quit [Ping timeout: 265 seconds]
sys64738 has joined #openocd
h_ro has quit [Ping timeout: 248 seconds]
h_ro has joined #openocd
<kpedersen> zapb_: Many thanks. I will see what it uses (there isn't much documentation). Otherwise, I am assuming the company is just recommending keeping an ancient install of Windows around? Shame really.
sugarbeet has quit [Ping timeout: 260 seconds]
sugarbeet has joined #openocd
slobodan has joined #openocd
<PaulFertser> kpedersen: have you checked if the adapter is not cmsis-dap/daplink compatible? Probably ask the company? Either way, you can get a reasonable JTAG adapter for real cheap from China these days.
<zapb_> Yes, I think it's not worth the effort to implement support for this adapter and IMO it is also questionable if we should accept a driver for such an old (and niche?) adapter
olerem has quit [Read error: Connection reset by peer]
a3f has quit [Write error: Connection reset by peer]
shoragan has quit [Read error: Connection reset by peer]
a3f has joined #openocd
shoragan has joined #openocd
olerem has joined #openocd
<clever> PaulFertser: ive been messing with the debug on the pi5 lately, and doing `halt ; reg ; continue` over telnet to openocd causes the target to crash, i assume that isnt supposd to happen? any idea why it might?
<PaulFertser> clever: just a crash, nothing on serial?
<PaulFertser> clever: what if you do not do "reg" there?
<clever> PaulFertser: serial wasnt hooked up, but there was an SPI based display connected, and dmesg was barfing a lot of errors, and ssh didnt respond
<PaulFertser> clever: so not just a total crash. And I assume you can't reproduce?
<clever> i havent tried reproducing yet
<clever> let me try now
<clever> did a halt, then continue, and now ssh is dead again
<PaulFertser> Probably it stopped in some really unusual state which was not handled by aarch64 code properly.
<clever> User : 19562 74978677 armv8.c:1316 armv8_aarch64_state(): bcm2712.cpu0 halted in AArch64 state due to debug-request, current mode: EL2H
<clever> cpsr: 0x604000c9 pc: 0xffffd0000cbf86bc
<clever> User : 19563 74978677 armv8.c:1348 armv8_arch_state(): MMU: enabled, D-Cache: enabled, I-Cache: enabled
<clever> User : 19564 74980896 command.c:601 command_run_line():
<clever> it looks like openocd still decided to read every register, even without the reg command
<clever> no complaints on the spi display this time, but i understand that requires it to be fairly functional
<clever> PaulFertser: any other ideas?
<PaulFertser> clever: I'm afraid not, no ideas here.
Haohmaru has quit [Quit: saionara]
akaWolf has quit [Ping timeout: 252 seconds]
akaWolf has joined #openocd
akaWolf has quit [Ping timeout: 252 seconds]
akaWolf has joined #openocd
Hawk777 has joined #openocd
JakeSays_ has joined #openocd
JakeSays has quit [Ping timeout: 265 seconds]
key2 has quit [Quit: Connection closed for inactivity]
JakeSays_ is now known as JakeSays
slobodan has quit [Ping timeout: 265 seconds]
<kpedersen> PaulFertser: zapb_: I have fired the company an email (its still alive). I will update you if they respond with anything useful. Its an old board (though we have 50+ of them laying around) and fundamentally it is annoying if they use some vendor specific way of uploading the hex code.
<PaulFertser> kpedersen: where's that Mikroe EasyARM schematics?
<PaulFertser> kpedersen: what vid/pid do you get when you attach that board's integrated debugger to USB?
<kpedersen> I have some ratty paper docs in the box. Online, is this useful:
<kpedersen> (I have a bunch of EasyPIC boards too if that is interesting).
<PaulFertser> kpedersen: this v6 shows regular ft232rl which is supported by OpenOCD.
<kpedersen> I don't get anything particulaly useful when I plug it in. Plugging it in to FreeBSD I get a generix ugen which doesn't attach to anything.
<kpedersen> Oh right. It doesn't attach as a uart / /dev/cuaU0 or anything like that. Perhaps a different version?
<PaulFertser> kpedersen: which vid pid though? And what do you see on the board itself visually observing the ICs there, what's connected to USB?
<kpedersen> And if that is just a serial interface, surely it has a specific protocol to send the hex code? (apologies a bit out of my depth here)
<kpedersen> PaulFertiser: vid / pid: Is that detected via udevadm? I will check that.
<PaulFertser> kpedersen: you see it in kernel messages
<PaulFertser> udevadm is Linux-specific and not needed here
<PaulFertser> kpedersen: do you have those small boards that they call mikroBoard? What does it have and how do you plan to develop for a dev board if you do not have schematics?
<kpedersen> Annoyingly I didn't bring a box home with me. I will update you on the vid / pid on Monday.
<PaulFertser> kpedersen: probably you just talk to target's UART directly and use its bootloader to flash with e.g. lpc21isp or lpc2k_pgm tools?
<kpedersen> Really I wanted to check if I could uplaod hex code *before* I put in time to research the hardware in any kind of detail. I have loads of sample code on a CD-ROM.
<PaulFertser> Well what's the target MCU for starters?
<kpedersen> OK. That is really useful. I was unaware of those tools.
<PaulFertser> Like stm32flash for ST parts.
<kpedersen> The MCU that comes attached to these boards is an LPC2148
<PaulFertser> And on the boards themselves?
<kpedersen> I was hoping there was an equivalent to avrdude but actually had no idea where to start. I assumed OpenOCD was an approach to this.
<kpedersen> Admittedly I am not sure. It has a bunch of "stuff" attached. Including the on chip flash programmer (ARM prog). If you are local around South England, I am happy to give you one (or a few ;)
<kpedersen> The crusty compiler itself is GCC based. Looks fairly easy to interact with the pins (and the provided LCD screen, etc).
<PaulFertser> avrdude is only for flashing. OpenOCD is for talking to the debug module inside the MCU or CPU.
<kpedersen> Once I was sure I could upload hex files easily I was going to tackle building a newer cross compiler.
<PaulFertser> Alas, not local at all.
<kpedersen> Am I correct in thinking that OpenOCD can also upload hex code?
<PaulFertser> Yes, but it does so by manipulating target registers directly and (optionally) running additional helpers on it.
<kpedersen> Ah I see (I was pointed towards this project by one of my colleagues as a starting point).
<PaulFertser> While with avrdude/stm32flash/lpc21isp you'd be talking to the ROM bootloader (embedded in the target by the vendor).
<PaulFertser> Of course having actual debug facilities is really nice and saves plenty of time compared to the old school recompile/reflash/test loop.
<kpedersen> Agreed. My first priority is getting code on there but it would be very slick if I could hook up GDB, etc.
<kpedersen> Thankyou for your advice so far. Very helpful. I will explore those projects for flashing it and will provide updates (if you are interested in this relatively old board).