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

Could you include stlink-org / stlink project as a submodule? #1

Open
HrMitrev opened this issue May 28, 2020 · 1 comment
Open

Could you include stlink-org / stlink project as a submodule? #1

HrMitrev opened this issue May 28, 2020 · 1 comment

Comments

@HrMitrev
Copy link

Hi!
I'm using your project with nrf52840 + stlink + openocd as debugger. If I adjust manually the SRAM size it kind of works but it is unstable and crashes.
One of the problems is related to this one I think - stlink-org/stlink#780
the debug log from stlink when it crashes is:

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT
[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT
[!] send_recv STLINK_DEBUG_READMEM_32BIT
[!] send_recv send request failed: LIBUSB_

and the program is terminated even before the whole log is printed.

I tried to replace the libstlink.a with the latest release but it seems that it is not compiled for the correct toolchain and I'm not sure how to recompile it. Since you have compiled it successfully once could you add the whole souce as git submodule and readjust the makefile to compile it accordingly?

PS I'm quite interested in this project and would like to contribute if I can(obviously I'm a newbie). I'm thinking of adding dialog box to ask for SRAM size(and possibly the address) if the target ID is not recognized by the stlink driver. Also I'm trying to setup the project in Eclipse CDT so I can debug it properly(to the best of my abilities).

@HrMitrev HrMitrev changed the title Could you include stlink-org / stlink project as submodule? Could you include stlink-org / stlink project as a submodule? May 28, 2020
@trlsmax
Copy link
Owner

trlsmax commented May 30, 2020

Hi
Thanks for using this little software.
You can try to compile a new static lib from the source of stlink. It' easy if you use cmake.

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