Skip to content
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

Compilation problems using IAR #204

Closed
EderAndrade opened this issue Jul 13, 2018 · 3 comments
Closed

Compilation problems using IAR #204

EderAndrade opened this issue Jul 13, 2018 · 3 comments

Comments

@EderAndrade
Copy link

I downloaded en.x-cube-aws package from ST website and it uses aws-iot-device-sdk-embedded-C v2.0, so I decided update to v3.0. Compiling the IAR project with v3.0, the compiler complains the follow issues:

File "aws_timer.c":
=> No function prototypes.

File "aws_iot_mqtt_client.c"
=> No function prototype for "aws_iot_mqtt_set_client_state( )"

File "aws_iot_mqtt_client_connect.c"
=> No function prototype for "_aws_iot_mqtt_internal_disconnect( )"

Solving this problems, the IAR project will compile.

@EderAndrade EderAndrade changed the title Compilation problems using IAR Compilation problems using IAR bug Jul 13, 2018
@EderAndrade EderAndrade changed the title Compilation problems using IAR bug Compilation problems using IAR Jul 13, 2018
@gordonwang0
Copy link
Contributor

Hi @EdertTadeu,

There is no file called aws_timer.c in this SDK. Did you mean timer.c?

The function prototype for aws_iot_mqtt_set_client_state is in aws_iot_mqtt_client_common_internal.h.

IoT_Error_t aws_iot_mqtt_set_client_state(AWS_IoT_Client *pClient, ClientState expectedCurrentState,

The prototype for _aws_iot_mqtt_internal_disconnect does seem to be missing.

Please allow me me take a few days to look into these issues. But please keep in mind that we can give general support and guidance on this SDK, and not support for specific hardware or compilers.

@gordonwang0
Copy link
Contributor

Hi @EdertTadeu,

#205 will fix the function prototypes issue with aws_iot_mqtt_set_client_state( ) and _aws_iot_mqtt_internal_disconnect( ). The file aws_timer.c is not a part of this SDK (it appears to be something that ST implemented). You will have to add the prototypes for those functions yourself.

@gordonwang0
Copy link
Contributor

Hi @EdertTadeu,

Please let me know if you need any more help with this. Closing issue.

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

No branches or pull requests

3 participants