NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
c4017w_ has joined #openocd
c4017w has quit [Ping timeout: 256 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
tsal has quit [Ping timeout: 240 seconds]
tsal has joined #openocd
thinkfat has quit [Ping timeout: 240 seconds]
thinkfat has joined #openocd
Fist0urs has quit [Ping timeout: 250 seconds]
c4017w_ has joined #openocd
rtucker has quit [Quit: Client closed]
rtucker has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
Bertl is now known as Bertl_zZ
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 250 seconds]
Hawk777 has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 250 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
nerozero has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 240 seconds]
ericonr has quit [Ping timeout: 256 seconds]
Fist0urs has joined #openocd
ericonr has joined #openocd
Krazubu has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 250 seconds]
Hawk777 has quit [Quit: Leaving.]
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
Haohmaru has joined #openocd
<Xogium> well time to try and fix sound on the board… what did I break ;)
<Xogium> hmm
<Xogium> I have stm32 SAI and i2s drivers, the driver of the cs42l51 chip, the audio-graph sound card driver, and everything is set to okay by default anyway in the device tree… so what did I miss
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
<PaulFertser> Xogium: does "aplay -l" show any non-dummy devices?
<Xogium> PaulFertser: nop. Just the null device
<Xogium> PaulFertser: I'm comparing my .config with the st one again ;)
<PaulFertser> Xogium: as another datapoint, modules that are loaded on my netbook: snd_soc_tegra_machine snd_soc_tegra_utils snd_soc_alc5632 snd_soc_tegra20_i2s snd_soc_tegra_pcm
<Xogium> I think it's clear you have a tegra ;)
<Xogium> :D
<PaulFertser> Tegra2, yes
<Xogium> PaulFertser: how's that working out for you ?
<PaulFertser> Xogium: 512 MiB RAM is quite limiting these days. Also, the LVDS cable between the display and the motherboard is damaged and I can't fix it or buy new replacement, so the screen flickers like mad and I can only use it with external HDMI display now.
<PaulFertser> Xogium: that said, I used it for many year happily before that. Even though suspend to RAM never worked.
<Xogium> damn poor display
<Xogium> and yep I agree on the 512 mb of ram…
<PaulFertser> Also, current Firefox is impossible to build without NEON (some FPU extensions) and this old Tegra2 lacks it, so of modern web-browsers only chromium can work.
<Xogium> for years I ran with a pc that had only 2 gb of ram, and that was already very very limiting. I needed to use a desktop yet many of them are not usable with a screen reader so basically my only 2 choices back then were gnome 3 or mate
<Xogium> both of which are heavy, then you add the screen reader and web browser on top… I often ran out of ram and lagged like insane due to swa
<Xogium> *swap
<Xogium> there's only 5 usable desktop these days, of which one is dead far as I know, and one other must be manually added in the autostart.desktop of the screen reader: gnome, mate, cinamon, unity and lxde
<PaulFertser> idk, I do not use any desktops.
<Xogium> window manager ?
<Haohmaru> PaulFertser are you in textmode?
diddly has quit [Ping timeout: 256 seconds]
diddly has joined #openocd
c4017w_ has joined #openocd
<PaulFertser> Haohmaru: no, I'm using XMonad
c4017w__ has quit [Ping timeout: 256 seconds]
<borneoa_> PaulFertser: hi, can you have a look at this strange message https://build.openocd.org/job/openocd-gerrit-build/TARGET=linux32/15025/console
<borneoa_> PaulFertser: it's not blocking anything, but I think should be checked
<PaulFertser> borneoa_: sure
<Xogium> hello borneoa_ :)
<borneoa_> Xogium: hi. Pay attention that on DK2 the audio goes to both headphone jack and HDMI
<Xogium> oh does it ? Hmm. I can't disable the one on hdmi if I don't need it ?
<PaulFertser> aplay -l should show at least something then
<borneoa_> Xogium: sure you can
<Xogium> yeah aplay -l just tells me no sound card found and -L only has the null device
<Xogium> I wonder if the chip isn't powered up or something…
<Xogium> I don't even see a line like this one in my image, compared to yocto
<Xogium> [ 34.984827] cs42l51 0-004a: Cirrus Logic CS42L51, Revision: 01
<Xogium> I'm thinking maybe spmi
<Xogium> but I'll try and probe at it with i2c-tools
<Xogium> I kinda enjoy this sort of stuff actually, it's fun to have some challenge :D
<Xogium> if everything worked instantly the very first time I did it, sure would get boring
<borneoa_> Xogium: yes, cs42l51 has to enable few regulators. But it's all present in upstream dt, have you checked there?
<Xogium> yeah I have the st dt
<Xogium> without any modification
<Xogium> so most likely missing something on driver side
Bertl_zZ is now known as Bertl
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 268 seconds]
<Xogium> hmmm nop, was not spmi
<Xogium> hmmm what else could it be…
<PaulFertser> Xogium: I suggest you paste your full current dmesg
<PaulFertser> Xogium: and the one you saved from ST build where you had sound working.
<Xogium> PaulFertser: yeah leme do that
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 250 seconds]
<Xogium> PaulFertser: this is current dmesg
<Xogium> and the one from st is
rtucker has quit [Quit: Client closed]
<Xogium> I was following this section on the st wiki
<PaulFertser> Xogium: are you sure it was all loaded by the time you took dmesg? Doesn't look like ASoC was started and dai links established etc.
<Xogium> PaulFertser: you mean, in my own dmesg or in the st one ?
<PaulFertser> Xogium: in both
<Xogium> I took dmesg about 5 minutes after the board powered up for the st image, and 40 minutes on mine
<Xogium> even the modules for alsa are loaded I can see them in lsmod
<PaulFertser> Hm, I see it's not in my kernel either, probably the debug level was reduced.
<Xogium> ah yeah the probably don't print that if you use quiet
<Xogium> but… still
<PaulFertser> Xogium: do you have /sys/kernel/debug/asoc ?
<Xogium> the drivers do get loaded, surely it must mean that it detect the hardware ?
<Xogium> or does it just blindly load any modules it find ?
<PaulFertser> Not sure how yocto integrates alsa.
<Xogium> on the st kernel it is also all loaded as modules
<Xogium> I tripple checked that everything is enabled in my cevice tree just in case and it definitely is, since it is identical to the one st had in the yocto image
<Xogium> er device tree
<Xogium> so that part at least we don't have to worry about
<PaulFertser> Xogium: so what do you have in /sys/kernel/debug/asoc ?
<Xogium> PaulFertser: https://paste.xogium.me/22.txt
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 240 seconds]
tomtastic has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 250 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 260 seconds]
Bertl is now known as Bertl_oO
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
nerozero has quit [Ping timeout: 240 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 260 seconds]
Haohmaru has quit []
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 250 seconds]
<Xogium> ... what the actual
<Xogium> I found the issue. As usual it was something very, very stupid ;)
<Xogium> for whatever totally crazy the fsck reason, the snd_soc_cs42l51 module got loaded automatically. However, the snd_soc_cs42l51_i2c *never* was
<Xogium> don't ask me why, I don't know
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 250 seconds]
Krazubu has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 260 seconds]
crab_ has joined #openocd
<crab_> I'm trying to use a JLink EDU mini with OpenOCD on OpenBSD and keep running into the error "No J-Link device found." I also am not seeing the device come up in dmesg so this is likely to do with drivers, but I wanted to know if anyone had gotten a similar set up to work
<crab_> in order to lead me the right direction
<karlp> if you don't even see it in dmesg/lsusb, then your problem is well before openocd...
<karlp> is there a jumper or something to power it or disable it?
Krazubu has quit [Quit: Textual IRC Client: www.textualapp.com]
<crab_> you mean on the J-Link? I don't believe so, an LED on it is flashing
<karlp> are you using a usb cable with data pins? not a shitty trap cable that just does power?
<crab_> ah I didn't think to check that, I think that's it
<karlp> (if that's the case, cut the cable right now, so it never catches you again)
<karlp> so fucked,
crab_ has quit [Quit: Lost terminal]
<karlp> my wife put one helpfulyl in my desk draw
crab_ has joined #openocd
<crab_> yeah I didnt realize they even made cables like that
Krazubu has joined #openocd
<crab_> I do still get the same error, though the device now shows up
<PaulFertser> crab_: if that's the same if you run it as root
c4017w_ has joined #openocd
<karlp> ifthe device shows up, yes, next step is permissions on the device :)
<crab_> as root it's "error connecting DP: cannot read IDR"
c4017w__ has quit [Ping timeout: 250 seconds]
<karlp> ok, now you're at the target level :)
<crab_> progress, hurrah
<karlp> so. what have you got, what's wired where, is _that_ powered, is any of this known to work at all?
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<crab_> all that's going on right now is I have a J-Link EDU Mini plugged into the computer and a pinetime(nRF52832) connected to the J-Link as directed by pine64 and the J-link's documentation, with the pinetime using battery power
<crab_> so they are hooked up on GND, SWDCLOCK, and SWDIO
<crab_> the nrf52 does have flash protection im not sure if I need to solve that or if I would be getting a different error
<PaulFertser> crab_: missing target reference line
<PaulFertser> Vcc
<PaulFertser> Should go to the pin 1 of jtag connector
<crab_> if I do that I should be disconnecting the battery
<PaulFertser> crab_: why?
<PaulFertser> crab_: jtag adapter needs a voltage reference from the target
<PaulFertser> Because different targets have different Vcc voltages.
<PaulFertser> crab_: jlink doesn't normally supply voltage to the target, and when you use that jump start feature it gives 5 V from pin 19 or something.
<crab_> It just said that on the pine website, "If you don't disconnect the battery, also don't connect the 3.3V pin from the SWD cable when debugging or updating firmware."
<PaulFertser> crab_: you do not have an "SWD cable", you have a proper jlink debugger, right?
<crab_> yes
<crab_> I just didn't know what an SWD cable was and assumed it applied
<PaulFertser> crab_: this applies to some shitty stlink clones I guess
<crab_> I'm pretty certain the wiring is all correct now and still getting same error
<crab_> I hooked up the VTREF and the 3.3V
<PaulFertser> crab_: please show full output via some pastebin
<crab_> 0x0.st/oHKM.txt from command `openocd -c 'source [find interface/jlink.cfg]' -c 'transport select swd' -c 'source [find target.nrf52.cfg]' -c 'adapter speed 8000' -c 'init'`
<PaulFertser> crab_: that paste isn't an output from openocd
<crab_> oh I see
<crab_> oh oops the m is lowercase
<crab_> 0x0.st/oHKm.txt
<PaulFertser> crab_: see "VTarget = 0.000 V"
<PaulFertser> crab_: a clear sign either Vtref isn't connected or GND isn't connected or target's not powered.
<crab_> when I run it again I get VTarget = 3.281 V
c4017w__ has joined #openocd
<PaulFertser> crab_: but exactly the same error? Then it looks like it needs some way to remove protection, yes.
<crab_> yeah exact same error
<crab_> it has instructions listed to remove protection but I need to figure out if it's something the jlink can do
<PaulFertser> crab_: ok, so there's a command "nrf52_recover"
<PaulFertser> crab_: try adding -c "init; nrf52_recover"
<crab_> I'll give it a go
<crab_> same exact output
c4017w_ has quit [Ping timeout: 256 seconds]
<PaulFertser> crab_: please show output with -d3
<crab_> 0x0.st/oHKj.txt
<PaulFertser> crab_: VTarget = 1.272 V
<PaulFertser> crab_: something is very wrong with that
<PaulFertser> SWD ack not OK: 7 JUNK <-- not going to be able to communicate like that
<PaulFertser> crab_: how come VTarget is not stable?
<PaulFertser> crab_: also I suggest using a more modest frequency, e.g. 500 kHz instead of 8 MHz.