Git Product home page Git Product logo

Comments (10)

thegecko avatar thegecko commented on September 22, 2024

Hi @soundart

There's a few things to check here....

I have not used cortex-debug before

Your launch.json config outlines you are using the cppdbg debugger which is from the cpptools extension, not cortex-debug extension.

Which device are you trying to debug and which debugger do you want to use?

svdPath": "${workspaceFolder}/vscode/svd/arm_uart_pl011.svd",

svdPath has recently been renamed to definitionPath, can you also check the path, as the .vscode folder has a dot in it.

This extension is standalone and should appear when the following conditions are met:

  • A debug session is started
  • Valid data is loaded from the svd file

You can check the latter by loading any valid svd file, e.g.:

{
           "name": "Qemu Attach with GDB",
           "type": "cppdbg",
           "request": "launch",
...
           "definitionPath": "https://pack-content.cmsis.io/NXP/K32L3A60_DFP/18.0.0/devices/K32L3A60/K32L3A60_cm4.xml",
...
  }

Please let us know if you still fail to see the peripheral window after trying this.

from vscode-peripheral-inspector.

soundart avatar soundart commented on September 22, 2024

from vscode-peripheral-inspector.

thegecko avatar thegecko commented on September 22, 2024

OK, I can see your confusion, which is my fault, sorry!

I assume you are using cortex-debug.svd-viewer? This is being deprecated in favour of clipse-cdt.peripheral-inspector (this repository).

Could you use the new extension, then try the definitionPath test above (pointing at the svd file url) to see if anything appears for you at all?

from vscode-peripheral-inspector.

soundart avatar soundart commented on September 22, 2024

from vscode-peripheral-inspector.

thegecko avatar thegecko commented on September 22, 2024

Visual studio still complains wrt definitionPath property.

Ah yes it would, because we cant control the parameters listed for the debugger you are using.

all register values are currently 0xeeeeeee

I can see the debugger is returning unreadableBytes so the debugger isnt happy with your request

No handler implemented for request type 'WriteMemoryRequest'

Your debugger doesn't support writing memory, perhaps we should handle that case in the extension?

from vscode-peripheral-inspector.

soundart avatar soundart commented on September 22, 2024

from vscode-peripheral-inspector.

thegecko avatar thegecko commented on September 22, 2024

And no "WriteMemoryRequest"

Oh dear, that means the adapter wont be able to write to memory. Its a bit drastic, but you may need to switch to using a different adapter.

Ones I know of which wrap gdb:

from vscode-peripheral-inspector.

soundart avatar soundart commented on September 22, 2024

Hi thank you very much for the help.

I am a bit surprised that memory writes are not supported. This sounds like a basic
functionality.

I think all extensions (except the svd viewer) which I am using are provided by microsoft itself.

I have seen this eclipse-cdt-cloud/cdt-gdb-vscode#119 and suspect it wont be easy to install that extension, or?

from vscode-peripheral-inspector.

thegecko avatar thegecko commented on September 22, 2024

I have seen this eclipse-cdt-cloud/cdt-gdb-vscode#119 and suspect it wont be easy to install that extension, or?

This is a debug adapter which wraps gdb and is maintained by the eclipse foundation (along with the svd viewer here). It isn't currently published on the vscode marketplace, but I believe there are plans to do this very soon (@jonahgraham ?).

In the meantime, you can clone the repo and build it locally to get a vsix package to install.

As of yesterday, you also have another option. We have just promoted the Arm Debugger extension to version 1 here:

https://marketplace.visualstudio.com/items?itemName=Arm.arm-debugger

It doesn't use gdb, but is a full-featured debugger and could be a good alternative for you.

from vscode-peripheral-inspector.

soundart avatar soundart commented on September 22, 2024

Thank you very much for your help!

from vscode-peripheral-inspector.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.