4715 views|2 replies

4

Posts

0

Resources
The OP
 

[Raspberry Pi Pico Review] IDE Selection and Debugging [Copy link]

 This post was last edited by UBTWO on 2021-4-25 16:54


Raspberry Pi Pico provides two programming language development environments: C/C++ and MicroPython.

"Life is short, I'll learn Python." If you want to master the Raspberry Pi in the shortest time, then the latter is the obvious choice.

IDE selection
The IDE recommended by Raspberry Pi and MicroPython is Thonny (I like VScode anyway)

Use VS CODE

The interface is really ugly, but it is very friendly to ESP32 and ESP8266, and can flash micropython firmware with one click (I think)

Because I am used to using vscode - it is free, small in size and highly extensible.

So I use the rtthread vscode plugin to develop the Raspberry Pi Pico

For usage tutorials, search for this plugin in vscode and you will find a link in the comments. The rtthread official website also has usage tutorials.

from machine import Pin
import time

LED = Pin(25,Pin.OUT)

if __name__ == '__main__':
    while True:

        LED.value(0)
        time.sleep(1)
        LED.value(1)
        time.sleep(1)

After installing the plug-in, click the first step to connect the serial port, then click the second step to see the LED light on the pico flashing

If you want to solidify the program in pico, right-click the project in the workspace and select the first file to download to the device

Using the Raspberry Pi Pico

Download RT-Thread Studio

You can download the latest version of Studio in RT-Thread Club .

As a development tool software, RT-Thread Studio requires a process from understanding to familiarity, and from familiarity to proficient application. Especially for users who have not used eclipse-based development tool software before, it is recommended to first familiarize yourself with the basic usage of the software and the main function entrances, and then try to develop a project. If you encounter problems, you can first refer to the relevant documents , video tutorials and FAQs. If you can't find a solution, you can post in the Studio forum and Studio support staff will help solve the problem.

Download Pico SDK

  1. Click SDK Manager:

1.png

  1. Download the latest Pico board support package:

2.png

Create a Pico project

  1. Create RT-Thead project:

3.png

  1. Select Pico Development Board:

10.png

  1. Click Finish to complete the project creation.

Compile and download

  1. Click the build button to compile the project:

5.png

  1. Press the BOOTSEL button on the development board and insert the USB cable and serial cable:

10.jpg

  1. Open the serial port debugging assistant in Studio:

11.png

  1. Open the directory where the compiled rtthread-pico.uf2 file is located:

7.png

  1. Download the uf2 file to the Pico development board:

9.png

  1. After the download is successful, the LED light of the Pico development board will flash:

12.png

  1. Interact with Pico through the Studio serial port tool and experience running RT-Thread on the Pico development board:

12.gif

image.png (72.94 KB, downloads: 0)

image.png

image.png (48.74 KB, downloads: 0)

image.png

Latest reply

Domestically produced products are supported so quickly?   Details Published on 2021-4-25 17:17
 
 

2926

Posts

0

Resources
2
 

Great post. I like it. The photo of Pico taken by the poster is very good. Has the poster’s COM port reached 37?

 
 
 

7422

Posts

2

Resources
3
 

Domestically produced products are supported so quickly?

Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list