Giter Site home page Giter Site logo

Comments (2)

maxgerhardt avatar maxgerhardt commented on June 19, 2024

Adding

            print("For package " + str(package) + " interface " + str(interface_name) + " use conditions: " + str(use_conditions))

before

if not any(use_conditions) and package_name in self.packages:
del self.packages[package_name]
else:
self.packages[package_name]["optional"] = False

shows

> pio debug --interface=gdb -- -x .pioinit
For package tool-jlink interface jlink use conditions: [False, False, False, False]
For package tool-openocd interface cmsis-dap use conditions: [False, False, False, False]
For package tool-dfuutil-arduino interface dfu use conditions: [False, False, False, False]
For package tool-bossac interface sam-ba use conditions: [False, False, False, True]

And so the tool-openocd package is thrown out.

Edit: Rewriting the conditions to

                use_conditions.extend(
                    [
                        interface_name in board_config.get(key, "")
                        for key in ("debug.onboard_tools", "debug.default_tools", "upload.protocol")
                    ]
                )

Does make the OpenOCD package get included but I think it'll always be included then. Maybe something is wrong with the initilaization oder so that cmsis-dap is not in debug.default_tools or selected in this debug config.

from platform-renesas-ra.

valeros avatar valeros commented on June 19, 2024

Thanks for reporting, should be fixed in the dev branch.

from platform-renesas-ra.

Related Issues (17)

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.