Debugging over serial port? - Page 1
Forum section: electronics / general

author: vlad777
author_rank: Frequent Contributor
timestamp: April 11, 2020, 08:54:53 pm
content: Is there a microcontroller that can be debugged in an IDEover UART(/USART/serial/com/rs232)?What would be that uC and what IDE?Many thanks.

author: up8051
author_rank: Frequent Contributor
timestamp: April 11, 2020, 09:11:22 pm
content: Old C51 family with Keil IDEhttp://www.keil.com/c51/mon51.asp

author: langwadt
author_rank: Super Contributor
timestamp: April 11, 2020, 09:36:01 pm
content: it ought to be possible with almost any uC and GDB capable IDE

author: helius
author_rank: Super Contributor
timestamp: April 11, 2020, 10:20:13 pm
content: Some chips have a serial port monitor built-in. I think some of the FTDI micros do, and the Parallax Propeller and GreenArrays GA144 definitely do.

author: jpanhalt
author_rank: Super Contributor
timestamp: April 11, 2020, 10:34:55 pm
content: USB is serial. Moreover, the PIC Start II Plus was RS232 (9-pin plug) and also did debugging of chips a lot newer than the 16C xx group. It supported the 12F683 and related 16Fxx series, but not the enhanced mid-range, such as the 12F1840.

author: vlad777
author_rank: Frequent Contributor
timestamp: April 11, 2020, 10:53:54 pm
content: Quote from: jpanhalt on April 11, 2020, 10:34:55 pmInteresting, but that is a programmer , I am thinking about uC that has a rom bootloader that communicates over UART.

author: westfw
author_rank: Super Contributor
timestamp: April 11, 2020, 11:08:08 pm
content: A lot of the larger new microcontrollers should be able to support something like gdbstub (essentially SW that runs in the target and sends debugging info back to a "remote" debugger. Needs only a little bit of support from the target (some sort of dynamic breakpoint capability that causes a SW-based trap. Worked back as far as 68000. Most Arm Cortex can do it, I think. Easier if your program is in RAM)The new AVR debug protocol (UPDI) is essentially UART-based, and I think people have made it work over standard USB/UART connections. I'm not sure that that counts.

author: jpanhalt
author_rank: Super Contributor
timestamp: April 11, 2020, 11:08:38 pm
content: Quote from: vlad777 on April 11, 2020, 10:53:54 pmThis was your initial question: " Is there a microcontroller that can be debugged in an IDE"PIC's are considered microcontrollers, even the ones I mentioned.

author: vlad777
author_rank: Frequent Contributor
timestamp: April 12, 2020, 01:56:54 am
content: Quote from: up8051 on April 11, 2020, 09:11:22 pmThank you for your answer.Sorry , bear with me, I'm a little slow.So the "target monitor" is a project that I compile and burn to 8051.What do I do on the Keil side? I use "Keil Monitor-51 Driver"?

author: mikerj
author_rank: Super Contributor
timestamp: April 12, 2020, 09:39:12 am
content: Quote from: jpanhalt on April 11, 2020, 11:08:38 pmThe OP's question was "Is there a microcontroller that can be debugged in an IDEover UART(/USART/serial/com/rs232)?"

author: GromBeestje
author_rank: Frequent Contributor
timestamp: April 12, 2020, 10:01:40 am
content: Atmel's DebugWire can be used with a suitable USB-UART (one that allows arbitrary bitrates) and a diode, usinghttps://github.com/dcwbrown/dwire-debugWhen you use that tool, you can connect to it with GDB, thus any IDE supporting GDB can be used.

author: jpanhalt
author_rank: Super Contributor
timestamp: April 12, 2020, 10:05:38 am
content: Quote from: mikerj on April 12, 2020, 09:39:12 amAs I said in my more complete reply, the PicStart II Plus is serial RS232. It runs on Win XP from a serial 9-pin port. It can also work with USB converters and works with the earliest 16Cxx chips, but it does not work with enhanced mid-range and later. That is what prompted me to switch to PICKit and ICD3.

author: fchk
author_rank: Frequent Contributor
timestamp: April 12, 2020, 11:55:35 am
content: Quote from: vlad777 on April 11, 2020, 08:54:53 pmWhat is the purpose of your question? What do you try to accomplish?Is a 20$ PICKIT3 or a 10$ FTDI2232 breakout board too expensive?fchk

author: vlad777
author_rank: Frequent Contributor
timestamp: April 12, 2020, 01:51:52 pm
content: Quote from: fchk on April 12, 2020, 11:55:35 amJust trying to learn about possibilities , for example I didn't know about MON51.Quote from: fchk on April 12, 2020, 11:55:35 amI am not sure I can get anything in this lockdown.FTDI2232 breakout board sounds good. I saw a YouTube video using it, but it needs CooCox driver on Keil side.

author: rvalente
author_rank: Frequent Contributor
timestamp: April 22, 2020, 12:47:08 am
content: In addition to the 20usd pickit a genuine stlink v2 costs 21 and its jtag, pretty fast and wont mess with your code or run, so why botter?

author: remcu
author_rank: Newbie
timestamp: April 22, 2020, 01:40:34 am
content: Quote from: langwadt on April 11, 2020, 09:36:01 pmIt is interesting. What did you mean, "uC"?

author: Simon
author_rank: Unknown
timestamp: April 22, 2020, 09:26:20 am
content: micro-controller as I know the ASCII code I would use the actual micro symbol.

author: jackthomson43
author_rank: Contributor
timestamp: April 23, 2020, 02:22:56 am
content: may be on 8051microcontrollersusing Keil compiler.