1

I am using a Raspberry Pico and until now I have used Thonny for writing my code. Now I wanted to test PyCharm but I can't get a program that is not named main.py to run. So when I click on "flash main.py" it works and the pico executes the code. But when I name the file anything else (e.g. like blink.py) and then flash it, it doesn't work. When I flash the same file using Thonny it works, so it can't be the code I guess. Does anybody have any ideas what that could be? Or am I doing something wrong in PyCharm?

Thanks!

ginatronix
  • 11
  • 2

1 Answers1

1

I think this is related to your Pycharm configuration. By default Pycharm wants to write to the Pico (flash) using main.py. This configuration does not change if you switch between different files / tabs that you are viewing. You will have to change the configuration settings or create additional configurations.

This image shows the configuration settings: Pycharm editing configuration

HenryH
  • 11
  • 1