Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAPLink not rebooting after flashing #786

Closed
davidalo opened this issue Feb 26, 2021 · 3 comments
Closed

DAPLink not rebooting after flashing #786

davidalo opened this issue Feb 26, 2021 · 3 comments

Comments

@davidalo
Copy link

Hi everyone,

I am trying to use DAPLink project for our custom boards. We currently use GCC ARM as our reference compiler, so, as I saw in #197 there are some developments (thanks @flit) in this area.

I have built successfully DAPLink for a K20 with our board using feature/gcc , and it is working as expected, it starts, it programs the main MCU and so on. But, I am having an issue, when it flashes the board, DAPLink does not restart.

It seems to be non-fatal but it is. If I upload multiple binaries with different names, the older binaries are not deleted and binaries are kept in the memory.

This can causes 2 problems:

  1. Device can run out of memory.
  2. When running mbed tests over the board, the binaries are kept and (I think it is due alphabetical selections) it takes incorrect binaries to run the tests, so it fails!.

By exploring the code, I saw that the problem is here: https://github.com/ARMmbed/DAPLink/blob/master/source/daplink/drag-n-drop/vfs_user.c#L309

If I change this if to:

    if (daplink_is_interface() && config_ram_get_hold_in_bl()) {
        SystemReset();
    }

I saw that it is a change added in v0254 version, see commit.

Can anyone give me an idea if I need to configure anything?
Thanks in advance.

@mathias-arm
Copy link
Collaborator

Could you try using the experimental_compilers branch? I has seen a lot of work since flit:feature/gcc and I don't remember seeing this issue when doing my tests on k20dx (I use a FRDM-K64F).

@davidalo
Copy link
Author

davidalo commented Jun 8, 2021

I didn't know about that branch. I will try and give you feedback asap.
Thanks for your response.

@davidalo
Copy link
Author

Thanks for your response, @mathias-arm . You were right, I have just tried that branch and it is working as expected!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants