shabtronic

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Pi Pico extras SDK #30406
    shabtronic
    Participant

    Hello Support!

    My current project – I really really want to import it into visualGDB – but I get errors when importing.

    My project is based around the pio/st7789_lcd example, but I’m also using the extras “audio/i2s” stuff

    here’s my project cmakelists.txt

     

    add_executable(pio_st7789_lcd)

    pico_generate_pio_header(pio_st7789_lcd ${CMAKE_CURRENT_LIST_DIR}/st7789_lcd.pio)
    #pico_generate_pio_header(pio_st7789_lcd ${CMAKE_CURRENT_LIST_DIR}/spi.pio)

    target_include_directories(pio_st7789_lcd PRIVATE ${CMAKE_CURRENT_LIST_DIR})
    target_sources(pio_st7789_lcd PRIVATE st7789_lcd.cpp lcd565.c payload.s)

    target_link_libraries(pio_st7789_lcd PRIVATE pico_stdlib pico_audio_i2s tinyusb_host tinyusb_board pico_multicore hardware_dma hardware_flash hardware_pll hardware_vreg hardware_clocks hardware_adc hardware_pio hardware_spi hardware_i2c hardware_interp)
    pico_add_extra_outputs(pio_st7789_lcd)

    # add url via pico_set_program_url
    example_auto_set_url(pio_st7789_lcd)
    #pico_set_float_implementation(pio_st7789_lcd PICO)

     

    Here’s the error I get after I import my existing project

     

    CMake Warning (dev) in CMakeLists.txt:
    No project() command is present. The top-level CMakeLists.txt file must
    contain a literal, direct call to the project() command. Add a line of
    code such as

    project(ProjectName)

    near the top of the file, but after cmake_minimum_required().

    CMake is pretending there is a “project(Project)” command on the first
    line.
    This warning is for project developers. Use -Wno-dev to suppress it.

    CMake Error at CMakeLists.txt:3 (pico_generate_pio_header):
    Unknown CMake command “pico_generate_pio_header”.

    CMake Warning (dev) in CMakeLists.txt:
    No cmake_minimum_required command is present. A line of code such as

    cmake_minimum_required(VERSION 3.15)

    should be added at the top of the file. The version specified may be lower
    if you wish to support older CMake versions for this project. For more
    information run “cmake –help-policy CMP0000”.
    This warning is for project developers. Use -Wno-dev to suppress it.

    — Configuring incomplete, errors occurred!
    See also “D:/TheVault/Pico/Examples/pio/st7789_lcd/build/VisualGDB/Debug/CMakeFiles/CMakeOutput.log”.
    See also “D:/TheVault/Pico/Examples/pio/st7789_lcd/build/VisualGDB/Debug/CMakeFiles/CMakeError.log”.
    System.Exception: CMake exited with code 1
    at z22.n(p a, Object b)

    ========== Project Configuration Summary ==========
    BadACid1 configured in 00:00
    ========== Configuration: 1 Succeeded, 0 Failed, 0 Skipped ==========

    any help getting this to work would be fantastic – I really need to debug it at the moment.

    many thanks

    in reply to: Pi Pico extras SDK #30399
    shabtronic
    Participant

    I read the previous posts on this issue – and tried to import with the wizard a few example extras projects – but just can’t get them to compile.

    in reply to: Change path of PICO SDK #30396
    shabtronic
    Participant

    Hey thanks for your reply!

    ok I  will try that.

    Yes I pointed at my old arm toolchain – that I setup by hand – so yeah it’s probably in a right old state.

    As you suggest, I will use the pico wizard to install your arm toolchain – and see what happens.

    Hope it works – because so far visualGDB is superb ( apart from the compile issue).

    esp loving the Embedded memory explorer!

     

    [Edit] I tried your toolchain link – and it all works fantastically now – so happy – thank you!

    I’ll post back when I get it working!

    • This reply was modified 3 years ago by shabtronic.
    in reply to: Change path of PICO SDK #30393
    shabtronic
    Participant

    Hey I get the very same problem.

    The first time I create a pico project with the wizard, Everything works just fine – I can run and debug it.

    The second time I try to run/debug it I get this error:

    Severity Description Project File Line
    Error FindFirstFileExA(d/:/thevault/pico/picosdk/1.1.0-package/src/common/pico_stdlib/include/pico): The filename, directory name, or volume label syntax is incorrect. Blink2 D:\TheVault\Pico\MyProjects\Blink2\build\VisualGDB\Debug\ninja 0

    and the build log  gives me this:

    C:\PROGRA~2\Sysprogs\VISUAL~1/ninja.exe
    ninja: error: FindFirstFileExA(d/:/thevault/pico/picosdk/1.1.0-package/src/common/pico_stdlib/include/pico): The filename, directory name, or volume label syntax is incorrect.

    ————————————————————-
    Command exited with code 1
    Executable: C:\PROGRA~2\Sysprogs\VISUAL~1/ninja.exe
    Arguments:
    Directory: D:\TheVault\Pico\MyProjects\Blink2/build/VisualGDB/Debug
    Command-line action failed

    ========== Project Build Summary ==========
    Blink2 built in 00:00
    ========== Build: 0 Succeeded, 1 Failed, 0 Skipped ==========

    If i switch to release mode for the first time – it compiles and runs fine, the second time tho I get the same issue!

    looks like a issue with “d/:/the” part of the file name?

    I’ve tried to mess about with ninja files.e.t.c. – but honestly I don’t know what I’m doing

    I would be great to be able to get this working – I’d be able to debug stuff 🙂 hahah

    • This reply was modified 3 years ago by shabtronic.
Viewing 4 posts - 1 through 4 (of 4 total)