Comments (5)
This package includes QEMU and qemu-system-arm I found it because it was linked from the qemu website
from embedonomicon.
I have an issue with the windows version of Qemu 3.0.0 but in an Ubuntu VM I could run the exact same binary fine with Qemu 2.5.0. I haven't tried that version on windows yet.
After forwarding the gdb port on the VM back to windows, I could get arm-none-eabi-gdb to work but had issues with the windows version of LLDB.
from embedonomicon.
All the tools work with the exception of debugging as mentioned above.
LLDB Version used and output when trying to connect to Qemu:
λ lldb --version
lldb version 6.0.1
λ lldb target\thumbv7m-none-eabi\debug\app
(lldb) target create "target\\thumbv7m-none-eabi\\debug\\app"
Current executable set to 'target\thumbv7m-none-eabi\debug\app' (arm).
(lldb) gdb-remote 3333
Process 1 stopped
* thread #1, stop reason = signal SIGTRAP
frame #0: 0xffffffffffffffff
(lldb)
Qemu used:
λ qemu-system-arm --version
QEMU emulator version 3.0.0 (v3.0.0-11723-ge2ddcc5879-dirty)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
Using arm-eabi-gdb downloaded from here: http://gnutoolchains.com/arm-eabi/ debugging is working as shown in the examples.
arm-eabi-gdb output:
λ arm-eabi-gdb.exe target\thumbv7m-none-eabi\debug\app
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from target\thumbv7m-none-eabi\debug\app...done.
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
Reset () at D:\rust\embedded\rt\src\lib.rs:12
12 pub unsafe extern "C" fn Reset() -> ! {
(gdb) b DefaultExceptionHandler
Breakpoint 1 at 0xda: file D:\rust\embedded\rt\src\lib.rs, line 76.
(gdb) continue
Continuing.
Breakpoint 1, DefaultExceptionHandler () at D:\rust\embedded\rt\src\lib.rs:76
76 loop {}
(gdb)
from embedonomicon.
@nateglims @LokiFaun Thanks a lot for testing this!
Since you (and some macOS users) are having issues with LLDB I'll change the text to recommend and use GDB.
Also, could you tell me from where you installed qemu-system-arm? I'd like to add a small setup section similar to this one but for Windows.
from embedonomicon.
I installed from the same link @nateglims mentioned.
from embedonomicon.
Related Issues (20)
- Links need to be updated for new books location HOT 1
- Reminder: Back out hardcoded mdbook v0.2.1 version HOT 2
- gcc-arm-none-eabi Install instructions out of date for Ubuntu 18.04? HOT 6
- no files found ./target/thumbv7m-none-eabi/debug/deps/app-*.o
- remedy for `eh_personality` error HOT 2
- Link error in memory layout example
- Travis builds are failing HOT 2
- grep command has wrong case HOT 1
- CI could be more flexible when checking objdumps
- Some examples produce warnings when run
- Add Software Guide Posts for Board Crate Writers
- Question about EXTERN(RESET_VECTOR) HOT 2
- The proposed DMA API is unsafe HOT 1
- Imlementation of Entirely new Embedded Architecture for Rust HOT 1
- Endless copy loop: Incorrect implementation or wrongly compiled? HOT 6
- Nightly/newer versions of llvm-binutils no longer recognize `--arch-name`
- Update CI
- --no-show-raw-insn with one '-' at start in examples HOT 3
- Exception Handling vector table objdump addresses inconsistent
- Address of functions missing in dissassembly
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 embedonomicon.