This is a FEUO (For Emergency Use Only) Mbed repository to get a basic working PokiRobot soft during the Eurobot 2022.
Consider this as a "sandbox example" to use STM32 modules through MBED on the robot.
This project use Platformio (PIO) as building system.
If you have problem compiling or using PlatformIO with Python 3.10, you have two choice :
- Either downgrade to Python3.9
- Or fix Python3.10 : In every Python file that PIO report as a bug, replace
collectionsimport bycollections.abcas explain here.
It is not mandatory, but if you want to accelerate compilation of MBED through PIO, you can use a .mbedignore file. But this require the installation of a custom script.
There already is one in the root of this project. To add Mbedignore support, simply apply this Pull Request to your current PIO installation. If you don't know how, follow theses steps manually :
- Download pio_mbed_adapter.py (right click, "save as").
- Download pio_mbedignore_loader.py (right click, "save as").
- Go to
C:\Users\<YOUR_NAME>\.platformio\packages\framework-mbed\platformio. - Copy the two files you've just download (replace the original
pio_mbed_adapter.pyscript). - Open
pio_mbedignore_loader.pyand follow this custom fix for Windows.
Now you can clean the project, and rebuild it :
cd <your_project_root_folder_location>
pio run -t clean
pio run