-
Notifications
You must be signed in to change notification settings - Fork 15
Add STM32 F411RE Nucleo 64 BG96 demo project #13
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
base: main
Are you sure you want to change the base?
Conversation
chinglee-iot
commented
Jul 13, 2022
- Add STM32 F411RE Nucleo 64 demo project
- Add README.md document to describe how to integrate FreeRTOS libraries to existing code base from scratch.
FreeRTOS -> v10.4.3 backoff_algorithm -> v1.0.0 coreMQTT -> v1.1.0 ThirdParty/mbedtls -> v2.25.0
* FreeRTOS V10.4.3-LTS-Patch-2 * FreeRTOS-Cellular-Interface v1.2.0-16-gdbbfbed * backoff_algorithm v1.2.0 * MbedTLS v2.28.0
Adjust the folder structure to close to FreeRTOS * Move demo tasks and config files to project folder * Update the README.md to state that this repository is for community supported demos
*/ | ||
#define CELLULAR_IP_ADDRESS_MAX_SIZE ( 64U ) | ||
|
||
#define CELLULAR_CONFIG_DISABLE_FLOW_CONTROL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#define CELLULAR_CONFIG_DISABLE_FLOW_CONTROL | |
/* STM32 F411RE doesn't support timer, so we need to disable flow control. */ | |
#define CELLULAR_CONFIG_DISABLE_FLOW_CONTROL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason to disable flow control is that the CTS/RTS pins are not connected together. I will add comments in the config.h file.
/* Use 1NCE service to onboard device. */ | ||
#ifdef USE_1NCE_ZERO_TOUCH_PROVISIONING | ||
#include "1nce_zero_touch_provisioning.h" | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove these lines which are dedicated for 1NCE?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be removed in new commit.
#ifdef USE_1NCE_ZERO_TOUCH_PROVISIONING | ||
uint8_t status = nce_onboard( &pThingName, | ||
&pEndpoint, | ||
&pExampleTopic, | ||
&pRootCA, | ||
&pClientCert, | ||
&pPrvKey ); | ||
configASSERT( status == EXIT_SUCCESS ); | ||
#else | ||
pThingName = democonfigCLIENT_IDENTIFIER; | ||
pEndpoint = democonfigMQTT_BROKER_ENDPOINT; | ||
pExampleTopic = mqttexampleTOPIC; | ||
#endif /* ifdef USE_1NCE_ZERO_TOUCH_PROVISIONING */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove these lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be removed in new commit.
projects/stm32_F411RE_nucleo_64_mqtt_mutual_auth_demo/Core/Src/app_main.c
Show resolved
Hide resolved
* User should reference the 1nce demo for if they are interesting in 1nce * Add comment in cellular_config.h
…iot/Lab-Project-FreeRTOS-Cellular-Demo into add-stm32-demo-project