Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


JDK13 - minor error due to API change

I recently freshly installed my laptop and am receiving a startup error from eclipse. The error is as follows:

ENTRY org.eclipse.core.jobs 4 2 2020-02-25 10:57:19.420

MESSAGE An internal error occurred during: “Initializing External-tools”.

STACK 0

java.lang.ExceptionInInitializerError
at fr.ac6.mcu.externaltools.stlinkserver.win32.MCUWinExternalEnvResolver.getPath(MCUWinExternalEnvResolver.java:34)
at fr.ac6.mcu.externaltools.internal.registry.MCUExternalToolsTool.resolvePath(MCUExternalToolsTool.java:124)
at fr.ac6.mcu.externaltools.internal.registry.MCUExternalToolsRegistry.getToolPath(MCUExternalToolsRegistry.java:110)
at fr.ac6.mcu.externaltools.internal.registry.MCUExternalToolsRegistry.getToolPath(MCUExternalToolsRegistry.java:105)
at fr.ac6.mcu.externaltools.internal.registry.MCUExternalToolsRegistry.getSTLinkServerLocation(MCUExternalToolsRegistry.java:114)
at fr.ac6.mcu.externaltools.MCUExternalToolsPlugin.getSTLinkServerLocation(MCUExternalToolsPlugin.java:168)
at fr.ac6.mcu.externaltools.internal.startup.MCUExternalToolsStartup.doPrint(MCUExternalToolsStartup.java:93)
at fr.ac6.mcu.externaltools.internal.startup.MCUExternalToolsStartup$1.run(MCUExternalToolsStartup.java:146)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: java.util.prefs.WindowsPreferences.WindowsRegOpenKey(int,[B,int)
at fr.ac6.mcu.externaltools.stlinkserver.win32.WinRegistry.(WinRegistry.java:47)
... 9 more
Caused by: java.lang.NoSuchMethodException: java.util.prefs.WindowsPreferences.WindowsRegOpenKey(int,[B,int)
at java.base/java.lang.Class.getDeclaredMethod(Class.java:2476)
at fr.ac6.mcu.externaltools.stlinkserver.win32.WinRegistry.(WinRegistry.java:26)
... 9 more


A little quick research shows that the WindowsRegOpenKey method no longer has a variant that accepts (int,[B,int). It requires a long for the first argument.

Here is another project that encountered the same issue.

https://github.com/sarxos/win-registry/issues/4Question

Can you please make the appropriate change to the stlinkserver plugin?

Thanks