element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum First experience with a Raspberry Pico - Setup toolchain, IDE, debug and FreeRTOS
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 21 replies
  • Subscribers 661 subscribers
  • Views 13191 views
  • Users 0 members are here
  • raspberry
  • pico_freertos_smp
  • pico
  • freertos
Related

First experience with a Raspberry Pico - Setup toolchain, IDE, debug and FreeRTOS

Jan Cumps
Jan Cumps over 3 years ago

I got a set of Raspberry Pico boards. This weekend I've worked on getting a C++ development environment set up, IDE (VSCode) and debugger working, and FreeRTOS running.

image

I'm using a Windows 11 laptop.

First activity was to get the toolchain running. I used the Getting Started guide.
To install, I used this automated install. The only thing I would do different than the automated version, is the openOCD build. I believe that the option in Fred27's blog is easier.

When I got the overall toolchain working, I continued with the next part: debug

You can use a second Pico as debug probe. Fred27's blog is again invaluable.

image

As soon as I was comfortable with that - being able to build SDK examples, run and debug them, I started the last part of the path: FreeRTOS.

The Pico has dual cores, and it's one of the Genoa pigs for the new FreeRTOS  Symmetric Multiprocessing (SMP) project. 

I downloaded it, added to VSCode, built, and started the first debug session - on a single core FreeRTOS example. That's where this weekend stops:

image

The future steps will deserve a real blog. How to run RTOS on core A or B. And to interact with the other core in the meantime.

Show All Blog Posts

  • Sign in to reply
  • Cancel
  • scottiebabe
    scottiebabe over 3 years ago

    I got new toys recently too! A Pico W and a Micro:bit V2

    image

    The Micro:bit has an nRF52833 and runs micropython with a long list of interesting APIs to play with,

    https://microbit-micropython.readthedocs.io/en/v2-docs/accelerometer.html

    image

    https://github.com/microbit-foundation/microbit-v2-hardware 

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago

    Look:  Arrow heading down

    image

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Cancel
  • BigG
    BigG over 3 years ago in reply to Jan Cumps

    The blogger MCUonEclipse has two useful blogs on how to get set up and now more recently (2 days ago) he published his 2nd blog on how to use OpenOCD and Eclipse (with WindowsOS)

    mcuoneclipse.com/.../

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Fred27
    Fred27 over 3 years ago in reply to scottiebabe

    I'm not a fan of micropython. I feel Python is good as scripting language - I've spent the last month using it to automate Unreal Engine. I just don't think it's suited to embedded devices where you want small deterministic complied code,

    Incidentally, the micro:bit is a good candidate if you want to play around with embedded Rust. It can be done on the Pico too, but the micro:bit has better support and examples.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to Fred27

    related (I think). When I received the Picos, I did not know what to do with them. I was not going to start learning embedded Python. Nothing because of the language, but I'd like to learn new technology. As a boost, I forced @self to set up an efficient development chain. 

    The enthousiasm came when I saw that it was one of the platforms where you can test out multi core RTOS. That subject is close to my heart. And it looks like this little board is going to be an excellent test bed for learning - no ballast, not a lot on board hardware, most of the options uncommitted and (free) available.

    (side note: my first multi-core experience with FreeRTOS was on a Cypress PSoC kit I got from balearicdynamics. They have some very interesting examples, e.g. using 1 core solely to encrypt/decrypt, or to protect memory, while the other does the business logic.)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • baldengineer
    baldengineer over 3 years ago

    I'm excited to see you write this up. I just started looking at what it would take to get FreeRTOS up and running on the Pico / RP2040!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to baldengineer

    I was writing that today, but the forum stopped saving my work when saving drafts during the exercise. Maybe later, when the disappointment waned a little.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago

    other little preview: RTOS running on core 1, non-RTOS task on core 0. With synchronisation between the 2:

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago in reply to baldengineer

    I've written Install and first run

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago in reply to Jan Cumps

    ... and a follow-up: Raspberry Pico - Review multi-core FreeRTOS SMP

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
<>
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 © 2025 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