What interface are you using to make DEBUG connection? If you want to use usb-cdc you have to debug over serial as the USB port will not be available after you change it with the code.
How do i do that? i tried holding the MODE button and then reseting but i cant connect to the board when i try selecting serial transport in VS
SC20100 Dev Board Rev A
As I asked, how do I now change code and upload again, to the dev board. Only thing that works is LDR0->RESET connect with config tool and erase all, and start the process all over again. Surely thats not how its done
What is the use for VCOM COM5? and why isnt serial debugging working for me?
You have 2 USB ports, one is connected to a serial port (virtual com) that you can use to deploy and debug. This port works when you hold mod pin down.
You must hold it down with every reset/deploy or add a wire from it to ground
Doesn’t work for me, i press and hold the MODE then press RESET and let RESET go. It still just only shows COM4, which i cannot connect to with either Config or VS.
Ok, this sort of works, i don’t want the serial debugging anyway.
When i stop the app, i can upload a new one. Then it switches back to CDC to configure via PC.
in the context of creating my own board? im going to use SCM20100E do i need to also connect FT232RL to UART1 in order for serial deploy/debug to work? currently im designing it for UART2
if you’re designing your board to use UART2, then a change from UART5 to UART1 for a system function will have no impact. But whether you need serial debug on your production board, as Gus asks, is only a question you can answer - but seems likely that the answer is no, you just need a serial port for your own use within the app…
I intend to use USB CDC to connect the device with my windows app, so when i develop this i will need serial debugging?
when i set this up:
var usbclient = GHIElectronics.TinyCLR.Devices.UsbClient.UsbClientController.GetDefault();
this uses USB CLIENT (USBC N, USBC P) for use as USB CDC, correct?
so if i want debugging and deployment i need to use serial debugging in VS and connect to UART1?