element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
element14 presents
  • Challenges & Projects
  • More
element14 presents
Files Episode 573: Using a Pi Pico to Convert Keyboard Input to Morse Code Supplemental File
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join element14 presents to participate - click to join for free!
Actions
  • Next
  • Previous
  • Share
  • More
  • Cancel
  • Author Author: cstanton
  • Views 1848 views
  • Downloads 77 downloads
  • Likes 0 likes
  • Comments 11 comments
Related
Recommended

Episode 573: Using a Pi Pico to Convert Keyboard Input to Morse Code Supplemental File

As used in Episode 573: Using a Pi Pico to Convert Keyboard Input to Morse Code.

Please create an account and/or login to see the ability to download this file if you do not see the Download button.

  • episode 573
  • supplemental content
cstanton
cstanton
  • 14 Oct 2022
  • 77 Downloads
  • Share
  • More
  • Cancel
  • Sign in to reply
Parents
  • stefanT64
    stefanT64 over 1 year ago

    Hi
    The project 'Using a Pi Pico to Convert Keyboard Input to Morse Code ' looks very interesting.
    CW and morse is something I use almost daily as radio amateur. Using this keyboard to create CW would be a great standalone unit.

    Unfortunate I am not able to make it compile on Windows.
    I am using Visual Studio Code 1.90.0 and PICO SDK v1.5.1.
    My compiler is GCC 13.2.1 arm-none-eabi

    I am not so familiar with Raspberry pico and C programming-more a hw person. have used Arduino and C programmimg and python for Raspberry PI started 2013.
    But this seems more challenging.

    I have cleaned and reinstalled  the windows Pico Installer 3 times.

    I got 2 errors in main.c and 2 errors msc_app.c, see below.

    Any ideas what the problem can be?
    Best Regards
    /Stefan

    ------------------------------------------------------------main.c--------------------------------------------------------------------
    [{
        "resource": "/C:/Users/stefan/Documents/Pico-v1.5.1/pico_keyboard_cw_orig/keyboard_cw/main.c",
        "owner": "C/C++: IntelliSense",
        "code": "20",
        "severity": 8,
        "message": "identifier \"cdc_pipeid_t\" is undefined",
        "source": "C/C++",
        "startLineNumber": 92,
        "startColumn": 62,
        "endLineNumber": 92,
        "endColumn": 74
    },{
        "resource": "/C:/Users/stefan/Documents/Pico-v1.5.1/pico_keyboard_cw_orig/keyboard_cw/main.c",
        "owner": "cmake-build-diags",
        "severity": 8,
        "message": "unknown type name 'cdc_pipeid_t'",
        "source": "GCC",
        "startLineNumber": 92,
        "startColumn": 62,
        "endLineNumber": 92,
        "endColumn": 1000
    },{
        "resource": "/C:/Users/stefan/Documents/Pico-v1.5.1/pico_keyboard_cw_orig/keyboard_cw/main.c",
        "owner": "cmake-build-diags",
        "severity": 4,
        "message": "implicit declaration of function 'tuh_cdc_receive'; did you mean 'tuh_cdc_peek'? [-Wimplicit-function-declaration]",
        "source": "GCC",
        "startLineNumber": 82,
        "startColumn": 3,
        "endLineNumber": 82,
        "endColumn": 1000
    }]
    
    ----------------------------------------------------------msc_app.c------------------------------------------------------------------------
    [{
        "resource": "/C:/Users/stefan/Documents/Pico-v1.5.1/pico_keyboard_cw_orig/keyboard_cw/msc_app.c",
        "owner": "cmake-build-diags",
        "severity": 8,
        "message": "too few arguments to function 'tuh_msc_inquiry'",
        "source": "GCC",
        "startLineNumber": 62,
        "startColumn": 3,
        "endLineNumber": 62,
        "endColumn": 1000,
        "relatedInformation": [
            {
                "startLineNumber": 80,
                "startColumn": 6,
                "endLineNumber": 80,
                "endColumn": 1000,
                "message": "declared here",
                "resource": "/C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/pico-sdk/lib/tinyusb/src/class/msc/msc_host.h"
            }
        ]
    },{
        "resource": "/C:/Users/stefan/Documents/Pico-v1.5.1/pico_keyboard_cw_orig/keyboard_cw/msc_app.c",
        "owner": "cmake-build-diags",
        "severity": 4,
        "message": "passing argument 4 of 'tuh_msc_inquiry' from incompatible pointer type [-Wincompatible-pointer-types]",
        "source": "GCC",
        "startLineNumber": 62,
        "startColumn": 49,
        "endLineNumber": 62,
        "endColumn": 1000,
        "relatedInformation": [
            {
                "startLineNumber": 80,
                "startColumn": 106,
                "endLineNumber": 80,
                "endColumn": 1000,
                "message": "expected 'tuh_msc_complete_cb_t' {aka '_Bool (*)(unsigned char,  const tuh_msc_complete_data_t *)'} but argument is of type '_Bool (*)(uint8_t,  const msc_cbw_t *, const msc_csw_t *)' {aka '_Bool (*)(unsigned char,  const msc_cbw_t *, const msc_csw_t *)'}",
                "resource": "/C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/pico-sdk/lib/tinyusb/src/class/msc/msc_host.h"
            }
        ]
    }]

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 1 year ago in reply to stefanT64

    The TinyUSB version used in the SDK has changed. You could either build it with the SDK version of the original post, or check what changes in the TinyUSB, and adapt the code.

    If you do the second exercise, check Example TinyUSB Host CDC MSC HID Example. The morse project code is based on that.

    Search where the TinyUSB calls in main.c and msc_app.c are different than Pico's example, and adapt the morse example in the same way.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Jan Cumps
    Jan Cumps over 1 year ago in reply to stefanT64

    The TinyUSB version used in the SDK has changed. You could either build it with the SDK version of the original post, or check what changes in the TinyUSB, and adapt the code.

    If you do the second exercise, check Example TinyUSB Host CDC MSC HID Example. The morse project code is based on that.

    Search where the TinyUSB calls in main.c and msc_app.c are different than Pico's example, and adapt the morse example in the same way.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube