How to stop breaking at reset

OP (Company: XC Comms Ltd) #1815005
Rate this post
• ▲ useful
▼ not useful
I am developing a number of projects for STM32 processors using Eclipse, 
gcc, gdb and an Olimex ARM-USB-OCD jTag dongle.

All works well, but every time I relaunch the project in debug mode the 
code stops at address 0x08000000.  The debug window displays 'No source 
available for "g_pfnVectors() " '. I can run the program to proceed to 
the next breakpoint, but it is a minor annoyance that this always 
happens.  Furthermore I suspect it is using up one of the 6 breakpoints 
provided by the STM32, which restricts debugging.

I launch gdb with the following commands:

target remote localhost:3333
monitor reset init
load
monitor reset init
break main

The first breakpoint it should hit is therefore at main(), which is 
where it stops after breaking at 0x08000000.  If I add 'continue' at the 
end of the gdb commands it doesn't break at 0x08000000, nor at main(), 
and not even at any other breakpoints I may have manually added!

Any ideas would be welcomed

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.