Micropython-RT-Thread development board firmware programming

First vomit a slot to the official documentation, there is really no tutorial suitable for beginners to get started! ! ! ! ! ! Many things in the document are pieced together, the first contact can not be operated normally, and the document often only shows results, ignoring the intermediate steps, and it is extremely unfriendly to novices. Okay, that's it for complaining.

Software and hardware preparation

hardware

The blogger uses the IoT Board Pandora development board. As shown in the figure below, it looks very fragrant and supports python-based IoT development.
Insert picture description here

software

  • env, Is a debugging terminal suitable for RT-Thread board (download link: official website download )
    Insert picture description here

  • STM32 ST-LINK UtilityFor burning binfiles
    Insert picture description here

firmware

Need to download the BSP folder corresponding to your development board, there are project files inside.

BSP compilation

1. Configure Env

Just look at how to use Env .

2. Compile the firmware

  • Open env and enter:
pkgs --upgrade

Insert picture description here

  • Configuration:
menuconfig

Choose the third one:
Insert picture description here
choose the third one:
Insert picture description here
choose Micropython:
Insert picture description here
Loadand Save.
Insert picture description here

  • Pull the update back locally:

Insert picture description here

Remaining operations

Refer to MicroPython Firmware Development Guide

Compiled successfully

Insert picture description here

Burning procedure

Operation reference: STM32 ST-LINK Utility introduction, download, installation, usage method
Insert picture description here

Error resolution

Insert picture description here

problem

Chinese in the path! ! ! ! ! ! , Do not show any Chinese, all folder paths including env and BSP files are not working!

Guess you like

Origin blog.csdn.net/qq_45779334/article/details/108998374