trlsmax / rtt_stlink

Simple SEGGER RTT client for ST-Link
35 stars 19 forks source link

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

Open HrMitrev opened 4 years ago

HrMitrev commented 4 years ago

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 - https://github.com/stlink-org/stlink/issues/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 [!] sendrecv 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).

trlsmax commented 4 years ago

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.