Go to advanced search

by shantanu
Thu Dec 20, 2012 7:48 am
Forum: Bare metal, Assembly language
Topic: Debugging Assembly code using GDB
Replies: 10
Views: 5589

Re: Debugging Assembly code using GDB

Or is it because in OS environment, we can't access hardware directly;
It should be through files(device nodes) ?
Is there any way to debug in such a scenario?
by shantanu
Thu Dec 20, 2012 5:34 am
Forum: Bare metal, Assembly language
Topic: Debugging Assembly code using GDB
Replies: 10
Views: 5589

Re: Debugging Assembly code using GDB

Thanks ! I was thinking whether I can directly debug on raspbian distro. So I tried this : [email protected] ~/OSonPi/self-tried $ as -g 1_led_on.s [email protected] ~/OSonPi/self-tried $ ls 1_led_on.s 3_function 5_flashing_morse_code template 2_led_blink.s 4_timer_blink a.out test.c [email protected] ~/OSon...
by shantanu
Wed Dec 19, 2012 10:10 am
Forum: Bare metal, Assembly language
Topic: Debugging Assembly code using GDB
Replies: 10
Views: 5589

Re: Debugging Assembly code using GDB

Are you sure about ulink? http://www.raspberrypi.org/phpBB3/viewtopic.php?p=16199 folks are saying it does not support ARM11 :oops: I also have Stellaris Launchpad with 'In Circuit Debug Interface'. Can I use its Debug circuitry anyhow ?? If not, what exactly I need to do to get GDB feature working ...
by shantanu
Wed Dec 19, 2012 9:13 am
Forum: Bare metal, Assembly language
Topic: Debugging Assembly code using GDB
Replies: 10
Views: 5589

Re: Debugging Assembly code using GDB

Thanks Tufty !
I have the u-link JTAG adapter. Is it compatible ? Anyone tried debugging with JTAG yet ??

Also, Qemu setup for windows is very straightforward.
http://sourceforge.net/projects/rpiqemuwindows/

Have not tried setting it up on Linux :(
Any good links on that ?
by shantanu
Wed Dec 19, 2012 5:33 am
Forum: Bare metal, Assembly language
Topic: Debugging Assembly code using GDB
Replies: 10
Views: 5589

Debugging Assembly code using GDB

Hi everyone, I tried tutorials of 'Baking Pi'. It was fun doing that :) http://www.cl.cam.ac.uk/freshers/raspberrypi/tutorials/os/ok03.html I am trying to write programs by my own logic. So could anybody tell me how t use GDB for debugging assembly programs ?? I tried these commands : arm-none-eabi-...

Go to advanced search