PlatformIO Community

How fast frameworks are upgraded?

Hi All!

STM32Duino executed 1.7 version of its framework. When it can be released into PIO?

Hi @Vladislav_Kravchenko! The package is already updated, but not released yet. You can try it in the upstream version of the ststm32 platform.

1 Like

And when it can be released?

There is no ETA, as soon as there is significant amount of changes or bugfixes.

1 Like

Tried with no success :cold_face:

CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/nucleo_f103rb.html
Error: This board doesn't support arduino framework!
PLATFORM: ST STM32 1.7.0 > ST Nucleo F103RB
HARDWARE: STM32F103RBT6 72MHz, 20KB RAM, 128KB Flash
PACKAGES: tool-stm32duino 1.0.1, framework-arduinoststm32 2.0.170723, toolchain-gccarmnoneeabi 1.40804.0 (4.8.4), tool-stlink 1.10200.1 (1.2.0)

With pio.ini:

[env:nucleo_f103rb]
platform = ststm32@1.7.0

What to adjust?

[env:nucleo_f103rb]
platform = https://github.com/platformio/platform-ststm32.git

That gives even more strange result:

PlatformManager: Installing platform-ststm32
git version 2.22.0.windows.1
Cloning into 'C:\Users\Vladislav\.platformio\platforms\_tmp_installing-rq0ys0-package'...
remote: Enumerating objects: 449, done.
remote: Counting objects: 100% (449/449), done.
remote: Compressing objects: 100% (235/235), done.
remote: Total 449 (delta 291), reused 302 (delta 186), pack-reused 0
Receiving objects: 100% (449/449), 1.63 MiB | 382.00 KiB/s, done.
Resolving deltas: 100% (291/291), done.
Submodule 'builder/frameworks/libopencm3' (https://github.com/platformio/builder-framework-libopencm3.git) registered for path 'builder/frameworks/libopencm3'
Cloning into 'C:/Users/Vladislav/.platformio/platforms/_tmp_installing-rq0ys0-package/builder/frameworks/libopencm3'...
remote: Enumerating objects: 43, done.        
remote: Total 43 (delta 0), reused 0 (delta 0), pack-reused 43        
Submodule path 'builder/frameworks/libopencm3': checked out '39e2eed656463acef1cf70a34fc9db5f73a5540c'
ststm32 @ b469aef has been successfully installed!
Error: Traceback (most recent call last):
  File "c:\users\vladislav\.platformio\penv\lib\site-packages\platformio\__main__.py", line 90, in main
    cli(None, None, None)
  File "c:\users\vladislav\.platformio\penv\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\vladislav\.platformio\penv\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)

And even more errors with recommendation to report this issue to developers :frowning:

It looks like something went wrong, but the platform was installed successfully. Were you able to compile any example with Arduino framework?

It seems that I can’t create a new project. PIO IDE reports:

Server error: {"args":[2,"No such file or directory"],"message":"[Errno 2] No such file or directory: 'C:\\\\Users\\\\Vladislav\\\\.platformio\\\\platforms\\\\Arduino_Core_STM32\\\\platform.json'","type":"IOError"}

and

PIO Core Call Error: "Error: Traceback (most recent call last):\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\__main__.py\", line 90, in main\n cli(None, None, None)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 764, in __call__\n return self.main(*args, **kwargs)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 717, in main\n rv = self.invoke(ctx)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\__init__.py\", line 37, in invoke\n return super(PlatformioCLI, self).invoke(ctx)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1137, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 956, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 555, in invoke\n return callback(*args, **kwargs)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\boards.py\", line 31, in cli\n return _print_boards_json(query, installed)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\boards.py\", line 67, in _print_boards_json\n for board in _get_boards(installed):\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\boards.py\", line 62, in _get_boards\n return pm.get_installed_boards() if installed else pm.get_all_boards()\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\platform.py\", line 191, in get_all_boards\n boards = self.get_installed_boards()\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\util.py\", line 61, in wrapper\n self.cache[key] = (time.time(), func(*args, **kwargs))\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\platform.py\", line 179, in get_installed_boards\n p = PlatformFactory.newPlatform(manifest['__pkg_dir'])\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\platform.py\", line 260, in newPlatform\n _instance = platform_cls(join(platform_dir, \"platform.json\"))\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\platform.py\", line 497, in __init__\n self._manifest = fs.load_json(manifest_path)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\fs.py\", line 54, in load_json\n with open(file_path, \"r\") as f:\nIOError: [Errno 2] No such file or directory: 'C:\\\\Users\\\\Vladislav\\\\.platformio\\\\platforms\\\\Arduino_Core_STM32\\\\platform.json'\n\n============================================================\n\nAn unexpected error occurred. Further steps:\n\n* Verify that you have the latest version of PlatformIO using\npip install -U platformiocommand\n\n* Try to find answer in FAQ Troubleshooting section\n https://docs.platformio.org/page/faq.html\n\n* Report this problem to the developers\n https://github.com/platformio/platformio-core/issues\n\n============================================================"

If I return platform platform = ststm32 back then I can compile my old code. But still can’t make a new project due to the errors above. After restarting of VSCode - the same thing. Can’t start a new project.

Hm, what is this folder for? It shouldn’t be there. Please delete all folders that don’t start with platform-* and all folders with platform-ststm32 in its name.

2 Likes

Success, you are the magician!

After removing of the folder I can compile my code and start new project.