Java environment Runtime Error while using arduino ide to flash stm32 boards

It seems like Java environment error,may I reload it or download a lower javaSE/JDK vision?
I tried these ways and not OK.
Flash STM32F103C8T6 using STM32duino Packages IDE 2.1.0
Error pic:

You have my permission :wink:

Note that IDE 2.x does not use java so this must be something specific to the STM package.

Is this happening during a compile (verify) or during the upload phase.

Did it work on the past?

Hi @tuxmonkey. The developers of the STM32 boards platform you are using assume it will be used with Arduino IDE 1.x only and so depend on the JRE bundled with Arduino IDE 1.x. They recommend it only be used with Arduino IDE 1.x and don't support 2.x:

https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/903#issuecomment-1474790992

Arduino 2.0 not supported

There is another STM32 boards platform that fully supports Arduino IDE 2.x. I recommend seeing if you can switch to using that popular STM32duino boards platform instead:

https://github.com/stm32duino/Arduino_Core_STM32#getting-started

Oh Sorry :cry: I just google it and find that same questions are Java/JDK vision issues,I just download lower Arduino IDE(1.8.x) and waiting to download STM32duino and u8g2 library.Thanks for your answer!

Can I just use STLink to flash the board in using STM32duino?

Oh it just happening during the upload phase.And I degrade the vision,problems seems unsolved.

Are you saying that you still get this "A fatal error has been detected by the Java Runtime Environment" when you attempt an upload to your STM32 board using Arduino IDE 1.8.19?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.