Skip to main content
Visitor II
July 25, 2020
Solved

STM32CubeMonitor-UCPD 1.1.0 crashes when a board is connected

  • July 25, 2020
  • 4 replies
  • 3839 views

If I run the application without any boards connected, it launches OK (showing "Please connect your board(s)!", but as soon as I connect the board (tried that with STM32G071B-DISCO and Nucleo-G474RE with X-NUCLEO-USBPDM1 attached and programmed for USB PD, and results were the same) and I click "Refresh list of connected boards", it crashes to desktop. If I run the application while having board already connected, it just crashes immediately. I tried launching it as administrator, and results were the same, but this time error log files appeared in the program directory. I've attached one of them hoping it will help with investigation. Among other things, it contains information about my system.

Any help with this would be appreciated. I'm working on a project that will use G4 MCU for USB PD, so I need to get this to work, as the whole point I've bought DISCO board was to use it as CC sniffer.

    This topic has been closed for replies.
    Best answer by Landry

    For your information , STM32CubeMonitor-UCPD 1.1.1 has been released this week to solve this incompatibility issue with recent version of JRE.

    https://www.st.com/en/development-tools/stm32cubemonucpd.html

    4 replies

    ST Employee
    August 13, 2020

    Hello

    It seems that you are facing an issue between jssc (the serial port java driver) and the jvm version.

    Can you try to use an older jre version to see if it is better ?

    Thank you

    Stephane

    asmiAuthor
    Visitor II
    August 14, 2020

    Where can I find them? Oracle website seems to only have latest one (8u261) available : https://www.oracle.com/java/technologies/javase-jre8-downloads.html

    I've also did some changes in the log file config to see if it will show anything useful for your developers to diagnose. Nothing stood out to me, but I'm not a Java developer, so I've attached the log file anyway in case it will be useful for diagnostics.

    Please let me know if there is anything else I can do to help your developers diagnose and fix the problem. I tried everything I can think of to no avail, the problem seems to be inside detectIfUSBCPD method of CommunicationUSBCPD class.

    ST Employee
    August 14, 2020

    There is an archive page on oracle website providing older JRE for test purpose.

    You can try the version 8u202 on this page : https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html

    asmiAuthor
    Visitor II
    August 20, 2020

    Hi Stephane!

    I've installed 8u202 as you suggested, unpacked the executable and launched the app with this command line: "c:\Program Files\Java\jre1.8.0_202\bin\java" com.st.mtt.guiusbcpd.MainApp (I use console version of Java executable on purpose as it allows to see trace output in real time)

    It does not crash anymore, so that's a good sign. However it doesn't recognize STM32G071B-DISCO board connected. I flashed it with the latest firmware found here: https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-discovery-kits/stm32g071b-disco.html#resource but UCPD still does not "see" it.

    Attached is UCPD application's trace log in case there is anything useful.

    Graduate II
    August 14, 2020

    Hello,

    I faced the exact same issue 3 days ago with the Cube Power monitor and its relevant board (X-NUCLEO-LPM01A).

    It was working without issues last year, and when I wanted to use it again it showed the same behavior as you, i.e. as soon as I tried to click on the connect button of the GUI the monitor would crash to desktop.

    I solved it by installing the latest version of Cube Power Monitor, which comes with its own java machine, and sure enough the interface is working again.

    So @stephane.legargeant​ is right, there is an incompatibility between the latest Java version and the jar files.

    Best regards.

    LandryAnswer
    Visitor II
    September 2, 2020

    For your information , STM32CubeMonitor-UCPD 1.1.1 has been released this week to solve this incompatibility issue with recent version of JRE.

    https://www.st.com/en/development-tools/stm32cubemonucpd.html

    asmiAuthor
    Visitor II
    September 5, 2020

    Just tested it and it works like sharm! Thank you very much!