Comments (6)
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.
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.
Can you please show me a toolchain that I can use?
Regards,
Andrei
from stlink.
You can try this tool chain https://launchpad.net/gcc-arm-embedded.
BR,
Terry
from stlink.
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.
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)
- STLinkv3: UDEV rules in Debian not matching STLINK-V3MINIE HOT 1
- [STM32G0B1RE / Nucleo G0B1RE]: False chip id reading HOT 2
- [STM32F103] stlink programmers are disappearing after running probing twice. HOT 2
- [STM32U575RGT6]: Verification failed at offset 43008 HOT 9
- [feature] Show all info during full erase HOT 13
- Latest release stlink-1.8.0-win32 doesn't run HOT 8
- Can't build stlink 1.8.0 for Fedora HOT 8
- [feature] Caching and diffing bin/hex HOT 1
- Update on #1357 HOT 1
- [feature] Read/write operations on external SPI Serial Flash Memory HOT 1
- STM32H7A: Flash write fails on second page HOT 2
- Compiling stlink with Raspberry Pi fails for v1.8.0 HOT 2
- Cmake minimal version mismatch HOT 1
- Debian 11 x64 doesn't work with v1.8.0 because of incompatible glibc HOT 3
- When I build stlink on windows, it says libusb not found HOT 1
- [feature] Just a question .. about next release and ... clones ... HOT 2
- CH32F103C8T6: Flashing fails because of timeout HOT 1
- [feature] Nucleo-H563ZI Board not recognized
- [STM32L4R5ZI]: gdb-multiarch uses wrong osabi
- [STM32L471RG]: STLINKV3 : can't flash the device. Programmer not supported ? 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 stlink.