Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Bertl_zZ is now known as Bertl
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 240 seconds]
Krazubu has joined #openocd
<zapb_>
karlp, it's a CMSIS-DAP problem, right? Because I successfully flashed a gd32vf103 device
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 260 seconds]
analoq has joined #openocd
c4017w_ has joined #openocd
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
c4017w__ has quit [Ping timeout: 256 seconds]
analoq has quit [Remote host closed the connection]
<zapb_>
is there an easy way to determine the cortex-m core type (m0, m3, m4, ..) via Tcl?
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 240 seconds]
<karlp>
zapb_: no, it's an openocd problem, becuase it flashes ok with the same cmsis-dap debugger usingthe riscv-openocd fork.
<karlp>
but I'll dig it more later tonight and see if I can narrow it down.
<karlp>
kinda glad I have a gd32vf103 target to check my basic setup before I get to the more exotic riscv core :)
Krazubu has joined #openocd
<borneoa_>
zapb_: when you dump the ROM table with "dap info" you should get something about the core type
c4017w_ has joined #openocd
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
c4017w__ has quit [Ping timeout: 272 seconds]
Krazubu has joined #openocd
Bertl is now known as Bertl_oO
<zapb_>
borneoa_, I was thinking about a Tcl command to get this info, would be much easier. What do you think?
<zapb_>
core type and arch type
<antto>
karlp, is that a gdlink programmer?
<borneoa_>
zapb_: what is the use case? Usually this info is needed to write the config file, and dap info should be enough. Then src/target/cortex_m.c need it for internal stuff
<zapb_>
borneoa_, I want to check what core I have to use it for TPIU config
<borneoa_>
zapb_: the topic should be listed in the config file. It can be found from dap info. I started listing all the cortex-m configs to find which need it, but with some I can only guess
<borneoa_>
zapb_: s/topic/tpiu/
<zapb_>
borneoa_, to make it more concrete: I want to add tpiu support for efm32. we have a single config but m0+ devices do not have tpiu. So either we have different configs or have some kind of auto-detection
<zapb_>
borneoa_, IMO dap info is not suitable because it has "human style output" and should not be used for Tcl scripts
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Krazubu has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 240 seconds]
<borneoa_>
zapb_: for sure m0 and m0+ don't have tpiu. But tpiu is optional for m3, m4, m7, ... With a single script for many possible CPUs I would suggest to read the ID registers of the tpiu to check if it is present. Or simply add it in the config and let the tpiu driver to verify it is there (not sure current driver does it already)
nerozero has quit [Ping timeout: 256 seconds]
zjason has quit [Read error: Connection reset by peer]
zjason has joined #openocd
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
Krazubu has joined #openocd
<zapb_>
borneoa_, simply adding it to the config would throw an error or warning if not present, right?
<borneoa_>
zapb_: with current code I'm not sure. But driver can be improved to run the check. The problem is that there are several implementations of tpiu, we need to cover them all. We need to find a common pattern to identify if tpiu is present
<zapb_>
borneoa_, I agree, tpiu seems quite complicated at the moment, maybe even buggy (have to verify again). took me quite a while to get it running
<zapb_>
borneoa_, are you working on tpiu "at the moment" ?
<borneoa_>
zapb_: no, long time I didn't used it
<zapb_>
borneoa_, okay, good to know. Maybe I find some time to work on it
<borneoa_>
zapb_: in the first comment of the code are listed the documents I have used. I can try to reopen them to look for the common pattern
<zapb_>
borneoa_, would be nice
<zapb_>
borneoa_, btw, there is a fix for a segfault bug on gerrit
<zapb_>
would be nice to have it merged soon
<zapb_>
segfault on 'tpui create'
<borneoa_>
zapb_: just reviewed. Minor typo in commit msg
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
<zapb_>
borneoa_, thanks
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Krazubu has joined #openocd
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
c4017w_ has joined #openocd
<borneoa_>
zapb_: just sent you a summary by email. We can check ARM_CS_C9_DEVTYPE.
c4017w__ has quit [Ping timeout: 245 seconds]
<zapb_>
borneoa_, thanks!
akaWolf has quit [Read error: Connection reset by peer]
c4017w__ has joined #openocd
crabbedhaloablut has quit [Quit: No Ping reply in 180 seconds.]