NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
jancoow has quit [Quit: The Lounge - https://thelounge.chat]
jancoow has joined #openocd
Hawk777 has joined #openocd
wachag has joined #openocd
wachag has quit [Client Quit]
nerozero has joined #openocd
rkta has quit [Quit: zzz]
rkta has joined #openocd
crabbedhaloablut has joined #openocd
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
zkrx has quit [Ping timeout: 244 seconds]
zkrx has joined #openocd
wingsorc__ has quit [Ping timeout: 246 seconds]
chrysn[m] has quit [Quit: You have been kicked for being idle]
defiant has quit [Quit: defiant]
stefanct has quit [Read error: Connection reset by peer]
stefanct has joined #openocd
merethan has joined #openocd
<karlp> anyone got any advice on what might be wrong here? https://paste.jvnv.net/view/b3k4r
<karlp> it's an m33 according to realtek, not an m55, but it's also labeled a "REAL300" or something, so it might have a vendor difference, and we're not checking enough of the right bits for overlaps or something?
merethan has quit [Quit: Leaving]
<josuah> CORTEX_M55_PARTNO = 0xD22,
<josuah> that looks like being the cause... wrong partno detected/read?
<josuah> CORTEX_M33_PARTNO = 0xD21,
<josuah> it is a 2-bit error, could be a bit of delay for that last bit though if doing that every time that might not be the reason... also, not sure about how it's really encoded and CRC'ed on the wire
<josuah> in cortex_m.c:
<josuah> 2535 /* Get ARCH and CPU types */
<josuah> 2536 const enum cortex_m_partno core_partno = (cpuid & ARM_CPUID_PARTNO_MASK) >> ARM_CPUID_PARTNO_POS;
<josuah> And in the logs:
<josuah> Warn : [rtl8720dn.cpu.km4] karl: raw cpuid = 721fd220, core partno: d22
<josuah> so it looks like it matches?
<josuah> a bitmask field of the wrong size would not bring this I guess?
<josuah> 0xd22 = 0b 00001101 00100010
<josuah> 0xd21 = 0b 00001101 00100001
<josuah> Or did they get the partno wrong in silicon (purposedly or not) and hid it under their own software toolchains?
<Haohmaru> are there checksums of some kind in the SWD communication?
Haohmaru has quit [Ping timeout: 240 seconds]
nerozero has quit [Ping timeout: 246 seconds]
gzlb has quit [Ping timeout: 260 seconds]
gzlb has joined #openocd
<karlp> 6ok, so this is easy, the implementer field is not "ARM" so that's why it's off :)
<karlp> openocd doesn't even ook at the implementer field :)
vfazio has quit [Remote host closed the connection]
<borneoa___> karlp: interesting. We just got https://review.openocd.org/7812 that adds NXP Cortex -M33. We should check for implementer field there too
crabbedhaloablut has quit []
<karlp> I was _just_ about to start looking at how to rework it...
<karlp> I'm 99.9% sure that the STAR_MC1 proably has a different implementor field too, will try and see if tehre's enough info in it frrom when it was submitted to find out the rest of it.
<borneoa___> karlp: yes, there is also STAR_MC1. Maybe the author of that line can give us the full content of CPUID register
wingsorc__ has joined #openocd
<karlp> when I switch targets like this, shoudln't I then be reading the memory of te other part? https://paste.jvnv.net/view/hJuCk ?
<karlp> ah, you've already commented on that issue.
<karlp> I've replied to Yang Sheng on the star_mc1 issue, hopefully they reply
<borneoa___> karlp: if I remember correctly, in a gdb connection there is some limited support to change target. Use "monitor target_name mdw address"
<karlp> meh, f1x flash code uses cortex part number as a heuristic to guess what actual part it is,
<karlp> that's.. not really correct,
<karlp> I'm getting https://paste.jvnv.net/view/QSw9a trying to do a "git push review"
<karlp> I've just updated my commit hook though, perhaps it doesn't take affect afterwards?
zjason` has joined #openocd
zjason has quit [Ping timeout: 244 seconds]
<PaulFertser> karlp: try pushing to refs/for/master instead
<karlp> doh, I went over and checked that, from my old config, and misred that it was wrong there
<karlp> now it'ðs missing changeids...
<karlp> ffs, two hooks dirs again
<PaulFertser> git commit --amend will add that
<PaulFertser> Just one hook is enough
<karlp> no, it was in the .git/hooks not git-hooks
<karlp> so it wasn't actually running.
<karlp> nearly there :)
<karlp> https://review.openocd.org/c/openocd/+/7845 has the implementor bit at least, but we would need the star-mc1 cpuid to prevent regressions there,
zkrx has quit [Ping timeout: 250 seconds]
zkrx has joined #openocd
tsal has quit [Ping timeout: 244 seconds]
tsal has joined #openocd