Giter Site home page Giter Site logo

Comments (6)

TerryGuo avatar TerryGuo commented on May 4, 2024

Hi Andrei,

My os is Ubuntu 11.10. And I can set the break point. See my screen copy:

(gdb) target extended-remote :4242
Remote debugging using :4242
0x0800b9ac in ?? ()
(gdb) load STM32F4-Discovery_Demo.elf
Loading section .isr_vector, size 0x188 lma 0x8000000
Loading section .text, size 0xb974 lma 0x8000188
Loading section .data, size 0x1a0 lma 0x800bafc
Start address 0x800b9ad, load size 48284
Transfer rate: 5 KB/sec, 9656 bytes/write.
(gdb) symbol-file STM32F4-Discovery_Demo.elf
Reading symbols from /home/terguo01/work/stlink/stlink/example/stm32f4/Projects/discovery_demo/STM32F4-Discovery_Demo.elf...done.
(gdb) b main
Breakpoint 1 at 0x800030a: file main.c, line 86.
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program:
Note: automatically using hardware breakpoints for read-only addresses.
main () at main.c:86
86 volatile float f1 = 1.1111111;

BR,
Terry

from stlink.

karlp avatar karlp commented on May 4, 2024

Get a GDB that was compiled with xml support. If it doesn't understand the memory map, I can't see much point in trying anything else

from stlink.

aistodorescu avatar aistodorescu commented on May 4, 2024

Can you please show me a toolchain that I can use?

Regards,
Andrei

from stlink.

TerryGuo avatar TerryGuo commented on May 4, 2024

You can try this tool chain https://launchpad.net/gcc-arm-embedded.

BR,
Terry

from stlink.

jsarenik avatar jsarenik commented on May 4, 2024

Error "Can not parse XML memory map; XML support was disabled at compile time" can be fixed by installing expat (http://expat.sourceforge.net/) development packages (e.g. expat-devel on Red Hat-like distros) and recompiling the debugger.

I had two machines. On one of those, expat-devel was not installed and though everything seemed to work (gdb connected to stlink's extended-remote), I got the error about XML and in the end that computer was unable to load any new code to STM32VLDISCOVER. Then I installed expat-devel (it was Fedora), recompiled whole toolchain (summon-arm-toolchain - https://github.com/esden/summon-arm-toolchain) and everything works like a charm.

Thanks for stlink and good luck!

from stlink.

manish2789 avatar manish2789 commented on May 4, 2024

Hi,
I have a stm32f3 discovery board and I have adc example.
I have started st-util with default port(4242), I have started in another terminal arm-none-eabi-gdb. I have used following commands, in gdb:
manish@manish-Inspiron-1501:~/my-wow-adc$ arm-none-eabi-gdb obj/STM32F4_Test.elf
GNU gdb (Sourcery CodeBench Lite 2013.05-23) 7.4.50.20120716-cvs
Copyright (C) 2012 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-pc-linux-gnu --target=arm-none-eabi".
For bug reporting instructions, please see:
https://sourcery.mentor.com/GNUToolchain/...
Reading symbols from /home/manish/my-wow-adc/obj/STM32F4_Test.elf...done.
(gdb) target remote localhost:4242
Remote debugging using localhost:4242
0x080077fc in Reset_Handler ()
(gdb) load
Loading section .isr_vector, size 0x188 lma 0x8000000
Loading section .text, size 0x7e34 lma 0x8000188
Loading section .ARM, size 0x8 lma 0x8007fbc
Loading section .init_array, size 0x4 lma 0x8007fc4
Loading section .fini_array, size 0x4 lma 0x8007fc8
Loading section .data, size 0x5b0 lma 0x8007fcc
Start address 0x80077fc, load size 34172
Transfer rate: 6 KB/sec, 4881 bytes/write.
(gdb) monitor reset
(gdb) b main
Breakpoint 1 at 0x80073f2: file src/main_temp.c, line 4.
(gdb) b main.c:4
No source file named main.c.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) b main_temp.c:4
Note: breakpoint 1 also set at pc 0x80073f2.
Breakpoint 2 at 0x80073f2: file src/main_temp.c, line 4.
(gdb) c
Continuing.
Note: automatically using hardware breakpoints for read-only addresses.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x080077fc in Reset_Handler ()

After that Program halts. I am not getting what "Note: automatically using hardware breakpoints for read-only addresses." statement trying to say and how i can solve this.

from stlink.

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.