Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pico don't reset automaticlly after programed on SDK 2.1.0 #2191

Open
Temperature6 opened this issue Jan 18, 2025 · 2 comments
Open

Pico don't reset automaticlly after programed on SDK 2.1.0 #2191

Temperature6 opened this issue Jan 18, 2025 · 2 comments

Comments

@Temperature6
Copy link

With the same configure(cmake files, clion openocd download e.g.) ,pico will reset automaticlly after programed when I use sdk1.5.0, bug it doesn't work when I use SDK2.1.0

This is my pico_sdk_impot.cmake

# This is a copy of <PICO_SDK_PATH>/external/pico_sdk_import.cmake

# This can be dropped into an external project to help locate this SDK
# It should be include()ed prior to project()

#set(PICO_SDK_PATH "D:/EmbeddedDevelop/rpi_pico/sdk_151/pico-sdk")
set(PICO_SDK_PATH "D:/EmbeddedDevelop/rpi_pico/sdk_210/pico-sdk-2.1.0")

if (DEFINED ENV{PICO_SDK_PATH} AND (NOT PICO_SDK_PATH))
    set(PICO_SDK_PATH $ENV{PICO_SDK_PATH})
    message("Using PICO_SDK_PATH from environment ('${PICO_SDK_PATH}')")
endif ()

if (DEFINED ENV{PICO_SDK_FETCH_FROM_GIT} AND (NOT PICO_SDK_FETCH_FROM_GIT))
    set(PICO_SDK_FETCH_FROM_GIT $ENV{PICO_SDK_FETCH_FROM_GIT})
    message("Using PICO_SDK_FETCH_FROM_GIT from environment ('${PICO_SDK_FETCH_FROM_GIT}')")
endif ()
...........

I'd like to switch sdk version by comment and uncomment the "set" statement,

And this is my cmakelist.txt

cmake_minimum_required(VERSION 3.21)

set(PICO_BOARD pico)
set(PICO_PLATFORM rp2040)

# initialize the SDK based on PICO_SDK_PATH
# note: this must happen before project()
include(pico_sdk_import.cmake)


project(rp2040_sdk210_test C CXX ASM)


set(CMAKE_C_STANDARD 11)

# Initialize the SDK
pico_sdk_init()

add_executable(${PROJECT_NAME} main.c)
target_link_libraries(${PROJECT_NAME} pico_stdlib)

# create map/bin/hex/uf2 file in addition to ELF.
pico_add_extra_outputs(${PROJECT_NAME})

This clion openocd download settings is unchanged when I switch sdk version
Image

Am I forgetting what else I should configure?

@Slion
Copy link

Slion commented Jan 18, 2025

Same issue observed on Windows 11 after upgrading from 2.0.0 to 2.1.0.

@Temperature6
Copy link
Author

Same issue observed on Windows 11 after upgrading from 2.0.0 to 2.1.0.
Yes, I'm also using Windows 11. If version 2.0.0 works well, I will give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants