NYH-workshop
Published © GPL3+

RP2040 : Quick setup guide for Win10 and FT2232H

This is a small guide to deploy Raspberry Pi Pico SDK and FT2232H for Windows 10 systems.

AdvancedFull instructions provided2 hours3,600
RP2040 : Quick setup guide for Win10 and FT2232H

Things used in this project

Story

Read more

Code

Code snippet #3

Python
def CheckSDKPath(gui):
    sdkPath = os.getenv('PICO_SDK_PATH')

    if sdkPath == None:
        m = 'Unabled to locate the Pico SDK, PICO_SDK_PATH is not set'
        if (gui):
            RunWarning(m)
        else:
            print(m)
    elif not os.path.isdir(sdkPath):
        m = 'Unabled to locate the Pico SDK, PICO_SDK_PATH does not point to a directory'
        if (gui):
            RunWarning(m)
        else:
            print(m)
        sdkPath = None
    sdkPath = "X:/pico-sdk/" # return this sdkPath instead!
    return sdkPath

Code snippet #5

C/C++
#include <stdio.h>
#include "pico/stdlib.h"


int main()
{
    stdio_init_all();
    const uint LED_PIN = 25;
    gpio_init(LED_PIN);
    gpio_set_dir(LED_PIN, GPIO_OUT);
    printf("Hello World Pico!\n");
    
    while(1) {
        gpio_put(LED_PIN,1);
        sleep_ms(250);
        gpio_put(LED_PIN,0);
        sleep_ms(250);
    }

    return 0;
}

Code snippet #6

Plain text
build] TinyUSB available at E:/pico-sdk/lib/tinyusb/src/portable/raspberrypi/rp2040; adding USB support.
[build] Compiling TinyUSB with CFG_TUSB_DEBUG=1
[build] -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
[build] ELF2UF2 will need to be built
[build] -- Configuring done
[build] -- Generating done
[build] -- Build files have been written to: E:/pico-projects-2021/hello/build
[build] [  1%] Performing build step for 'ELF2UF2Build'
[build] 
[build] Microsoft (R) Program Maintenance Utility Version 14.28.29333.0
[build] Copyright (C) Microsoft Corporation.  All rights reserved.
[build] 
[build] [100%] Built target elf2uf2
[build] [  2%] No install step for 'ELF2UF2Build'
[build] [  3%] Completed 'ELF2UF2Build'
[build] [ 10%] Built target ELF2UF2Build
[build] [ 13%] Built target bs2_default
[build] [ 14%] Built target bs2_default_bin
[build] [ 15%] Built target bs2_default_padded_checksummed_asm
[build] [100%] Built target hello
[build] Build finished with exit code 0

Github file

https://github.com/raspberrypi/openocd/issues/11

Credits

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

Comments

Please log in or sign up to comment.