-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[STM32F103]: undefined symbol: init_chipids #1189
Comments
Hi, please show us an output of ldd for st-util.
чт, 16 сент. 2021 г., 11:48 MrZlo ***@***.***>:
… *Thank you for giving feedback to the stlink project.*
------------------------------
*NOTE: In order to offer sufficient and the best possible support, please
read /CONTRIBUTING.md and follow the given instructions before submitting a
ticket.*
*Bug reports and/or feature requests will be deleted, if they violate our
contribution guidelines and if no issue-template is used!* Thank you for
your support.
------------------------------
- I made serious effort to avoid creating duplicate or nearly similar
issue
In order to allow developers to isolate and target your respective issue,
please take some time to select the check boxes below and fill out each of
the following items appropriate to your specific problem.
- Programmer/board type: [STLINK V2] (e.g STLINK /V1, /V2,
/V2-onboard, /V2-clone, /V3)
- Operating system an version: [Fedora 34] (e.g Linux, macOS, Windows)
- *stlink tools version* and/or git commit hash: [v1.7.0-105-gdb8f789]
(e.g v1.6.1/git-d0416149)
- stlink commandline tool name: [st-util] (e.g st-info, st-flash,
st-trace, st-util)
- Target chip (and board, if applicable): [STM32F103] (e.g
STM32F103C8T6 (NUCLEO-F103RB))
Further we kindly ask you to describe the detected problem as detailed as
possible and to add debug output if available, by using the following
template:
I'm trying troubleshoot and debug some code on board with st-util and
arm-none-eabi-gdb, but i can't startup server with st-util.
Commandline output:
❯ st-util
st-util 1.7.0-105-gdb8f789
st-util: symbol lookup error: st-util: undefined symbol: init_chipids
Expected/description:
I expected startup of gdb server on port 4242.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1189>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMAU4LMORQZMI6BOG2N52LUCGVNZANCNFSM5EEHQCTQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hello,
|
Try to run LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/st-util
чт, 16 сент. 2021 г., 12:16 MrZlo ***@***.***>:
… Hello,
❯ ldd /usr/local/bin/st-util
linux-vdso.so.1 (0x00007ffeb0fe8000)
libstlink.so.1 => /lib64/libstlink.so.1 (0x00007f06f9786000)
libusb-1.0.so.0 => /lib64/libusb-1.0.so.0 (0x00007f06f9769000)
libc.so.6 => /lib64/libc.so.6 (0x00007f06f959a000)
libudev.so.1 => /lib64/libudev.so.1 (0x00007f06f956e000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f06f954d000)
/lib64/ld-linux-x86-64.so.2 (0x00007f06f97bf000)
librt.so.1 => /lib64/librt.so.1 (0x00007f06f9542000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f06f9514000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f06f94f9000)
libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f06f9462000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f06f945b000)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1189 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMAU4MVMKQUSF723YYBCSDUCGYWFANCNFSM5EEHQCTQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
|
@MrZloHex Do you remember or can find where is installed *libstlink.so.1.7.0 from you build? |
I installed Should I find the path to libstlink.so.1.7.0? |
You should find out where is installed |
But how to understand which of those is using for |
@MrZloHex, where did you get |
@slyshykO ❯ /usr/local/bin/st-util
st-util 1.7.0-105-gdb8f789
/usr/local/bin/st-util: symbol lookup error: /usr/local/bin/st-util: undefined symbol: init_chipids
❯ /usr/local/bin/st-util --version
v1.7.0-105-gdb8f789 |
@MrZloHex Yes, where does that revision come from? |
from |
Syncing installed lib with the st-link bin solved the issue in my case: Purged both the lib and installed bin:
libstlink.so.1 was previously = 0x00007f88c8e4c000 Probably it's also the same solution for Fedora (just switching from apt to dnf). Apparently when uninstalling Thanks @slyshykO |
@mariobaldini @MrZloHex Please report this to the Fedora package maintainer downstream. |
Thank you for giving feedback to the stlink project.
NOTE: In order to offer sufficient and the best possible support, please read /CONTRIBUTING.md and follow the given instructions before submitting a ticket.
Bug reports and/or feature requests will be deleted, if they violate our contribution guidelines and if no issue-template is used! Thank you for your support.
In order to allow developers to isolate and target your respective issue, please take some time to select the check boxes below and fill out each of the following items appropriate to your specific problem.
st-info
,st-flash
,st-trace
,st-util
)Further we kindly ask you to describe the detected problem as detailed as possible and to add debug output if available, by using the following template:
I'm trying troubleshoot and debug some code on board with
st-util
andarm-none-eabi-gdb
, but i can't startup server withst-util
.Commandline output:
Expected/description:
I expected startup of gdb server on port 4242.
The text was updated successfully, but these errors were encountered: