cancel
Showing results for 
Search instead for 
Did you mean: 

How do we integrate the GNSS Sample code for B-L475E-IOT01A1 with the GCP Sample code?

NNaid
Associate

Aim: Sync STM32CubeExpansion_Cloud_GCP_V1.0.0 to STM32CubeExpansion_GNSS1_V3.0.0

Software GCP: https://www.st.com/en/embedded-software/x-cube-gcp.html

Software GNSS1: https://www.st.com/en/embedded-software/x-cube-gnss1.html

 

1.      GCP/Drivers/BSP/Components synced to GNSS/Drivers/BSP/Components

2.      GCP/Middlewares/Third_Party/LwIP and paho.mqtt.embedded-c synced with GNSS/Middlewares/Third_Party/ folder

3.      Copied GCP/Projects/Common to GNSS/Projects/Common

4.      Copied various files from GCP/Projects/B-L475E-IOT01A/Applications/Cloud/GoogleIoT/Inc

a.      googleiot.h

b.     vl53l0x_platform.h

c.      vl53l0x_proximity.h

5.      Copied various files from GCP/Projects/B-L475E-IOT01A/Applications/Cloud/GoogleIoT/Src

a.      vl53l0x_platform.c

b.     vl53l0x_proximity.c

6.      Copied googleiot.c to GNSS Project

7.      Copy GCP/Projects/Common/Shared to GNSS/Projects/B-L475-IOT01/Applications/A_GetPos/Common/Shared

GCP Include Paths to add to GNSS

../../../../../../../Common/GoogleIoT/Inc

../../../../../../../Common/Shared/Inc

../../../../../../../Middlewares/Third_Party/paho.mqtt.embedded-c/MQTTClient-C/src

../../../../../../../Middlewares/Third_Party/paho.mqtt.embedded-c/MQTTPacket/src

../../../../../../../../Drivers/BSP/Components/hts221

../../../../../../../../Drivers/BSP/Components/lis3mdl

../../../../../../../../Drivers/BSP/Components/lps22hb

../../../../../../../../Drivers/BSP/Components/lsm6dsl

../../../../../../../../Drivers/BSP/Components/vl53l0x

NOTES

1. Common Package clash

The Common packages that are used in both GNSS and GCP are clashing (Version code difference)

The GCP `iot_flash_config.h` and related files have the GCP connection code

The GNSS `iot_flash_config.h` and related files have option to only connect to BLUEMIX.

This stops the last compilation process in googleiot.c (Project Structure)

2. Dependencies on mbedTLS

GCP project uses googleiot_mbedtls_config.h whereas the GNSS project uses the httpclient_mbedtls_config.h.

This causes a clash when importing the libraries.

GCP Preprocessor Flags to add to GNSS

SENSOR

MQTTCLIENT_PLATFORM_HEADER=paho_mqtt_platform.h

GOOGLEIOT

0 REPLIES 0