rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.49k stars 1.25k forks source link

Support for Arduino IDE 2.х #911

Closed techmike78 closed 8 months ago

techmike78 commented 10 months ago

Good afternoon. Is there support for Arduino IDE 2.х?

After installing this IDE and setting the dependencies and installing the board, there is no STM32 in the list of processors. my task is to revive the project under STM32F103C8T6 I read the wiki and set up the old version of the IDE using it.

изображение изображение изображение изображение

rogerclarkmelbourne commented 10 months ago

This repo does not contain a boards package.

fralbo commented 9 months ago

I don't know if it's related to this, but I also tried to import this library to IDE2 and I get an INTERNAL ERRO 13, library not valid. My goal is to try to use https://github.com/ag88/stm32duino_rtcadj to adjust the RTC on blackpill board. Is there a solution please?

Cheers Alain

stevstrong commented 8 months ago

I just tried the latest Arduino 2.2.1. Downloaded the Windows ZIP file, and extracted into a folder under Downloads (this folder should not be critical). Then started "Arduino IDE.exe" from that folder. After the application started, there was a lot of activity in background, like installing some serial drivers (I allowed all). Then, in the board selection field I entered STM32 and did wait a bit till all STM32 boards were listed. I have found in the shown list my boards from \Arduino\hardware\Arduino_STM32\STM32F1 (and 4). I have selected the currently used board, pasted some simple blinky code into the editor, compiled and uploaded without any problem.

So it seems that this core is compatible with latest Arduino 2.

fpistm commented 8 months ago

So it seems that this core is compatible with latest Arduino 2.

@stevstrong yes it is except for the tools requiring java :wink:

stevstrong commented 8 months ago

Well, I used maple_upload.bat, which uses maple_loader.jar, and it worked. Why do you think it should not work?

fpistm commented 8 months ago

Well, I used maple_upload.bat, which uses maple_loader.jar, and it worked. Why do you think it should not work?

It works for you because you have java installed on your machine but if not it will failed. Previous Arduino IDEX 1.8.x have standalone java RT which allow to run those script but with new Arduino IDE it is not true. I've already comment on this in this repo and how I've remove this dependency.

stevstrong commented 8 months ago

As far as I understood, the poster claims that he cannot find the right board in the boards manager. I have shown the solution how a board can be selected.

He did not stated that there would be any problem with Java. If so, then he should open a new issue (if there is not already one having this topic).

So for now I will close this issue as the original problem has been solved. It can be reopened if there is still something not working as expected.