-
-
Notifications
You must be signed in to change notification settings - Fork 324
STM32duino v2.0 #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If there is a need for help, I could make the .json Board Files, I did a lot of them recently by myself. |
I just need it too, Can anyone tell me how to update ? |
We need to transform all the variants from the core to the .json files for Platform I/O and then we need to update dependencies and version info. The big part is transforming all of the variants |
I replaced framework-arduinoststm32 to V2.0 but it does not work. so it is the problem of .json file and dependencies? |
@valeros if you need some information. Do not hesitate, I could help ;) Main changes are in the variant management.
I've made a temporary fix for the PIO build action here : Anyway I was not able to define the build.variant path with '(' and ')' in the path. |
I don't know the operation of platfromIO, but I tried to modify the .json but the compilation error was reported. This is beyond my knowledge. I had to extract the V2.0 variants and add it to platfromIO, and it can now run well. |
@fpistm Do you know how to include the new variant Files, because I tried it but couldn't get it to work? I already prepared my PIO with the new core v2.0 Update but couldn't get it to compile, I'm Missing the variant.h file. Thank you for your help. |
Honestly I don't know so much about PIO. The only thing I do was to update the pio build GH action of the core. As mentioned in my previous comment. |
Ok, then I will wait until valeros helps update the code. Thank you for your help and your work. |
I now also got it to compile and run on multiple MCUs. But I have some formatting errors with missing whitespaces. |
I now also have no errors. I have now updated all the files needed for F0/F1/F2/F4 and I'm working on F7/G0. When I am finished I will open a Pull Request. Have a nice day. |
The structure of the latest Arduino core introduces more complex target configuration. Now the variant folders are common for several boards so we need to properly remap board ID to properly handle conditional compilation. Switched Arduino core to CMSIS v5.7.0
Hi guys, I've updated the Arduino package to the latest v2.0, please retest your projects with the upstream version: [env:test]
platform = https://github.com/platformio/platform-ststm32.git
framework = arduino
board = ... |
Hi @fpistm ! Thanks for reporting. Should be fixed. |
Hi @valeros Thankk you. Go further but always failed: Error: Missing PlatformIO build script /github/home/.platformio/packages/framework-arduinoststm32/tools/platformio/platformio-build.py! |
Thanks, I submitted a PR with the latest changes. |
Hi @valeros, Even upgrading to ST STM32 v14.0.0 some files of the STM32 Arduino Core remain in v1.9.0 instead of v2.0.0. For example, the I noticed this issue when trying to use this new API: stm32duino/Arduino_Core_STM32#1382 |
Hi @jlocsx ! That's strange, we use the same package from https://github.com/stm32duino/BoardManagerFiles/raw/master/package_stmicroelectronics_index.json . Are you able to use that new API from the Arduino IDE? |
In fact there is no issue. The new API's you are referring here |
Hi,
here is the platformio.ini
and here the main.cpp
|
when I make a build with verbose this is the command before the fatal error:
The problem is, in the core 2.0. the variants are in: I also noticed that at release 13 and 14 the arduino- and platformio version is the same. Is this ok? In the arduino IDE with core 2.0 is |
Resolved in v14.0 |
With v14.0, v14.2 and v15 I have still this error |
Hello, I am working on a project which involves STM32WB5MMG. but platform.io doesn't have supporting board. here is my .json file
and this is the error I'm getting Processing STM32WB5MMG (platform: ststm32; board: STM32WB5MMG; framework: arduino)Verbose mode can be enabled via
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
: fatal error: variant_STM32WB5MMG.h: No such file or directory
compilation terminated.
compilation terminated.
I would appreciate if anyone could help and teach me how to resolve this issue. I am pretty new in stm enviroment. |
hi @ALL I've tried to use this solution for my project using the STM32G030P6 board within platformio with Arduino platform {
"build": {
"core": "stm32",
"cpu": "cortex-m0plus",
"extra_flags": "-DSTM32G0xx -DSTM32G030xx -DVARIANT_H=\\\"variant_generic.h\\\"",
"f_cpu": "64000000L",
"framework_extra_flags": {
"arduino": "-D__CORTEX_SC=0"
},
"mcu": "stm32g030f6p6",
"product_line": "STM32G030xx",
"variant": "STM32G0xx/G030F6P"
},
"debug": {
"default_tools": [
"stlink"
],
"jlink_device": "STM32G030F6",
"onboard_tools": [
"stlink"
],
"openocd_target": "stm32g0x",
"svd_path": "STM32G030.svd"
},
"frameworks": [
"arduino",
"cmsis",
"stm32cube"
],
"name": "Generic STM32G030F6",
"upload": {
"maximum_ram_size": 8192,
"maximum_size": 32768,
"protocol": "stlink",
"protocols": [
"blackmagic",
"cmsis-dap",
"dfu",
"jlink",
"serial",
"stlink",
"mbed"
]
},
"url": "https://www.st.com/en/microcontrollers-microprocessors/stm32g030f6.html",
"vendor": "ST"
} however when I create the new project with the Arduino framework, the then I change the code to this however, when I compile the code, it throws considerable errors to the definition of Arduino’s basic function
any help is really appreciated |
Can you update STM32duino to v2.0?
The text was updated successfully, but these errors were encountered: