Giter VIP home page Giter VIP logo

Comments (8)

ataradov avatar ataradov commented on August 28, 2024 1

There is no point mentioning that. This project is for my personal use. I don't care if it works for anyone else, but I'm happy if it does. So I will keep it in the state I like it to be.

I fix bugs like this as they come up for me or reported. Before you reported it, it was not a problem.

This is now fixed.

from edbg.

ataradov avatar ataradov commented on August 28, 2024

I'm not 100% clear on the scenario. Is the first trace not right after unplugging? Or is this intermittent.

In general it looks like the debugger does not respond. It is hard to tell why.

Also, does this board come with CMSIS-DAP debugger by default? Or you had to replace it with something? I might need to get one if this is the case?

from edbg.

ataradov avatar ataradov commented on August 28, 2024

I found that this board does come with CMSIS-DAP debugger. I've ordered one.

from edbg.

UweBonnes avatar UweBonnes commented on August 28, 2024

The traces are with running edbg in the debugger. An they are output of typing ^C after a long hang.

from edbg.

ataradov avatar ataradov commented on August 28, 2024

Yes, but I don't understated the difference between the successful and hanging runs.

How is pyocd important here? What happens if you just run edbg from a command line without GDB? Does it not work consistently when edbg is run by itself?

I've got a shipping notification for the board, it should be here next week.

from edbg.

UweBonnes avatar UweBonnes commented on August 28, 2024

I can fix by:
``diff --git a/edbg.c b/edbg.c
index c9e5113..2014652 100644
--- a/edbg.c
+++ b/edbg.c
@@ -346,8 +346,8 @@ void reconnect_debugger(void)
dap_transfer_configure(0, 128, 128);
dap_swd_configure(0);
dap_led(0, 1);

  • dap_reset_link();
    dap_swj_clock(g_clock);
  • dap_reset_link();
    }

Set frequency first, then reset the link.

from edbg.

ataradov avatar ataradov commented on August 28, 2024

Yes, this makes sense and a clear bug. Clock should be set before anything that actually toggles pins. I will fix that.

from edbg.

UweBonnes avatar UweBonnes commented on August 28, 2024

That is the profit that you have if you share code.

from edbg.

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.