Comments (12)
I convert the elf file to bin file and download it to the board.
But I run the trace example, and set the trace_address as the entry of main, set the breakpoint_address as a point in the main function. But I don't get any instruction. I don't get any error. How can I get the instruction in the trace.
from pylink.
And I meet the question that "No handlers could be found for logger "pylink.jlink"", how can I do?
Thank you very much.
from pylink.
Sorry for getting back to you so late. You need to great a bin (or hex) file from the ELF file to flash to your device. The no handlers message that pops up means that the library attempted to log a message (could be informational, error, etc.), but there was no handler to do so. To enable logging, you should do something like:
import logging
logging.basicConfig(level=logging.INFO)
or logging.DEBUG
, logging.ERROR
, etc. depending on what logging level you want.
from pylink.
I get it. Thank you for your help.
I run the trace example but there is no instructions in trace, how can I do?
from pylink.
The example should work provided the addresses are valid (come from the disassembly of the binary file). That would be my suggestion, otherwise I'm unsure of what the issue would be. I'd ensure that the device you're using supports instruction tracing as well (the info command from the CLI will tell you that: pylink info -p
).
from pylink.
Thank you for your help. May be the address I set was wrong, I reset the address and it run success.
Now I can get the trace when it hit the breakpoint, but how can I get the instructions when it is running.
from pylink.
I'm so sorry that I have so much question.
I run the Strace example to get the trace, but the example do not return all the address in the trace.
the trace I want is
and the STrace example is:
the result I got is:
there are two address was missed: 0x80001b8 and0 x80001ba
I got other trace, sometime it is completed, but sometime some address was missed.
the project I run was come from the jlink website:
J-Trace_PRO_CortexM_Tutorial
from pylink.
Thank you for your help. May be the address I set was wrong, I reset the address and it run success.
Now I can get the trace when it hit the breakpoint, but how can I get the instructions when it is running.
STrace only allows you to do a capture between two points; it stops at the second point (the break point), and you can dump the trace. If you want a trace while the target is running, you have to use something like ETM, but the FIFO queue can fill up, and wrap (I think), meaning you'll have to at some point stop the target, and flush the queue. Reading the ETM registers may or may not be possible while the target is running; I've never tried that.
from pylink.
I know the ETM, I want to get the trace with C or python code, but I don't buy the JLink SDK. So I don't know which API can I use.
from pylink.
I meet a question that I can't start the RTT.
The board I use is STM32F407VE.
The main() is
And I get the result
How can I get the expection reason
from pylink.
I can run it, thank you very much
from pylink.
I meet some question in the rtt example.
My source code is that:
when I run the rtt example, I just can input only once, it while run automaticly with none input, the result is that:
the python file I run is the example you provide.
from pylink.
Related Issues (20)
- connect("nrf52") raises "ValueError: Invalid index." HOT 5
- Tests fail on some architectures (using unittest.mock) HOT 2
- Pylink locks up on connect command HOT 2
- nRF5340 flashing issue: Failed to prepare for programming. Could not preserve target memory. HOT 6
- RTT Autodetect works with J-Link RTT Viewer, but for pylink I have to explicitly provide the address HOT 1
- AttributeError: module 'pylink' has no attribute 'JLink'. HOT 9
- Loading library on Aarch64 fails because pylink attempts to load 32-bit library HOT 2
- pylink.errors.JLinkFlashException: Could not write target memory when trying to flash a .hex file. HOT 1
- Error when programming or erasing Kinetis microcontrollers HOT 3
- pylink.errors.JLinkException: Could not find supported CPU HOT 24
- pylink.JLink.rtt_read blocks indefinitely when no data is available? HOT 1
- Specify JLinkScript file HOT 1
- CORESIGHT_AddAP doesn't execute HOT 6
- Can support C-JTAG HOT 14
- Unlocking STM32L0 HOT 1
- custom ResetTarget function in pylink HOT 7
- Error "Failed to perform RAMCode-sided Prepare()" Fail "JLinkFlashException: Unspecified error." HOT 2
- rtt_write only working when I have JLink RTT viewer open HOT 8
- Downloading Firmware image to Cortex Fails HOT 2
- 1.2.0: Some tests are incompatible with Python 3.12 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylink.