pyocd / pyOCD

Open source Python library for programming and debugging Arm Cortex-M microcontrollers
https://pyocd.io
Apache License 2.0
1.13k stars 483 forks source link

LPC1768: Timeout waiting for gdb server to start #1182

Open avotolato opened 3 years ago

avotolato commented 3 years ago

I am using MBED Studio 1.4.1 to try to debug a problem with an LPC1768 processor and every time I try to start the debugger I get the message "Timeout waiting for gdb server to start". Yet, when I start the debugger with "pyocd gdb --target lpc1768" it starts and keeps running. I looked up the problem and there was some discussion around 1.11.1 but nothing for 1.4.1.. They suggested that that person run pyocd with a supplied pyocd.yaml file, which I did and got the following: pyocd_jlink_log.txt

Can you help me get the debugger working?

flit commented 3 years ago

Fyi, I believe GitHub timed out because the issue comment was so large with the inlined log. It was timing out even as I tried to close the duplicate issues!

flit commented 3 years ago

The short answer is that Mbed Studio doesn't yet support the LPC1768. It's a known issue but unfortunately hasn't been resolved yet afaik.

Are you using the Mbed LPC1768 board? Doesn't seem like it since it looks like you're using a J-Link, but I wanted to check.

Anyway, I'll take a look at the log and see if anything stands out.

avotolato commented 3 years ago

Thanks Chris,

No, I'm using a custom board. When do you think the LPC1768 might be ready? When do you think Mbed Studio might support individual debuggers since some designs have to go to custom boards eventually?

Thanks, again,

On Mon, Aug 2, 2021 at 4:58 PM Chris Reed @.***> wrote:

The short answer is that Mbed Studio doesn't yet support the LPC1768. It's a known issue but unfortunately hasn't been resolved yet afaik.

Are you using the Mbed LPC1768 board? Doesn't seem like it since it looks like you're using a J-Link, but I wanted to check.

Anyway, I'll take a look at the log and see if anything stands out.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pyocd/pyOCD/issues/1182#issuecomment-891327405, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOPRETBNR7A2C44KQCRIRBDT24BF7ANCNFSM5AV2BEDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

--

Alfred Votolato

Embedded Software Engineer

AndPlus

o: 508.425. 7533 m: 401.477.3211

w: andplus.com e: @.***

Subscribe https://www.andplus.com/newsletter-signup to the AndPlus newsletter

flit commented 3 years ago

Sorry, I can't really answer questions about Mbed Studio since I'm not a member of that team, meaning I don't know what their plans are.

I'm looking at LPC1768 support, but don't have a timeline.