Brendan,
yeah, its a bit confusing, sorry.
theres some history here, let me walk you through it.
Mbed 2 - 2012-2016 - simple SDK with peripheral API's (UART, SPI, I2C...etc)
- mbed.lib - pre-compiled mbed 2 libarary. Precompiled for speed saving in the online compiler. This is why it can compile in <10 seconds each time. Upside: fast compiles. Downside: no source code browsing
- mbed-src (now mbed-dev) - full source for mbed 2 sdk. Upside : full source browsing. Downside : slow as hell to compile.
- source was on github.com/mbedmicro/mbed, this was released onto the repos on developer.mbed.org because the compiler at the time could only import mercurial repos, it didnt support github repos.
Mbed 5 - 2016 + - extended functionality of mbed 2, added connectivity (BLE, Thread, Wifi, Cellular...etc) and RTOS functionality (Threads and Event Que). mbed 5 is a super set of mbed 2 and serves to consolidate what were formerly seperate libraries (ble.lib, rtos.lib, mbed.lib,...etc) under a single repository and form a product better suited for IoT. mbed 5 is an evolution of mbed 2, and still maintains all the mbed 2 APIs in the peripheral section.
- mbed-os.lib - lives on github at github.com/armmbed/mbed-os. It should be notes that this has now superceeded the old mbed 2 repo.
- mbed 2 is now released as a special instance of mbed 5. There is no more separate mbed 2 source code on github, but the mercurial repos on mbed.org are updated with what is effectively a sub-release of mbed-os
Future - eventually we will clean up this story, there is a bunch of work ongoing to make this easier to understand. I cannot comment on it too much publically as such.
Also, im sure there is a github revision where mbed-os overtook the mbed 2 work, but I dont know which one it is, that history is really really long. It happened some time in early 2017.
I cannot
hg clone
the mbed (2) library from os.mbed.com. As shown below, it creates thembed/.hg/
folder with several small files in it, then just sits for several minutes until it times out. (Then it deletes the files and destination directory it had created.)[EDIT:
mbed import
doesn't work on it, either. Added log below.]I've successfully cloned other repos from the site, so I think this is a sever-side issue. What is the issue? Please fix it and report back. Let me know if you need any addtional info.
(The log below was taken using cygwin on Windows 7, but I got the same result with TortoiseHg, except that TortoiseHg added
[command returned code 255 Mon Oct 23 13:19:50 2017]
following the HTTP 504.)Directory listing taken in another window, while the clone operation was stuck:
mbed-cli failing to import: