Git Product home page Git Product logo

Comments (5)

nateglims avatar nateglims commented on May 16, 2024 1

This package includes QEMU and qemu-system-arm I found it because it was linked from the qemu website

from embedonomicon.

nateglims avatar nateglims commented on May 16, 2024

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.

LokiFaun avatar LokiFaun commented on May 16, 2024

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.

japaric avatar japaric commented on May 16, 2024

@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.

LokiFaun avatar LokiFaun commented on May 16, 2024

I installed from the same link @nateglims mentioned.

from embedonomicon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.