WIO_EMW3166 target fails to compile blinky-baremetal in Mbed OS 6
GCC and Arm Error
[Fatal Error] TLSSocketWrapper.h@28,10: mbedtls/platform.h: No such file or directory
[ERROR] In file included from ./mbed-os/features/netsocket/nsapi.h:42,
from ./mbed-os/features/netsocket/EthernetInterface.h:20,
from ./mbed-os/targets/TARGET_WICED/wiced_interface/WicedInterface.h:21,
from ./mbed-os/targets/TARGET_WICED/wiced_interface/default_wifi_interface.cpp:18:
./mbed-os/features/netsocket/TLSSocketWrapper.h:28:10: fatal error: mbedtls/platform.h: No such file or directory
28 | #include "mbedtls/platform.h"
WIO_EMW3166
Arm Compiler 6 and GCC 9
mbed-os-6.0.0
Mbed CLI 1.10.4
mbed import https://github.com/ARMmbed/mbed-os-example-blinky-baremetal
cd mbed-os-example-blinky
mbed compile -t <toolchain> -m <target>
@ARMmbed/team-seeed @toyowata
@MarceloSalazar thank you for raising this issue.Please take a look at the following comments:
We cannot automatically identify a release based on the version of Mbed OS that you have provided.
Please provide either a single valid sha of the form #abcde12 or #3b8265d70af32261311a06e423ca33434d8d80de
or a single valid release tag of the form mbed-os-x.y.z .
E.g. '(d0d35c274362)' has not been matched as a valid tag or sha.
NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered.
Please update the issue header with the missing information, the issue will not be mirroredto our internal defect tracking system or investigated until this has been fully resolved.
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2709
mbed-os/features/netsocket should not be available in the baremetal build. Is the value in targets "network-default-interface-type": "WIFI" bringing in the network stack?
@MarceloSalazar @0xc0170
The Wio EMW3166 target uses WicedInterface for the WIFI interface.
https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_WICED/wiced_interface
I think the WicedInterface.h and default_wifi_interface.cpp should be guarded as something similar like this.