Author Topic: Debugging over serial port?  (Read 4566 times)

0 Members and 1 Guest are viewing this topic.

Offline vlad777Topic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: 00
Debugging over serial port?
« on: April 11, 2020, 08:54:53 pm »
 Is there a microcontroller that can be debugged in an IDE
over UART(/USART/serial/com/rs232)?

What would be that uC and what IDE?

Many thanks.
Mind over matter. Pain over mind. Boss over pain.
-------------------------
 

Offline up8051

  • Frequent Contributor
  • **
  • Posts: 343
  • Country: pl
Re: Debugging over serial port?
« Reply #1 on: April 11, 2020, 09:11:22 pm »
Old C51 family with Keil IDE
http://www.keil.com/c51/mon51.asp
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 5845
  • Country: dk
Re: Debugging over serial port?
« Reply #2 on: April 11, 2020, 09:36:01 pm »
it ought to be possible with almost any uC and GDB capable IDE
 

Offline helius

  • Super Contributor
  • ***
  • Posts: 3813
  • Country: us
Re: Debugging over serial port?
« Reply #3 on: April 11, 2020, 10:20:13 pm »
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.
 

Online jpanhalt

  • Super Contributor
  • ***
  • Posts: 4845
  • Country: us
Re: Debugging over serial port?
« Reply #4 on: April 11, 2020, 10:34:55 pm »
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.
 

Offline vlad777Topic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: 00
Re: Debugging over serial port?
« Reply #5 on: April 11, 2020, 10:53:54 pm »
... the PIC Start II Plus was RS232 ...

Interesting, but that is a programmer , I am thinking about uC that has a rom bootloader that communicates over UART.
Mind over matter. Pain over mind. Boss over pain.
-------------------------
 

Online westfw

  • Super Contributor
  • ***
  • Posts: 4668
  • Country: us
Re: Debugging over serial port?
« Reply #6 on: April 11, 2020, 11:08:08 pm »
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.
 

Online jpanhalt

  • Super Contributor
  • ***
  • Posts: 4845
  • Country: us
Re: Debugging over serial port?
« Reply #7 on: April 11, 2020, 11:08:38 pm »
... the PIC Start II Plus was RS232 ...

Interesting, but that is a programmer , I am thinking about uC that has a rom bootloader that communicates over UART.

This 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.
 

Offline vlad777Topic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: 00
Re: Debugging over serial port?
« Reply #8 on: April 12, 2020, 01:56:54 am »
Old C51 family with Keil IDE
http://www.keil.com/c51/mon51.asp

Thank 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"?
Mind over matter. Pain over mind. Boss over pain.
-------------------------
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3671
  • Country: gb
Re: Debugging over serial port?
« Reply #9 on: April 12, 2020, 09:39:12 am »

This 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.

The OP's question was "Is there a microcontroller that can be debugged in an IDE over UART(/USART/serial/com/rs232)?"
 

Offline GromBeestje

  • Frequent Contributor
  • **
  • Posts: 310
  • Country: nl
Re: Debugging over serial port?
« Reply #10 on: April 12, 2020, 10:01:40 am »
Atmel's DebugWire can be used with a suitable USB-UART (one that allows arbitrary bitrates)  and a diode, using https://github.com/dcwbrown/dwire-debug
When you use that tool, you can connect to it with GDB, thus any IDE supporting GDB can be used.
 

Online jpanhalt

  • Super Contributor
  • ***
  • Posts: 4845
  • Country: us
Re: Debugging over serial port?
« Reply #11 on: April 12, 2020, 10:05:38 am »

This 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.

The OP's question was "Is there a microcontroller that can be debugged in an IDE over UART(/USART/serial/com/rs232)?"

As 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.
 

Offline fchk

  • Frequent Contributor
  • **
  • Posts: 419
  • Country: de
Re: Debugging over serial port?
« Reply #12 on: April 12, 2020, 11:55:35 am »
Is there a microcontroller that can be debugged in an IDE
over UART(/USART/serial/com/rs232)?

What 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
 

Offline vlad777Topic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: 00
Re: Debugging over serial port?
« Reply #13 on: April 12, 2020, 01:51:52 pm »
What is the purpose of your question? What do you try to accomplish?

Just trying to learn about possibilities , for example I didn't know about MON51.

Is a 20$ PICKIT3 or a 10$ FTDI2232 breakout board too expensive?

I 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.

Mind over matter. Pain over mind. Boss over pain.
-------------------------
 

Offline rvalente

  • Frequent Contributor
  • **
  • Posts: 831
  • Country: br
Re: Debugging over serial port?
« Reply #14 on: April 22, 2020, 12:47:08 am »
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?
 

Offline remcu

  • Newbie
  • Posts: 1
  • Country: fi
Re: Debugging over serial port?
« Reply #15 on: April 22, 2020, 01:40:34 am »
it ought to be possible with almost any uC and GDB capable IDE
It is interesting. What did you mean, "uC"?
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 18919
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Debugging over serial port?
« Reply #16 on: April 22, 2020, 09:26:20 am »
micro-controller as I know the ASCII code I would use the actual micro symbol.
 

Offline jackthomson43

  • Contributor
  • Posts: 38
  • Country: us
Re: Debugging over serial port?
« Reply #17 on: April 23, 2020, 02:22:56 am »
may be on 8051 microcontrollers using Keil compiler.
« Last Edit: March 04, 2021, 05:49:11 am by jackthomson43 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->