Hello.
I’m using amazon freeRTOS Curiosity PIC32MZ EF Bundle and Java SE 10.0.2 and Python 3.7.0 (Homebrew macOS PM) and MPLAB V5.05 and XC32 V2.10 and MacBook:).
[link=https://www.microchip.com/Developmenttools/ProductDetails/DM320104-BNDL]https://www.microchip.com…tDetails/DM320104-BNDL[/link]
In Connect to AWS IoT - MQTT Hello World sample of an AWS.
[link=https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_mch.html]https://docs.aws.amazon.c…tting_started_mch.html[/link]
It’s a build error even as shown in instructions.
make -f nbproject/Makefile-pic32mz_ef_curiosity.mk SUBPROJECTS= .build-conf
make[1]: Entering directory ‘/Users/kibi/Desktop/AmazonFreeRTOS/demos/microchip/curiosity_pic32mzef/mplab’
cd …/…/curiosity_pic32_bl/aws_bootloader.X && make -f Makefile CONF=pic32mz_ef_curiosity
make[2]: Entering directory ‘/Users/kibi/Desktop/AmazonFreeRTOS/demos/microchip/curiosity_pic32_bl/aws_bootloader.X’
make -f nbproject/Makefile-pic32mz_ef_curiosity.mk SUBPROJECTS= .build-conf
make[3]: Entering directory ‘/Users/kibi/Desktop/AmazonFreeRTOS/demos/microchip/curiosity_pic32_bl/aws_bootloader.X’
User defined pre-build step: [python …/…/…/common/ota/bootloader/utility/codesigner_cert_utility/codesigner_cert_utility.py …/…/…/common/ota/bootloader/utility/codesigner_cert_utility/aws_ota_codesigner_certificate.pem …/…/…/common/ota/bootloader/include/aws_boot_codesigner_public_key.h]
############################################################ WARNING ############################################################
No certificate present in …/…/…/common/ota/bootloader/utility/codesigner_cert_utility/aws_ota_codesigner_certificate.pem
One warning build error.
User defined pre-build step: [python …/…/…/common/ota/bootloader/utility/codesigner_cert_utility/codesigner_cert_utility.py …/…/…/common/ota/bootloader/utility/codesigner_cert_utility/aws_ota_codesigner_certificate.pem …/…/…/common/ota/bootloader/include/aws_boot_codesigner_public_key.h]
WARNING
No certificate present in …/…/…/common/ota/bootloader/utility/codesigner_cert_utility/aws_ota_codesigner_certificate.pem
A lot of same warning build errors.
In file included from …/…/…/common/include/aws_clientcredential.h:33:0,
from …/common/application_code/microchip_code/system_config.h:62,
from …/…/…/…/lib/third_party/mcu_vendor/microchip/harmony/v2.05/framework/system/clk/sys_clk.h:52,
from …/common/application_code/microchip_code/system_definitions.h:51,
from …/common/application_code/microchip_code/system_interrupt.c:62:
…/…/…/common/include/aws_clientcredential_keys.h:76:21: warning: ‘clientcredentialJITR_DEVICE_CERTIFICATE_AUTHORITY_PEM’ defined but not used [-Wunused-variable]
static const char * clientcredentialJITR_DEVICE_CERTIFICATE_AUTHORITY_PEM = NULL;
^
Software uses macOS edition.
Is there setting of a project property?
Is there a problem with installation of a python using Homeberw?
Can you share the build error that you are getting? The object copy fails when the build fails, but there should be an earlier error that causes the build to fail (you can do a search for ‘error:’ (without the quotes, with the colon) to find the originating build error).
Are you building on Windows? One common cause of build failures on Windows machines is the file path length being too long, which manifests as an error about files with long paths not being found. If this is the error you are seeing, try to put your download closer to your C: drive so that it has a shorter path, and build again.
If you do not have an OTA codesigning certificate present, warnings (as mentioned in the docs you referred to) are expected for the MQTT Hello World project. However, this certificate is only used for the OTA demo, and should not cause the build to fail.
Check if your error is cause by the file path length issue, or otherwise can you post what error you are seeing from the “error:” build output search, as well as the version of Amazon FreeRTOS that you are using?
The warnings you are displaying should not prevent the build from completing (unless you have made a change to your project to block build on warnings!). The JITR warnings are also expected in some versions of the code.
If the build output is not being created, there is likely an additional problem. When there is a build-blocking compile error, the build output that contains the string “error:” - please paste the output when you search your build output for “error:”
Are pyserial 3.x and boto3 also necessary?
MacBook-Pro:~ kibi$ pyenv global 3.7.0
MacBook-Pro:~ kibi$ python --version
Python 3.7.0
MacBook-Pro:~ kibi$ pip list
Package Version ---------- ------- pip 10.0.1 setuptools 39.0.1 You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the ‘pip install --upgrade pip’ command.
After discussing with a Mac user on our team, it seems there is also sometimes problems with MPLAB using python 2 instead of python 3 to execute the post build step. If you are not doing an over the air update, you can also uncheck the box beside the post build step to skip this step for the MQTT Hello World demo while we investigate this problem further. However, if you plan to perform OTA, the OTA will not work without the post build step.
I am using a:freeRTOS 1.4.2.
It was seen using this certificate.
VeriSign-Class 3-Public-Primary-Certification-Authority-G5.pem to aws_ota_codesigner_certificate.pem
The name Python code uses, it was changed.
This aws_ota_codesigner_certificate.pem file was put in a lower folder.
AmazonFreeRTOS/demos/common/ota/bootloader/utility/codesigner_cert_utility/
By a absolute path of my Python, build success.
I could do a terminal USB connection.
But new error information.
WiFi can’t be connected.
I actually have same/similar problem. After trying to update to newest 1.4.2 I can’t make it to build anymore. at first I thought it was me who did a a migration/update wrong. But even building simplest demo. MQTT Echo demo from Connect to AWS IoT - Microchip. When all I supposed to do is just to update credentials etc. Can’t build it. I get the same error. I am using Ubuntu 16.04 and I did linked python3 to python as described in some readme.
sudo ln -sf python3.5 /usr/bin/python
Edited by: freeRToes on Oct 30, 2018 9:25 AM
To clarify. If I am just following steps from guide. After updating credential files.
I get this in build output
CLEAN SUCCESSFUL (total time: 154ms)
make -f nbproject/Makefile-pic32mz_ef_curiosity.mk SUBPROJECTS= .build-conf
make[1]: Entering directory ‘/home/imu/Projects/Robco/configuration_projects/AmazonFreeRTOS/demos/microchip/curiosity_pic32mzef/mplab’
cd …/…/curiosity_pic32_bl/aws_bootloader.X && make -f Makefile CONF=pic32mz_ef_curiosity
make[2]: Entering directory ‘/home/imu/Projects/Robco/configuration_projects/AmazonFreeRTOS/demos/microchip/curiosity_pic32_bl/aws_bootloader.X’
make -f nbproject/Makefile-pic32mz_ef_curiosity.mk SUBPROJECTS= .build-conf
make[3]: Entering directory ‘/home/imu/Projects/Robco/configuration_projects/AmazonFreeRTOS/demos/microchip/curiosity_pic32_bl/aws_bootloader.X’
User defined pre-build step: [python …/…/…/common/ota/bootloader/utility/codesigner_cert_utility/codesigner_cert_utility.py …/…/…/common/ota/bootloader/utility/codesigner_cert_utility/aws_ota_codesigner_certificate.pem …/…/…/common/ota/bootloader/include/aws_boot_codesigner_public_key.h]
############################################################ WARNING ############################################################
No certificate present in …/…/…/common/ota/bootloader/utility/codesigner_cert_utility/aws_ota_codesigner_certificate.pem
In case of me.
Take up space of a lower character string.
& amp;& amp;
You should make sure that the command will pass from a Terminal.
Please enjoy yourself:).