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
  • 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
Connected Cloud Challenge
  • Challenges & Projects
  • Design Challenges
  • Connected Cloud Challenge
  • More
  • Cancel
Connected Cloud Challenge
Blog Connected Cloud Fridge on AWS IoT #5 -Build with Mbed-cli
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fyaocn
  • Date Created: 2 May 2020 8:34 AM Date Created
  • Views 541 views
  • Likes 3 likes
  • Comments 0 comments
  • connectedcloud
Related
Recommended

Connected Cloud Fridge on AWS IoT #5 -Build with Mbed-cli

fyaocn
fyaocn
2 May 2020

Build with Mbed-cli

1. Install mbed-cli.msi in Windows 10

image

with the fowllowint components,

image

The python 2.7.10 is installed and ruin my previous python 3.6.x ENV. I have to reinstalled python 3.7 in anaconda ENV in isolated environments. It is  suggested to install Mbed CLI from within a virtual environment and run all commands from within your virtual environment.  Other lib includes git. mercury, arm-gcc...

Then install pyocd , update libusb https://github.com/libusb/libusb/releases/tag/v1.0.21  properly.

pip install -U pyocd

 

After you install pyOCD via pip or setup.py, you will be able to execute the following in order to start a GDB server powered by pyOCD:

 

pyocd gdbserver

To use the GCC 7.2.1 distribution bundled with ModusToolbox, run the mbed config command as appropriate for Windows :

mbed config -G GCC_ARM_PATH ~/ModusToolbox/tools_2.1/gcc-7.2.1/bin

 

image

Then,

mkdir mbed-examples 
cd mbed-examples
mbed import mbed-os-example-blinky
cd mbed-os-example-blinky
mbed compile --target CY8CPROTO_062_4343W --toolchain GCC_ARM
mbed export -i eclipse_gcc_arm -m CY8CPROTO_062_4343W

 

Finally, the exported project can be imported into Modus Toolbos for further steps.

image

Otherwise, work with mbed-cli is still fine. Any text-editor can do, and MS Visual Code is especilly recommended. Just follow https://os.mbed.com/docs/mbed-os/v5.15/tools/working-with-mbed-cli.html

  • Sign in to reply
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