Skip to content

easy-connect v1.2.16 #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

JanneKiiskila
Copy link
Contributor

Updated drivers.
Eliminate static data when unreferenced.

Updated drivers.
Eliminate static data when unreferenced.
@JanneKiiskila
Copy link
Contributor Author

JanneKiiskila commented Aug 13, 2018

Please review - @RonEld and @andresag01

@@ -1 +1 @@
https://github.com/ARMmbed/easy-connect/#5b52b5fa56c623d5853c5daf266b34986a0c20cc
https://github.com/ARMmbed/easy-connect/#bf48f5b649eba3ed7b810c77c630b5eb51301311
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it work if we change to https://github.com/ARMmbed/easy-connect/tree/v1.2.16 ?
I think it will be more readable this way

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mbed cli tooling does not support that, unfortunately.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, you are correct

@JanneKiiskila
Copy link
Contributor Author

Would be nice if it did, but I understood mbed cli toolchain does not like that? @screamerbg - do we support that syntax?

@RonEld
Copy link
Contributor

RonEld commented Aug 13, 2018

I tried it, and unfortunately it didn't work

Copy link
Contributor

@RonEld RonEld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be much more readable if we were able to add the tags in the *.lib files, but it doesn't work at the moment. So, approving

@JanneKiiskila
Copy link
Contributor Author

But, I fully agree with you - it would be so much nicer to just read the version number rather than some cryptic hash!

@andresag01
Copy link

@JanneKiiskila: Thank you for the PR. The PR looks good to me. I have now started a CI run and will wait for the results before approving.

@JanneKiiskila
Copy link
Contributor Author

Seems to fail with KW24D.

[build-benchmark-KW24D-IAR] [1534195522.07][CONN][RXD]   RSA-4096                 :  FAILED: RSA - The private key operation failed : BIGNUM - Memory allocation failed

But, well, this one should not impact that in any way.

@simonbutcher
Copy link
Contributor

CI is failing due to memory allocation - a known issue. Therefore labelling as 'ready to merge'.

@RonEld
Copy link
Contributor

RonEld commented Sep 3, 2018

note: Since Mbed OS 5.9, we should be using NetworkInterface
see #198 for more information.
easy-connect doesn't compile for some platforms, (I tested on NRF52840_DK) due to this latest change.
I think we should close this PR, and merge #198 , hence marking this PR as changes requires

Copy link
Contributor

@RonEld RonEld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

easy connect should not be used anymore. See #198 for information

@JanneKiiskila
Copy link
Contributor Author

JanneKiiskila commented Sep 3, 2018

Upto 5.9.x releases we should still use easy-connect, as the default network interface does not work for anything BUT ethernet. But, yes starting with 5.10 we should move to the proper interface.

The NRF52480 board not compiling is interesting, I'll have to look into it.

Seems to be failing with this:

Link: tls-client_application
BUILD/NRF52840_DK/GCC_ARM/easy-connect/easy-connect.o: In function `__static_initialization_and_destruction_0':
/home/jankii01/mbed/mbed-os-example-tls/tls-client/./easy-connect/easy-connect.cpp:82: undefined reference to `EMAC::get_default_instance()'
/home/jankii01/mbed/mbed-os-example-tls/tls-client/./easy-connect/easy-connect.cpp:82: undefined reference to `OnboardNetworkStack::get_default_instance()'
collect2: error: ld returned 1 exit status
[ERROR] BUILD/NRF52840_DK/GCC_ARM/easy-connect/easy-connect.o: In function `__static_initialization_and_destruction_0':
/home/jankii01/mbed/mbed-os-example-tls/tls-client/./easy-connect/easy-connect.cpp:82: undefined reference to `EMAC::get_default_instance()'
/home/jankii01/mbed/mbed-os-example-tls/tls-client/./easy-connect/easy-connect.cpp:82: undefined reference to `OnboardNetworkStack::get_default_instance()'
collect2: error: ld returned 1 exit status

[mbed] ERROR: "/usr/bin/python" returned error code 1.
[mbed] ERROR: Command "/usr/bin/python -u /home/jankii01/mbed/mbed-os-example-tls/tls-client/mbed-os/tools/make.py -t GCC_ARM -m NRF52840_DK --source . --build ./BUILD/NRF52840_DK/GCC_ARM" in "/home/jankii01/mbed/mbed-os-example-tls/tls-client"

Is this the same error you saw? If that is the case, the reason is simple - the board does not have ethernet (or any other IP-networking, either). You must compile that board against the ESP8266.

@RonEld
Copy link
Contributor

RonEld commented Sep 3, 2018

@JanneKiiskila Yes up until 5.9.x we should still use easy-connect, however the examples point to latest Mbed-OS release ( unless manually changing the Mbed OS version), which would be 5.10 soon.
In addition, keeping the easy-connect lib and folder, would make it compile to 5.10 as well, wouldn't it? This will cause compile time errors.
#198 removes the use of easy-connect, and as such, the easy-connect library will be removed. This will be problematic in old versions though.

I think we should have a compile time option whether to use easy-connect (for old versions) or NetworkInterface

@JanneKiiskila
Copy link
Contributor Author

That's sort of not possible, because the easy-connect pulls in some repos and after 5.10, Mbed OS will also pull in some (but not all!) of the same repos -> code duplication and you need either to delete easy-connect.lib OR have a Mbed OS version specific .mbedignore -file. No easy way out here.

@RonEld
Copy link
Contributor

RonEld commented Sep 3, 2018

I agree.
I think the only easy way out of this, is to merge this PR, create a branch \ tag , and then remove easy-connect.
The downside is backporting bug fixes, but we can decide this will be a version tag, and no bug backporting neccessary

@RonEld
Copy link
Contributor

RonEld commented Sep 4, 2018

I got build error for NRF52480_DK platform, because of the usage of the NetworkInterface:

BUILD/NRF52840_DK/GCC_ARM/easy-connect/easy-connect.o: In function `__static_initialization_and_destruction_0':
/home/roneld01/work/mbed-os-example-tls/tls-client/./mbed-os/features/netsocket/EthernetInterface.h:45: undefined reference to `EMAC::get_default_instance()'
/home/roneld01/work/mbed-os-example-tls/tls-client/./mbed-os/features/netsocket/EthernetInterface.h:46: undefined reference to `OnboardNetworkStack::get_default_instance()'
collect2: error: ld returned 1 exit status
[ERROR] BUILD/NRF52840_DK/GCC_ARM/easy-connect/easy-connect.o: In function `__static_initialization_and_destruction_0':
/home/roneld01/work/mbed-os-example-tls/tls-client/./mbed-os/features/netsocket/EthernetInterface.h:45: undefined reference to `EMAC::get_default_instance()'
/home/roneld01/work/mbed-os-example-tls/tls-client/./mbed-os/features/netsocket/EthernetInterface.h:46: undefined reference to `OnboardNetworkStack::get_default_instance()'
collect2: error: ld returned 1 exit status

Since we don't have maintained legacy branches, we should probably close this PR, IMHO. Are there significant bug fixes that will require us to create a branch \ tag for an earlier version of Mbed OS with this PR?

@JanneKiiskila
Copy link
Contributor Author

JanneKiiskila commented Sep 4, 2018

No bugs that I am aware. However, the example compilation problem with NRF is not related to the easy-connect repo - that's just a matter of fact, if you try to use the default network interface with a board, that does not have one (like this NRF board). That same compilation problem will happen also without easy-connect, unless you configure it properly.

Essentially this one should have made it in a matter of days and the new PR (which is really an Mbed OS 5.10 thing) should land once 5.10 is available.

@JanneKiiskila JanneKiiskila deleted the easy-v1.2.16 branch September 4, 2018 09:11
@RonEld
Copy link
Contributor

RonEld commented Sep 4, 2018

@JanneKiiskila Thank you for your information

owever, the example compilation problem with NRF is not related to the easy-connect repo - that's just a matter of fact, if you try to use the default network interface with a board, that does not have one (like this NRF board).

When I tested PR #198 on the NRF board, I didn't get the build error.

Essentially this one should have made it in a matter of days

I agree, but unfortunately, we missed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants