<Haohmaru>
oh, so while a "daplink" could "work" with any cortex-M, the stlink(2?) clones don't work with some? or did i misunderstand
Hawk777 has quit [Quit: Leaving.]
<PaulFertser>
I think daplink firmware also needs explicit support for adiv6
<Haohmaru>
oh
<Haohmaru>
>:/ so if i buy one of the "newer" kinds of cortex-M, it is possible that my daplink won't work with them? bluh
<Haohmaru>
i wonder if this affects cortex-M85 too, that one's "new-ish"
<PaulFertser>
Why do not you flash daplink with better daplink firmware in that case?
vampirefrog has joined #openocd
nerozero has quit [Read error: Connection reset by peer]
nerozero has joined #openocd
slobodan has joined #openocd
<karlp1>
stlink-dap is also specific to some versions of stlink firmware isn' tit? it's probably not supported by clones anyway.
joconor has quit [Read error: Connection reset by peer]
joconor has joined #openocd
<Haohmaru>
yes, as long as such a firmware exists
<Haohmaru>
and most of the daplinks i've seen typically give you a prebuilt firmware and that's all
<Haohmaru>
so if you wanna build your own, you're kinda left to figure it out
<Haohmaru>
i know my kamami daplinks use the very small NXP chip.. what was it.. LPC11U35 or something like that, and i know they include the optional virtual-com-port, but then i think there are a few more possible options that might need to be matched (and figured out) if you wanna rebuild this firmware from source
<PaulFertser>
Haohmaru: come on, the reference daplink implementation is free software
<Haohmaru>
it doesn't matter until i become affected
<Haohmaru>
PaulFertser, IMO, kamami (and the others who make and sell daplinks) could've said "take the source code from <here>, change <these_things> and rebuild it"
<Haohmaru>
but maybe i'm too pretentious
<Haohmaru>
for me, dealing with a new MCU is already gonna be a huge puzzle, i don't want to deal with yet another puzzle around the debugger
<Haohmaru>
also if the PCB with the new MCU is designed by me, if "sh*t don't wurkz" is it because of my board, my soldering, my schematic, my connections, my firmware, or the debugger, or something else <- the fewer possibilities here - the better
<Haohmaru>
afaiu Cortex-M4 and M7 should be "the same" regarding the debugger, right? if my daplink works with M4F, it should also work with M7F
<Haohmaru>
so if that's correct then i'll be okay
<Haohmaru>
btw, i haven't assembled the new revision of my samd21_daplink yet, bluh
<Haohmaru>
oh, also, i think the NXP chip is one of the very very small ones in terms of flash and RAM, which isn't great if a lot of new important features come to "daplink" afterwards
<sys64738>
as of 0.11.0, openocd seems to have configuration files for the ATSAML10 and ATSAML11. however, trying to connect to it results in a "Error: Failed to read memory at 0xe000ed00";"Warn : target saml1x.cpu examination failed" error. does this mean there's no actual support for it, or only using the builtin debugger thingy on the xplained devboards (as opposed to me using an FT4232 here)? what's the
<sys64738>
status exactly?
<Haohmaru>
wait, are you having the SAML11 on a devboard that already includes a built-in debugger, and yet you're attaching another debugger to it?
<sys64738>
the chipwhisperer itself can act as an FTDI device, but the devs call it "a bit of a hack" so I checked again with my FT4232 and it has the same result, so it's not the chipwhisperer havving a buggy FTDI/MPSSE impl.
<sys64738>
anyway, I want to connect to that chip using openocd so I can flash some test firmware on it (on which I can then do SCA/FI stuff)
<Haohmaru>
so this blue board.. i guess it is powered independantly from the debugger, what voltage does the SAML11 run on?
<sys64738>
3.3V
<sys64738>
(IO, that is. 1.2V core)
<Haohmaru>
and the debugger is 3.3V hopefully or has level shifters
<sys64738>
it's 3.3V yes
<Haohmaru>
are your connections to the debugger proper?
<sys64738>
*sigh* yes, the chipwhisperer people also asked me this already. also, it's able to read the DPIDR right before throwing the "can't read from 0xe000ed00" error, so that's not hte issue
<Haohmaru>
so some of the SWD procedures that openocd does "work", but others don't?
<Haohmaru>
the other thing i can think of is that you could try a different openocd version, iirc 0.12.0 is a thing, i have it on debian stable even
<sys64738>
I've tried 0.11.0, 0.12.0, and whatever the latest git commit was last friday
<Haohmaru>
hm
<Haohmaru>
the other thing i can think of is speed.. could the SWD happen to be too fast or something
<sys64738>
the thing is, when reading the SAML11 datasheet, it seems like some magic MMIO pokes from the debugger are needed to put the "device service unit" in a state where the debugger can actually access the full system
<Haohmaru>
MMIO?
<Haohmaru>
ah, you mean special registers
<sys64738>
yeah
<sys64738>
and I've tried all this at 50 kHz, same result
<Haohmaru>
lemme see, i would've thought the SAML wouldn't be too different than the SAMD2x
<sys64738>
SAML2x probably is very similar, SAML1x is a bit different due to trustzone and stuff, necessitationg secure boot and other bullshit
<sys64738>
I can also see SAML2x flashing procedures etc. in the openocd source, but not SAML1x. idk if they're shared between the two (and badly named), or if it's just the case that someone added the tcl scripts for the saml1x without *actually* adding support
<Haohmaru>
wat the actual fuq have microsh*t done to the SAM product pages again, f*cking microsh*t
<Haohmaru>
everywhere they wanna click-bait me into PIC32
<Haohmaru>
so i see some "DAL0" and "DAL2" thing on one hand
<Haohmaru>
DebugAccessLevel2 is said to allow "highest debug features"
<Haohmaru>
i see some fishy "CPU Park mode"
<sys64738>
yeah, there are some "DCC0" and "DCC1" MMIO regs that have to be written to in order to put the CPU in said "park mode"
<sys64738>
which is what I meant by "magic MMIO writes"
<Haohmaru>
no clue then
<Haohmaru>
i wonder if maybe the openocd support for SAML11 is not quite complete
<Haohmaru>
because there is something like that for example for SAME5x and SAMD2x iirc
<sys64738>
feels like it at least
<Haohmaru>
there are a few features which can lock the chip and openocd doesn't have a way to unlock them, since it involves a particular "procedure"
<sys64738>
those shouldn't be active (I hope), as it should be a 100% blank chip
<sys64738>
(fwiw, I also do have a 100% blank chip straight from Farnell on a simple breakout PCB here, same result)
<Haohmaru>
yeah, and there some "Boot ROM" thing that additionally gets involved in this
<sys64738>
yeah, and dumping said bootrom (which normally isn't possible) is one of the reasons why I have this chipwhisperer glitching setup in the first place
<Haohmaru>
you wanna h4x0r it? ;P~
<sys64738>
more or less yeah
<sys64738>
mainly because it apparently has a hardware AES impl, but the datasheet only tells you to use ROM routines to use it
<sys64738>
which is Fishy
<sys64738>
(other people have already attacked the trustzone part anyway)
<Haohmaru>
huh
<Haohmaru>
well, i'm out of clues, you could wait for the wiser folks to say if they got any clues
<Haohmaru>
as for the samd5x and samd2x issue iirc i even tried to figure out what has to be done and modified openocd, but still couldn't manage to get it working
<Haohmaru>
one of the issues was about when you enable CodeProtection
<Haohmaru>
to remove it - you have to erase the chip, but iirc you no longer can do that with openocd
<Haohmaru>
i think some older version of openocd had a patch that can do it but the patch wasn't ever accepted
Poppy has joined #openocd
<karlp1>
sounds like it needs similar to the ti icepick stuff to enable dap access.
<karlp1>
zapb__: you added saml1x originally, ring any bells?
<Poppy>
Hello all, i'm working on ultra96v2 board (from avnet) based on Zynqmp. After modifying configuration I wad able to run openocd but I have some trouble to load the bootloader... If someone has already work on zynqmp any help will be appreciate. traces/logs --> https://pastebin.com/qDSaxwbL In any case, thanks for the work!
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
slobodan_ has joined #openocd
slobodan has quit [Ping timeout: 252 seconds]
slobodan_ is now known as slobodan
tlwoerner has joined #openocd
slobodan has quit [Changing host]
slobodan has joined #openocd
Poppy has quit [Quit: Client closed]
Deneb has joined #openocd
Poppy has joined #openocd
slobodan_ has joined #openocd
slobodan has quit [Ping timeout: 252 seconds]
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
Poppy has quit [Quit: Client closed]
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
slobodan_ has quit [Read error: Connection reset by peer]
<zapb__>
karlp1, not that I'm aware of?
<Haohmaru>
unless it was tested on a chip from the same family, but one which doesn't have the TrustZone crap?
<Haohmaru>
and/or ROM bootloader or whatever else makes this complicated
Haohmaru has quit [Quit: saionara]
<karlp1>
aren't you marc schink?? my apologies, I thought you were.
<karlp1>
must hav emixed you up somewhere.
key2 has joined #openocd
<zapb__>
karlp1, I'm but I cannot remember that I worked on SAML1x :D