<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>
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,