EmbDev.net

Forum: ARM programming with GCC/GNU tools Anyone has the GDB inicialization commands to debug in LPC1768?


von camilo c. (Company: Student) (bikebogota)


Rate this post
0 useful
not useful
Hi! My question is simple:

Which GDB commands to use in Eclipse with my LPC1768 target and an 
OpenOCD-usb interface? believe me, I cant find them in the internet.

Thanks,

von Oliver (Guest)


Rate this post
0 useful
not useful
Believe me, you can ;)

A good starting point ist the Yagarto-page.

Oliver

von camilo c. (Company: Student) (bikebogota)


Rate this post
0 useful
not useful
Hi. Yagarto shows examples for other targets, not my LPC1768, and 
yagarto's commands are not compatible.

If anyone has the commands please post them.

von Michael F. (mifi)


Rate this post
0 useful
not useful
Hello,

take a look at the page:
http://www.yagarto.de/howto/examples/index.html

Here you will find a LPC1768 example too.
But you must "translate" the GDB commands
to OpenOCD.

Regards,
Michael

von camilo c. (Company: Student) (bikebogota)


Rate this post
0 useful
not useful
Hi...

I will answer myself:
I found the commands in a polish website:
http://www.freddiechopin.info/index.php ... y/35-arm/5 
9-arm-toolchain-tutorial?start=4

monitor reset
Monitor soft_reset_halt
MWW monitor 0xE01FC040 0x0002
load


I also put in the run commands:

monitor reg r13 = (0x10000000)
monitor reg pc = (0x10000004)
continue


That was all, but it was so difficult to find. Now i can debug on chip 
with my LPC1768!

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.