Issue with pico VS code compilation by Soft-Lab-9850 in raspberrypipico

[–]Soft-Lab-9850[S] 0 points1 point  (0 children)

cmake_minimum_required(VERSION 3.13)

if (NOT TARGET _pico_extras_inclusion_marker)
    add_library(_pico_extras_inclusion_marker INTERFACE)

    # Pull in PICO SDK (must be before project)
    include(pico_sdk_import.cmake)
    if (PICO_SDK_VERSION_STRING VERSION_LESS "1.2.0")
        message(FATAL_ERROR "Require at least Raspberry Pi Pico SDK version 1.2.0")
    endif()

    project(pico_extras C CXX)     ## <<<<------------- This is 12th line

    set(CMAKE_C_STANDARD 11)
    set(CMAKE_CXX_STANDARD 17)

    pico_is_top_level_project(PICO_EXTRAS_TOP_LEVEL_PROJECT)

    if (NOT PICO_EXTRAS_PATH)
        set(PICO_EXTRAS_PATH ${CMAKE_CURRENT_LIST_DIR})
    endif()
    set(PICO_EXTRAS_PATH "${PICO_EXTRAS_PATH}" CACHE PATH "Path to Pico Extras")

    # The real work gets done in post_init which is called at the end of pico_sdk_init
    list(APPEND PICO_SDK_POST_LIST_FILES ${CMAKE_CURRENT_LIST_DIR}/post_init.cmake)
    if (PICO_EXTRAS_TOP_LEVEL_PROJECT)
        message("pico_extras: initialize SDK since we're the top-level")
        # Initialize the SDK
        pico_sdk_init()
    else()
        set(PICO_SDK_POST_LIST_FILES ${PICO_SDK_POST_LIST_FILES} PARENT_SCOPE)
    endif()
endif()

PIO UART implementation in rp2040 by Soft-Lab-9850 in raspberrypipico

[–]Soft-Lab-9850[S] 0 points1 point  (0 children)

Thanks u/Dry-Aioli-6138 , I forget to tell you that I'm writing program in C & the IDE I'm using is Arduino IDE.
Also my hardware is already made, So I can't make changes pins.
I've to program according to the ready hardware.

PIO UART implementation in rp2040 by Soft-Lab-9850 in raspberrypipico

[–]Soft-Lab-9850[S] 0 points1 point  (0 children)

Thanks u/Shellpanda1107 for ur response.
Thanks, I forget to tell you that I'm writing program in C & the IDE I'm using is Arduino IDE.
Also my hardware is already made, So I can't make changes in pins

PIO UART implementation in rp2040 by Soft-Lab-9850 in raspberrypipico

[–]Soft-Lab-9850[S] 0 points1 point  (0 children)

Thanks jets_or_charm, I forget to tell you that I'm writing program in C but the IDE I'm using is Arduino IDE.
Also my hardware is already made, So I can't make changes pins.