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:

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:

platform = ststm32@1.7.0

What to adjust?

platform =

That gives even more strange result:

PlatformManager: Installing platform-ststm32
git version
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' ( 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\", line 90, in main
    cli(None, None, None)
  File "c:\users\vladislav\.platformio\penv\lib\site-packages\click\", line 764, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\vladislav\.platformio\penv\lib\site-packages\click\", 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"}


PIO Core Call Error: "Error: Traceback (most recent call last):\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\\", line 90, in main\n cli(None, None, None)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\click\\\", line 764, in __call__\n return self.main(*args, **kwargs)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\click\\\", line 717, in main\n rv = self.invoke(ctx)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\\", line 37, in invoke\n return super(PlatformioCLI, self).invoke(ctx)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\click\\\", 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\\\", line 956, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\click\\\", line 555, in invoke\n return callback(*args, **kwargs)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\\", line 31, in cli\n return _print_boards_json(query, installed)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\\", 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\\\", 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\\\", line 191, in get_all_boards\n boards = self.get_installed_boards()\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\\", 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\\\", 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\\\", 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\\\", line 497, in __init__\n self._manifest = fs.load_json(manifest_path)\n File \"c:\\users\\vladislav\\.platformio\\penv\\lib\\site-packages\\platformio\\\", 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\n\n* Report this problem to the developers\n\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.


Success, you are the magician!

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