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
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
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
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
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
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!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.