Author Topic: Debug fails once Serial used?  (Read 136 times)

Bartw

  • Newbie
  • *
  • Posts: 29
    • View Profile
Debug fails once Serial used?
« on: January 16, 2017, 04:26:50 pm »
Hello was trying to use the serial port to aid in testing however as soon as i do the debugger fails...

Is the serial port used for the debugger???
I am using the example code from the script manual.

Regards
Bart

Social Buttons


mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Debug fails once Serial used?
« Reply #1 on: January 17, 2017, 09:36:43 am »
If you use a mc-Demo205 or a development board you can debug over USB which uses the serial port. If you don't use one of those on USB or in every other solution you debug over the wireless connection. You can use Debug.Write(string) to debug or connect the uart to a pin and start writing to it.

mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Debug fails once Serial used?
« Reply #2 on: January 17, 2017, 04:39:41 pm »
You cannot use USB debugging and the serial connection at the same time.