Code Monkey home page Code Monkey logo

Comments (8)

fpistm avatar fpistm commented on June 2, 2024

You have to add svd file using debug_custon.json file. See the forum to know how to write json file.

from arduino_core_stm32.

PerennialNovice avatar PerennialNovice commented on June 2, 2024

I created a custom_debug.json with contents

{
    "svdFile": "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\SVD\STM32L4R5.svd"
}

in the sketch folder, but that did not work.

Then I changed the json to

{
    "svdFile": "STM32L4R5.svd"
}

and copied STM32L4R5.svd into the sketch folder, but it still does not work.

from arduino_core_stm32.

PerennialNovice avatar PerennialNovice commented on June 2, 2024

I also tried using different slashes for the path, no luck either ...

from arduino_core_stm32.

fpistm avatar fpistm commented on June 2, 2024

In fact since IDE 2.3.x, the debug has been reworked by Arduino.
I'm currently working to support the new way to support debug svd files.

from arduino_core_stm32.

fpistm avatar fpistm commented on June 2, 2024

For ref: arduino/arduino-ide#1920

from arduino_core_stm32.

PerennialNovice avatar PerennialNovice commented on June 2, 2024

I downgraded to 2.0.3 but I still don't get access to peripheral registers
So clearly, I am still doing something wrong :/

from arduino_core_stm32.

PerennialNovice avatar PerennialNovice commented on June 2, 2024

Oh my...
Just realized that you don't have to manualy create a watch expression, but that there is a complete peripheral register viewer...

...and for those who use sloeber
you can specify a svd-file to use in the debug launch configuration:
image

from arduino_core_stm32.

fpistm avatar fpistm commented on June 2, 2024

Here a way to get the svd properly load within Arduino IDE 2.3.2:
In the boards.txt add this line to the board entry you want:

Example for Nucleo L496ZG-P
Nucleo_144.menu.pnum.NUCLEO_L496ZG-P.debug.svd_file=C:\\ST\STM32CubeCLT_1.15.0\\STMicroelectronics_CMSIS_SVD\\STM32L4x6.svd

image

from arduino_core_stm32.

Related Issues (20)

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.