kendryte / openocd-kendryte

GNU General Public License v2.0
23 stars 17 forks source link

Peripheral Register Access Problem #12

Open myamigo opened 4 years ago

myamigo commented 4 years ago

I'm preparing a Register Definition File (RDF) to make debugging easier with VisualGDB and I've found that the "Hardware Register" windows does not provide correct access to peripheral registers. I should be able to view the registers (and sub registers) and modify them but all bit's are reading high with no ability to modify them.

I get the same result when I use the memory browser and examine addresses near 0x50250000. It looks like OpenOCD is failing to read memory in the range 0x50200000 - 0x50300000 as well as the range 0x50400000 - 0x50500000, which is where most of the peripherals live.

Refer to post on Sysprogs... https://sysprogs.com/w/forums/topic/k210-register-definition-file-rdf/#post-27167

There's a link to the RDF in my Sysprogs post.

myamigo commented 4 years ago

I now realize that hardware registers aren't supported by this version of OpenOCD. That's unfortunate as I've almost completed the RDF. I would make it publicly available if it could be used but if OpenOCD doesn't support it then it looks like I've completely wasted my time :-(

cmdlet MCU_debug.ps1 at command pipeline position 1 Supply values for the following parameters: app: apu GNU gdb (GDB) 8.2 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-w64-mingw32 --target=riscv64-unknown-elf". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.

For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from apu...done. Remote debugging using 127.0.0.1:3333 warning: Target-supplied registers are not supported by the current architecture 0x0000000000000400 in ?? () (gdb)