NYH-workshop
Published © GPL3+

RP2040 : Deploy VSCode in Win10 and FT2232H

Using the VSCode for developing RP2040 code is a convenient thing to do. This guide helps you to deploy the IDE with FT2232H in Windows 10.

AdvancedFull instructions provided30 minutes1,023
RP2040 : Deploy VSCode in Win10 and FT2232H

Things used in this project

Hardware components

VSCode
https://code.visualstudio.com/
×1
RP2040
Raspberry Pi RP2040
×1

Story

Read more

Code

Code snippet #1

Python
def generateProjectFiles(projectPath, projectName, sdkPath, projects):

    oldCWD = os.getcwd()

    os.chdir(projectPath)

    for p in projects :
        if p == 'vscode':
            v1 = ('{\n'
                  '  // Use IntelliSense to learn about possible attributes.\n'
                  '  // Hover to view descriptions of existing attributes.\n'
                  '  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\n'
                  '  "version": "0.2.0",\n'
                  '  "configurations": [\n'
                  '    {\n'
                  '      "name": "Pico Debug",\n'
                  '      "cwd": "${workspaceRoot}",\n'
                  '      "executable": "${command:cmake.launchTargetPath}",\n'
                  '      "request": "launch",\n'
                  '      "type": "cortex-debug",\n'
                  '      "servertype": "openocd",\n'
                  '      "gdbPath" : "arm-none-eabi-gdb",\n'
                  '      "device": "RP2040",\n'
                  '      "configFiles": [\n' + \
                  '        "E:/openocd/tcl/interface/ftdi/ft232h-module-swd.cfg",\n' + \
                  '        "E:/openocd/tcl/target/rp2040.cfg"\n' + \
                  '        ],\n' +  \
                  '      "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",\n'
                  '      "runToMain": true,\n'
                  '      "searchDir": [\n' + \
                  '        "E:/openocd/tcl"\n' + \
                  '       ],\n'
                  '    }\n'
                  '  ]\n'
                  '}\n')

Credits

NYH-workshop
4 projects • 4 followers
Engineer and hobbyist
Contact

Comments

Please log in or sign up to comment.