Skip to content

[Exporters] Download of CMSIS packs #3051

Closed
@ohagendorf

Description

@ohagendorf

Description

The succesfull download seems to depend on the PyCurl version. The behaviour differs at two different PCs and with different PyCurl versions:

PC1 and current PyCurl version 7.43.0: a complete failure, no downloads possible - no way to get the packs
PC1 and older PyCurl version 7.19.5.3: download was possible

PC2 and current PyCurl version 7.43.0: 27 errors
PC2 and older PyCurl version 7.19.5.3: only 11 errors

The idea to use an older version was found here: http://stackoverflow.com/questions/38644845/pycurl-timing-out-with-working-network-connection-on-windows-10

Maybe the problem is not restricted the these two PC.

An error handling would be nice. But beside this It would be necessary to get proper error messages, to see the list of downloaded packs and have a possibility to repeat the download.

One error message is:

(28, 'Operation too slow. 

PC1 is connected over 50/10Mbit/s VDSL and PC2 is within an University network. A speed test says 24/26Mbit/s.
Maybe the timeout behaviour within the pack download could be improved

Another error message:

(28, 'Connection timed out after

seems to be a redirection problem. Also with curl a correct download isn't possible. Using the redirected address everything is OK. Here is an example address:

http://www.keil.com/pack/Keil.TMPM4_DFP.pdsc

Downloading over mbed export ... gives the above error message, downloading with curl gives:

....
<p>The document has moved <a href="http://sadevicepacksprod.blob.core.windows.net/pdsc/Keil.TMPM4_DFP.pdsc">here</a>
...

Maybe a possibility to handle redirections would be good. I've seen the curl option in the code to handle redirection. But it seems to fail sometimes.


Bug

Target
all

mbed-cli version:
0.9.9.

meed-os sha:
mbed-os 5.2 rc3
873686c Merge pull request #3033 from ARMmbed/release-candidate
and current master
7bcc63b Merge pull request #2977 from andreaslarssonublox/ublox_drivers
DAPLink version:

Expected behavior
download of all CMSIS packs

Actual behavior
all/several download attempts fails

Steps to reproduce
After the first call of

mbed export ...

or after deleting

C:\Users\xxx\.local\share\arm-pack-manager

and calling the mbed export.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions