![]() |
RA Flexible Software Package Documentation
Release v5.9.0
|
|
This migration guide is for moving to the new FreeRTOS Network stacks introduced in FSP v4.0.0. It will describe steps for moving over stacks as well as changes to make code compile correctly.
Open project to be migrated in e² studio using FSP v4.0.0 or greater. The existing CoreMQTT/HTTP stack should still exist. Many of the stack components will have No Longer Supported
in the display and have permanent constraint error messages on them:
Add a new network stack (New Stack->Networking->AWS CoreHTTP or AWS CoreMQTT):
Choose a sockets wrapper for the new stack (Add Sockets Wrapper).
The submodule for AWS PKCS11 to MbedTLS
will likely be missing. Click Add FreeRTOS MbedTLS Port
and use the existing instance:
Got to the components tab and see if AWS MbedTLS FreeRTOS Port (AWS|Abstractions|FreeRTOS_Plus|utilities|mbedtls
) is checked. If this component is not checked then check it so that appears like so:
This is a list of important changes from pre-4.0 code. For more detailed examples see CoreMQTT/HTTP examples and devassist.
SYSTEM_Init()
should be removed. mbedtls_platform_setup()
now does initialization that this IoT library function originally did.xLoggingTaskInitialize
should no longer be called. Logging libraries which create a logging task no longer exist. Logging by default uses printf
when enabled. The user can redefine vLoggingPrintf(const char * pcFormat, ...)
and vLoggingPrint(const char * pcFormat)
to change this behavior.TLS_FreeRTOS_recv
and TLS_FreeRTOS_send
. See the examples and devassist for more info.TLS_FreeRTOS_Connect
to connect to a server/endpoint before using CoreMQTT/HTTP APIs to communicate. TLS_FreeRTOS_Disconnect
can be used to disconnect from a server/endpoint.