• AVR Freaks

Hot!Can't select to use USB CDC for console in the harmony V3 config

Author
MantasP
New Member
  • Total Posts : 16
  • Reward points : 0
  • Joined: 2019/02/20 03:31:39
  • Location: 0
  • Status: offline
2019/09/17 09:41:39 (permalink)
0

Can't select to use USB CDC for console in the harmony V3 config

Hi, I'm trying to use console service to print debug messages. 

With harmony 2 I used to setup the usb driver in CDC and use the CDC_COM_PORT_SINGLE_DEMO in product id selection. 

When setting up the console I was then able to chose between UART or USB under peripheral for Console instance.

In Harmony V3 I can only select UART, even though when I click on the console settings it allows to pick the number of USB and UART instances to setup. 

Am I missing a setting or is the console through CDC not implemented yet? 
 
Thank you
post edited by MantasP - 2019/09/18 03:05:30
#1

8 Replies Related Threads

    Jetoleg
    Starting Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2019/08/19 06:43:41
    • Location: 0
    • Status: offline
    Re: Can't select to use USB CDC for console in the harmony V3 config 2019/12/12 11:52:13 (permalink)
    0
    I am having same problem. Requested Microchip for support case, see what happens. Will update on the result.
    #2
    MantasP
    New Member
    • Total Posts : 16
    • Reward points : 0
    • Joined: 2019/02/20 03:31:39
    • Location: 0
    • Status: offline
    Re: Can't select to use USB CDC for console in the harmony V3 config 2019/12/19 10:12:34 (permalink)
    0
    Hi Jetoleg,

    Just wanted to check if you got any response regarding this?
    #3
    Jetoleg
    Starting Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2019/08/19 06:43:41
    • Location: 0
    • Status: offline
    Re: Can't select to use USB CDC for console in the harmony V3 config 2019/12/19 10:21:26 (permalink)
    5 (2)
    Hello MantasP,
     
    Nothing. No replies to trouble ticket. Ask rep directly same question this morning. Will update this thread if I got anything.
    #4
    BillP
    Super Member
    • Total Posts : 370
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: offline
    Re: Can't select to use USB CDC for console in the harmony V3 config 2019/12/19 13:10:30 (permalink)
    5 (2)
    This is important for Hv3 if you are planning to use the TCP/IP stack.  Hv3 has added numerous SYS_DEBUG, SYS_PRINT etc. calls in the TCP/IP stack.  If you just turn off debug or console, then you will get a lot of missing function errors during the compile.  IMHO, the developers got a little sloppy in a rush to get Hv3 out.
    #5
    Jetoleg
    Starting Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2019/08/19 06:43:41
    • Location: 0
    • Status: offline
    Re: Can't select to use USB CDC for console in the harmony V3 config 2019/12/21 13:25:01 (permalink)
    5 (1)
    BillP,
    Yeah System console is very important.
    Fortunately I have other serial port that I can connect to System console for now. But this is a bad for long term.
    Microchip need to fix it.
     
    I got reply from Microhip rep, but it's not very helpful. He suggests manually changing sysConsole0Init
    to use SYS_CONSOLE_DEV_USB_CDC instead of SYS_CONSOLE_DEV_USART.
    Unfortunately I can't find sys_console_cdc.h and sys_console_cdc.c where relevant driver is written. Need to replace all UART functions with CDC functions. Without this not possible to make following to work with CDC:
     
     
    const SYS_CONSOLE_DEV_DESC sysConsoleUARTDevDesc =
    {
    .consoleDevice = SYS_CONSOLE_DEV_USART,
    .intent = DRV_IO_INTENT_READWRITE,
    .init = Console_UART_Initialize,
    .read = Console_UART_Read,
    .write = Console_UART_Write,
    .callbackRegister = Console_UART_RegisterCallback,
    .task = Console_UART_Tasks,
    .status = Console_UART_Status,
    .flush = Console_UART_Flush
    };
     
    It could be as simple as missing block in Harmony 3 project graph.
     
    Noticed other possible system console devices. No idea how to use them:
    {
    SYS_CONSOLE_DEV_USART,
    SYS_CONSOLE_DEV_USB_CDC,
    SYS_CONSOLE_DEV_APPIO,
    SYS_CONSOLE_NR_DEVS,
    } SYS_CONSOLE_DEVICE;
     
    UPD: Microchip confirmed the issue. They are promising to do something about it after holidays. 
    post edited by Jetoleg - 2019/12/23 12:31:21
    #6
    jipihorn
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2015/08/13 04:04:01
    • Location: 0
    • Status: offline
    Re: Can't select to use USB CDC for console in the harmony V3 config 2020/01/27 23:42:19 (permalink)
    0
    Hello,
     
    Some new about this ?
    It's pretty incredible that they don't put this in the new version of the framework we are told to use for new projects !
    And, it's very unpleasant to program without debug console. Not everybody would use an UART if the USB stack is used in the project and CDC COM port available until now !
     
    Jerome.
    #7
    Jetoleg
    Starting Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2019/08/19 06:43:41
    • Location: 0
    • Status: offline
    Re: Can't select to use USB CDC for console in the harmony V3 config 2020/01/28 06:41:56 (permalink)
    5 (1)
    No news. I wrote angry latter to Microchip about it and they just told me to use H2.
    I am coming to the point I need it too. Going to  look what could be done with H2 driver to make it work for H3.
    #8
    ibbro
    Starting Member
    • Total Posts : 84
    • Reward points : 0
    • Joined: 2015/10/22 07:34:56
    • Location: 0
    • Status: offline
    Re: Can't select to use USB CDC for console in the harmony V3 config 2020/02/02 10:40:43 (permalink)
    0
    I've gotten around this by commenting out SYS_DEBUG_ENABLE in configurations.h. I was getting errors even with debug and console in the Harmony project. I'm on a development board right now so can use the virtual com port on a PKoB4 with printf's for debugging. Not pretty, but a decent workaround until Harmony 3 grows up a bit
     
    post edited by ibbro - 2020/02/02 10:43:07
    #9
    Jump to:
    © 2020 APG vNext Commercial Version 4.5