AlexESP32 wrote on October 03, 2019:
Really nobody here who can handle this?
Is this my fault or an Error of bad documentation / bad code from Amazon?
Someone here wo worked with Amazon FreeRTOS ESP-IDF, would be nice to know I’m not alone in this problem
Hello everyone!
Hope somebody can help me…
I just want to get a simple “Hello World” on my ESP32 but I even don’t know how to start…
OS: Windows 10
Prefered IDE: Eclipse
Download: https://github.com/aws/amazon-freertos
Tutorial: https://docs.aws.amazon.com/en_pv/freertos/latest/userguide/getting_started_espressif.html
Start at heading: “Build, Flash, and Run the Amazon FreeRTOS Demo Project”, is this correct?
My first question is:
My source code directory / build binaries directory is correct, now i have to click “configure”, now wich generator in CMake-GUI do I need:
MSYS Makefiles,? MinGW Makefile,?, Ninja?, Eclipse CDT4 - MinGW Makefiles?
After that correct Configure and Generate, i have got a build directory…
Now the big question is: how can i get this build files in Eclipse and then on my ESP32?
Thank you very much for taking your time.
Greetings.
I tried to build with CMake, the generator was “Eclipse CDT4 - MinGw Makefiles” and i got this error:
C:\Users\ALEXALEX\Desktop\amazon-freertos-master\amazon-freertos-master>cmake --bu
ild build
1% Built target afr_kernel
3% Built target afr_freertos_plus_tcp
13% Built target afr_3rdparty_mbedtls
14% Built target afr_crypto
17% Built target afr_pkcs11_implementation
17% Built target afr_pkcs11
19% Built target afr_tls
20% Built target afr_secure_sockets
20% Built target afr_platform
21% Built target afr_common
21% Built target afr_https
22% Built target afr_dev_mode_key_provisioning
22% Built target afr_3rdparty_tinycbor
22% Building C object CMakeFiles/afr_serializer.dir/libraries/c_sdk/standard/se
rializer/src/json/iot_serializer_json_encoder.c.obj
C:\Users\ALEXALEX\Desktop\amazon-freertos-master\amazon-freertos-master\libraries
c_sdk\standard\serializer\src\json\iot_serializer_json_encoder.c: In function ‘_ap
pendData’:
C:\Users\ALEXALEX\Desktop\amazon-freertos-master\amazon-freertos-master\libraries
c_sdk\standard\serializer\src\json\iot_serializer_json_encoder.c:465:13: error: ‘s
trncpy’ output truncated before terminating nul copying 4 bytes from a string of t
he same length -Werror=stringop-truncation
strncpy( ( char * ) _jsonContainerPointer( pContainer ), _JSON_NULL_V
ALUE, _JSON_NULL_VALUE_LENGTH );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\ALEXALEX\Desktop\amazon-freertos-master\amazon-freertos-master\libraries\
c_sdk\standard\serializer\src\json\iot_serializer_json_encoder.c: In function '_ap
pendBoolean':
C:\Users\ALEXALEX\Desktop\amazon-freertos-master\amazon-freertos-master\libraries\
c_sdk\standard\serializer\src\json\iot_serializer_json_encoder.c:417:9: error: 'st
rncpy' output truncated before terminating nul copying 4 bytes from a string of th
e same length -Werror=stringop-truncation
strncpy( ( char * ) _jsonContainerPointer( pContainer ), _JSON_BOOL_TRUE,
_JSON_BOOL_TRUE_LENGTH );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\ALEXALEX\Desktop\amazon-freertos-master\amazon-freertos-master\libraries\
c_sdk\standard\serializer\src\json\iot_serializer_json_encoder.c:422:9: error: 'st
rncpy' output truncated before terminating nul copying 5 bytes from a string of th
e same length -Werror=stringop-truncation
strncpy( ( char * ) _jsonContainerPointer( pContainer ), _JSON_BOOL_FALSE
, _JSON_BOOL_FALSE_LENGTH );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
CMakeFiles\afr_serializer.dir\build.make:100: recipe for target 'CMakeFiles/afr_se
rializer.dir/libraries/c_sdk/standard/serializer/src/json/iot_serializer_json_enco
der.c.obj' failed
mingw32-make.exe2: *** CMakeFiles/afr_serializer.dir/libraries/c_sdk/standard/s
erializer/src/json/iot_serializer_json_encoder.c.obj Error 1
CMakeFiles\Makefile2:334: recipe for target 'CMakeFiles/afr_serializer.dir/all' fa
iled
mingw32-make.exe1: *** CMakeFiles/afr_serializer.dir/all Error 2
Makefile:82: recipe for target 'all' failed
mingw32-make.exe: *** all Error 2
C:\Users\ALEXALEX\Desktop\amazon-freertos-master\amazon-freertos-master>
Maybee somenone can help me ;)
Edited by: AlexESP32 on Oct 3, 2019 2:22 AM
Edited by: AlexESP32 on Oct 3, 2019 7:07 AM
Edited by: AlexESP32 on Oct 3, 2019 7:08 AM