Skip to content

UBLOX_EVK_ODIN_W2 with IAR returns DEVICE_ERROR instead of AUTH_ERROR/NO_CONNECTION when wrong channel is set #10312

Closed
@michalpasztamobica

Description

@michalpasztamobica

Description

Target: UBLOX_EVK_ODIN_W2
Toolchain: IAR 8
Tools: mbed-cli
SHA: 2a694cf
Steps to reproduce:

mbed test --compile -t IAR -m UBLOX_EVK_ODIN_W2 -n tests-network-wifi --app-config=mbed_app.wlan0.json -v
mbed test --run -t IAR -m UBLOX_EVK_ODIN_W2 -n tests-network-wifi -v

Expected result: All tests passing
Actual result:

        test case: 'WIFI-CONNECT-PARAMS-CHANNEL-FAIL' ................................................ FAIL in 20.74 sec
        test case: 'WIFI-CONNECT-SECURE-FAIL' ........................................................ FAIL in 21.46 sec

Further details:
The issue is visible in mbed-os nightly test runs and also reproducible on custom Wi-Fis.

These are the exact checks that fail: wifi_connect_secure_fail and wifi_connect_params_channel_fail.

I have checked mbed-os code down until this line:

void OdinWiFiInterface::handle_wlan_status_disconnected(void)
{
...
			switch(_wlan_status_disconnected_info) {
...
				default:
					error_code = NSAPI_ERROR_DEVICE_ERROR;
					break;
			}
			send_user_response_msg(ODIN_WIFI_MSG_USER_CONNECT, error_code);

To my understanding the error code comes from the library that we have no access to.
It is important to note that neither GCC nor ARM don't show this behaviour and that the static library for IAR was updated a month ago.
@ARMmbed/team-ublox , could you please check this issue?
@SeppoTakalo , @TuomoHautamaki , FYI.

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions