gzlb has quit [Read error: Connection reset by peer]
gzlb has joined #openocd
tlwoerner has quit [Remote host closed the connection]
tlwoerner has joined #openocd
Hawk777 has quit [Ping timeout: 268 seconds]
Hawk777 has joined #openocd
tlwoerner_ has joined #openocd
uartist0 has joined #openocd
dliviu has quit [Ping timeout: 260 seconds]
Yamakaja_ has joined #openocd
bencoh_ has joined #openocd
gzlb_ has joined #openocd
renrelkha_ has joined #openocd
xphn_ has joined #openocd
gzlb has quit [*.net *.split]
tlwoerner has quit [*.net *.split]
renrelkha has quit [*.net *.split]
bencoh has quit [*.net *.split]
Pokey has quit [*.net *.split]
Getty has quit [*.net *.split]
xphn has quit [*.net *.split]
uartist has quit [*.net *.split]
Yamakaja has quit [*.net *.split]
uartist0 is now known as uartist
Pokey has joined #openocd
dliviu has joined #openocd
drath42_ has joined #openocd
dnm_ has joined #openocd
bryanb_ has joined #openocd
dreamcat4_ has joined #openocd
lh has quit [Ping timeout: 240 seconds]
geep_ has joined #openocd
mawk` has joined #openocd
nohit_ has joined #openocd
NishanthMenon_ has joined #openocd
Steffanx_ has joined #openocd
tlwoerner_ has quit [Quit: Leaving]
Pokey has quit [*.net *.split]
Fleck has quit [*.net *.split]
karlp has quit [*.net *.split]
Steffanx has quit [*.net *.split]
tlwoerner has joined #openocd
Steffanx_ is now known as Steffanx
Pokey has joined #openocd
geep has quit [*.net *.split]
a3f has quit [*.net *.split]
dreamcat4 has quit [*.net *.split]
dnm has quit [*.net *.split]
drath42 has quit [*.net *.split]
mawk has quit [*.net *.split]
bryanb has quit [*.net *.split]
nohit has quit [*.net *.split]
NishanthMenon has quit [*.net *.split]
mawk` is now known as mawk
NishanthMenon_ is now known as NishanthMenon
dnm_ is now known as dnm
dreamcat4_ is now known as dreamcat4
drath42_ is now known as drath42
bryanb_ is now known as bryanb
nohit_ is now known as nohit
lh has joined #openocd
karlp has joined #openocd
Fleck has joined #openocd
a3f has joined #openocd
Hooligan has joined #openocd
Hooligan has quit [Remote host closed the connection]
Hooligan has joined #openocd
Hooligan has quit [Remote host closed the connection]
nerozero has joined #openocd
Hawk777 has quit [Quit: Leaving.]
slobodan__ has joined #openocd
dinkelha1 has quit [Quit: WeeChat 3.5]
dinkelhacker has joined #openocd
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
slobodan__ has quit [Read error: Connection reset by peer]
slobodan__ has joined #openocd
zkrx has quit [Ping timeout: 252 seconds]
MGF_Fabio has joined #openocd
zkrx has joined #openocd
wingsorc has quit [Quit: Leaving]
urja has quit [Ping timeout: 252 seconds]
urja has joined #openocd
MGF_Fabio has quit [Ping timeout: 240 seconds]
crabbedhaloablut has quit []
crabbedhaloablut has joined #openocd
Hawk777 has joined #openocd
urja has quit [Quit: WeeChat 4.0.2]
urja has joined #openocd
zjason`` has quit [Read error: Connection reset by peer]
zjason`` has joined #openocd
nerozero has quit [Ping timeout: 260 seconds]
slobodan__ has quit [Ping timeout: 264 seconds]
PlasmaHH has joined #openocd
<PlasmaHH>
Hi, is there any monitor command that can be used to read the targets mcu name/id/whatever ( whatever is necessary to figure out the correct svd file that matches )?
<Hawk777>
There’s probably a better way to do it, but I’ve got a script that invokes “scan_chain” and parses its output to get the JTAG IDCODEs.
<Hawk777>
Depending on what kind of ID information you’re looking for that may or may not give you want you want.
<PaulFertser>
Yeah, not sure there's any sensible universal way, unfortunately.
<PaulFertser>
Some flash drivers might give detailed enough information about part.
<PlasmaHH>
Hawk777: hm, there doesn't seem to be a monitor command scan_chain for me
<PaulFertser>
But not sure about it too since many MCUs come in different packages with the same internals.
<PaulFertser>
PlasmaHH: scan_chain was always there and still is.
<PaulFertser>
Probably you're connected with SWD?
<PlasmaHH>
yes
<PaulFertser>
Then no JTAG ID for you sorry :)
<PaulFertser>
"flash info 0" is the best I can offer I'm afraid.
<Hawk777>
Is there a command that would fetch the SWD ID number?
<PaulFertser>
Probably but all cortex-m0 will have same ID, all cortex-m0+ same other ID etc.
<Hawk777>
I forget what it’s called, the one that’s basically equivalent to JTAG IDCODE, SWIDR or something?
<Hawk777>
Yeah, that is true, hence why I said “depending on what kind of ID information you’re looking for”.
<PaulFertser>
SVD file is probably good for whole family like e.g. stm32f4
<Hawk777>
Could also use memory read commands to poke at the ID memory locations that ST has and most of the others probably do somewhere too.
<PlasmaHH>
PaulFertser: not quite,I have 11 different f4 svd files...
<PlasmaHH>
they all have sometimes different peripherals and thus not all registers are defined
<PlasmaHH>
e.g. main difference between U585 and U575 is the crypto stuff etc.
<PaulFertser>
PlasmaHH: if there's a way to do what you want it must be vendor and device specific :(
<PlasmaHH>
PaulFertser: it seems at least some debuggers seem to be able to do it... so they might have implemented tons of different vendor specific ways then...