rpcme / aws-mikroe-smarthome-pic32mz

MIT License
5 stars 6 forks source link

Code does not compile #2

Closed MoJo2600 closed 3 years ago

MoJo2600 commented 5 years ago

Hello,

i followed the instructions and I'm trying to get the mikroe PIC32MZ to work. But the compilation of the code does not work. The error is:

nbproject/Makefile-pic32mz_ef_curiosity.mk:219: recipe for target 'build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo_network_addr.o' failed
In file included from ../common/application_code/main.c:32:0:
../../../../amazon-freertos/libraries/freertos_plus/standard/freertos_plus_tcp/include/FreeRTOS_IP.h:102:31: fatal error: pack_struct_start.h: No such file or directory
 #include "pack_struct_start.h"
                               ^
compilation terminated.
make[2]: *** [build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../../../../amazon-freertos/demos/demo_runner/aws_demo_network_addr.c:33:0:
../../../../amazon-freertos/libraries/freertos_plus/standard/freertos_plus_tcp/include/FreeRTOS_IP.h:102:31: fatal error: pack_struct_start.h: No such file or directory
 #include "pack_struct_start.h"
                               ^
compilation terminated.
make[2]: *** [build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo_network_addr.o] Error 1

i just tried to copy the file from another directory cp ./amazon-freertos/libraries/freertos_plus/standard/freertos_plus_tcp/source/portable/Compiler/GCC/* amazon-freertos/libraries/freertos_plus/standard/freertos_plus_tcp/include/ then the compilation does not complain about this error anymore, but now is throwing the error:

build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/main.c:380: multiple definition of `vApplicationMallocFailedHook'
build/pic32mz_ef_curiosity/debug/_ext/1437402554/rtos_hooks.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/microchip_code/rtos_hooks.c:97: first defined here
build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/main.c:402: multiple definition of `vApplicationStackOverflowHook'
build/pic32mz_ef_curiosity/debug/_ext/1437402554/rtos_hooks.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/microchip_code/rtos_hooks.c:56: first defined here
build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo.o: In function `vApplicationGetTimerTaskMemory':
/home/mojo/Remote_HVAC/amazon-freertos/demos/demo_runner/aws_demo.c:54: multiple definition of `vApplicationGetIdleTaskMemory'
build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/main.c:256: first defined here
build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo.o:/home/mojo/Remote_HVAC/amazon-freertos/demos/demo_runner/aws_demo.c:85: multiple definition of `vApplicationGetTimerTaskMemory'
build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/main.c:283: first defined here
build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo_network_addr.o: In function `pcApplicationHostnameHook':
/home/mojo/Remote_HVAC/amazon-freertos/demos/demo_runner/aws_demo_network_addr.c:87: multiple definition of `ucMACAddress'
build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/main.c:(.rodata+0x8c): first defined here
build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo_network_addr.o:/home/mojo/Remote_HVAC/amazon-freertos/demos/demo_runner/aws_demo_network_addr.c:103: multiple definition of `pcApplicationHostnameHook'
build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/main.c:302: first defined here
build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo_version.o:(.rodata+0x0): multiple definition of `xAppFirmwareVersion'
build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/main.c:(.rodata+0xa4): first defined here
build/pic32mz_ef_curiosity/debug/_ext/526896679/iot_demo_afr.o:/home/mojo/Remote_HVAC/amazon-freertos/demos/demo_runner/iot_demo_afr.c:377: multiple definition of `vApplicationMallocFailedHook'
build/pic32mz_ef_curiosity/debug/_ext/1437402554/rtos_hooks.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/microchip_code/rtos_hooks.c:97: first defined here
build/pic32mz_ef_curiosity/debug/_ext/526896679/iot_demo_afr.o:/home/mojo/Remote_HVAC/amazon-freertos/demos/demo_runner/iot_demo_afr.c:401: multiple definition of `vApplicationStackOverflowHook'
build/pic32mz_ef_curiosity/debug/_ext/1437402554/rtos_hooks.o:/home/mojo/Remote_HVAC/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/microchip_code/rtos_hooks.c:56: first defined here
build/pic32mz_ef_curiosity/debug/_ext/145766502/asn1parse.o: In function `mbedtls_asn1_get_tag':
/home/mojo/Remote_HVAC/amazon-freertos/libraries/3rdparty/tinycrypt/asn1/asn1parse.c:36: multiple definition of `mbedtls_asn1_get_len'
...

Best

Christian

rpcme commented 5 years ago

Hello @MoJo2600 - could you please let me know your MPLAB X and MPLAB XC32 versions? I was unable to derive it from your posting.

I will be in transit today but should be in a position to reproduce given your toolchain hopefully over the next 24-26 hours. Please note that the compiler version is relatively strict given some XC32 backward compatibility challenges. If you haven't had the chance to read it yet, the version is posted in Section 1 of the tutorial.

I'm looking forward to help you resolve.

MoJo2600 commented 5 years ago

Thank you for your fast response and for the great work and effort you put into this workshop! I'll try to give you all necessary information:

My mplab version: MPLAB X IDE v5.25 X32 is in version v2.30 My OS is ubuntu linux 19.04 (not sure if this matters?)

I tried to follow all steps of your workshop and realized i did not install harmony. But this doesn't change the behaviour. Tried it right now: clone the repository, open the smarthome sample and tried to compile. I get the exact same error as described above.

It would be awesome if you have an idea, what I'm doing wrong.

rpcme commented 5 years ago

Hello @MoJo2600 , can you please install XC32 v2.10 and ensure your project settings use that version?

We have definitely experienced issues with XC32 v2.20 and later. The MCU32 team at Microchip confirmed that at least XC32 2.20 will not work due to some BSP limitations. This is why the Software Setup section is very explicit about the compiler version.

MoJo2600 commented 5 years ago

Hello @rpcme,

thank you! After i changed the compiler version, the error about the missing pack_struct_start.h remained the same. I did copy the files from the gcc directory with cp ./amazon-freertos/libraries/freertos_plus/standard/freertos_plus_tcp/source/portable/Compiler/GCC/* amazon-freertos/libraries/freertos_plus/standard/freertos_plus_tcp/include/ and now the code compiles successfully. I can create a pull request to add this information to your documentation if you like?

MoJo2600 commented 5 years ago

Ok, i followed your Workshop to Section 2. In the section "Building Connectivity to Your App" i changed the defines as stated. But now i get the following error:

"/opt/microchip/xc32/v2.10/bin/xc32-gcc"  -g   -mprocessor=32MZ2048EFH100 -mnewlib-libc -o dist/pic32mz_ef_curiosity/debug/mplab.debug.elf build/pic32mz_ef_curiosity/debug/_ext/1437402554/rtos_hooks.o build/pic32mz_ef_curiosity/debug/_ext/1437402554/system_exceptions.o build/pic32mz_ef_curiosity/debug/_ext/1437402554/system_init.o build/pic32mz_ef_curiosity/debug/_ext/1437402554/system_interrupt.o build/pic32mz_ef_curiosity/debug/_ext/1437402554/system_interrupt_a.o build/pic32mz_ef_curiosity/debug/_ext/1437402554/system_tasks.o build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o build/pic32mz_ef_curiosity/debug/_ext/778196022/aws_iot_demo_defender.o build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo.o build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo_network_addr.o build/pic32mz_ef_curiosity/debug/_ext/526896679/aws_demo_version.o build/pic32mz_ef_curiosity/debug/_ext/526896679/iot_demo_afr.o build/pic32mz_ef_curiosity/debug/_ext/526896679/iot_demo_runner.o build/pic32mz_ef_curiosity/debug/_ext/1460887903/aws_dev_mode_key_provisioning.o build/pic32mz_ef_curiosity/debug/_ext/1460887903/pem2der.o build/pic32mz_ef_curiosity/debug/_ext/1322359600/aws_greengrass_discovery_demo.o build/pic32mz_ef_curiosity/debug/_ext/2066893065/iot_demo_mqtt.o build/pic32mz_ef_curiosity/debug/_ext/174521577/aws_iot_demo_network.o build/pic32mz_ef_curiosity/debug/_ext/174521577/aws_iot_network_manager.o build/pic32mz_ef_curiosity/debug/_ext/1590692631/aws_iot_ota_update_demo.o build/pic32mz_ef_curiosity/debug/_ext/1846459341/aws_iot_demo_shadow.o build/pic32mz_ef_curiosity/debug/_ext/1590688338/aws_tcp_echo_client_single_task.o build/pic32mz_ef_curiosity/debug/_ext/1697143911/heap_4.o build/pic32mz_ef_curiosity/debug/_ext/510829674/port.o build/pic32mz_ef_curiosity/debug/_ext/510829674/port_asm.o build/pic32mz_ef_curiosity/debug/_ext/260391562/event_groups.o build/pic32mz_ef_curiosity/debug/_ext/260391562/list.o build/pic32mz_ef_curiosity/debug/_ext/260391562/queue.o build/pic32mz_ef_curiosity/debug/_ext/260391562/stream_buffer.o build/pic32mz_ef_curiosity/debug/_ext/260391562/tasks.o build/pic32mz_ef_curiosity/debug/_ext/260391562/timers.o build/pic32mz_ef_curiosity/debug/_ext/1020808946/jsmn.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/aes.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/aesni.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/arc4.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/asn1parse.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/asn1write.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/base64.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/bignum.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/blowfish.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/camellia.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ccm.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/certs.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/cipher.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/cipher_wrap.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/cmac.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ctr_drbg.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/debug.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/des.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/dhm.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ecdh.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ecdsa.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ecjpake.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ecp.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ecp_curves.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/entropy.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/entropy_poll.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/error.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/gcm.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/havege.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/hmac_drbg.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/md.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/md2.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/md4.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/md5.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/md_wrap.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/memory_buffer_alloc.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/net_sockets.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/oid.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/padlock.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/pem.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/pk.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/pk_wrap.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/pkcs12.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/pkcs5.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/pkparse.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/pkwrite.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/platform.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/platform_util.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ripemd160.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/rsa.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/rsa_internal.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/sha1.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/sha256.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/sha512.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ssl_cache.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ssl_ciphersuites.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ssl_cli.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ssl_cookie.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ssl_srv.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ssl_ticket.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/ssl_tls.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/threading.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/timing.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/version.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/version_features.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/x509.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/x509_create.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/x509_crl.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/x509_crt.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/x509_csr.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/x509write_crt.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/x509write_csr.o build/pic32mz_ef_curiosity/debug/_ext/1475339087/xtea.o build/pic32mz_ef_curiosity/debug/_ext/1762114586/cborencoder.o build/pic32mz_ef_curiosity/debug/_ext/1762114586/cborencoder_close_container_checked.o build/pic32mz_ef_curiosity/debug/_ext/1762114586/cborerrorstrings.o build/pic32mz_ef_curiosity/debug/_ext/1762114586/cborparser.o build/pic32mz_ef_curiosity/debug/_ext/1762114586/cborparser_dup_string.o build/pic32mz_ef_curiosity/debug/_ext/1762114586/cborpretty.o build/pic32mz_ef_curiosity/debug/_ext/145766502/asn1parse.o build/pic32mz_ef_curiosity/debug/_ext/21989770/aes_decrypt.o build/pic32mz_ef_curiosity/debug/_ext/21989770/aes_encrypt.o build/pic32mz_ef_curiosity/debug/_ext/21989770/cbc_mode.o build/pic32mz_ef_curiosity/debug/_ext/21989770/ccm_mode.o build/pic32mz_ef_curiosity/debug/_ext/21989770/cmac_mode.o build/pic32mz_ef_curiosity/debug/_ext/21989770/ctr_mode.o build/pic32mz_ef_curiosity/debug/_ext/21989770/ctr_prng.o build/pic32mz_ef_curiosity/debug/_ext/21989770/ecc.o build/pic32mz_ef_curiosity/debug/_ext/21989770/ecc_dh.o build/pic32mz_ef_curiosity/debug/_ext/21989770/ecc_dsa.o build/pic32mz_ef_curiosity/debug/_ext/21989770/ecc_platform_specific.o build/pic32mz_ef_curiosity/debug/_ext/21989770/hmac.o build/pic32mz_ef_curiosity/debug/_ext/21989770/hmac_prng.o build/pic32mz_ef_curiosity/debug/_ext/21989770/sha256.o build/pic32mz_ef_curiosity/debug/_ext/21989770/utils.o build/pic32mz_ef_curiosity/debug/_ext/1600792773/aws_pkcs11_mbedtls.o build/pic32mz_ef_curiosity/debug/_ext/1807212662/iot_clock_afr.o build/pic32mz_ef_curiosity/debug/_ext/1807212662/iot_metrics.o build/pic32mz_ef_curiosity/debug/_ext/1807212662/iot_network_afr.o build/pic32mz_ef_curiosity/debug/_ext/1807212662/iot_threads_afr.o build/pic32mz_ef_curiosity/debug/_ext/436580790/aws_secure_sockets.o build/pic32mz_ef_curiosity/debug/_ext/472075877/aws_iot_defender_api.o build/pic32mz_ef_curiosity/debug/_ext/472075877/aws_iot_defender_collector.o build/pic32mz_ef_curiosity/debug/_ext/472075877/aws_iot_defender_mqtt.o build/pic32mz_ef_curiosity/debug/_ext/472075877/aws_iot_defender_v1.o build/pic32mz_ef_curiosity/debug/_ext/1609259422/aws_iot_shadow_api.o build/pic32mz_ef_curiosity/debug/_ext/1609259422/aws_iot_shadow_operation.o build/pic32mz_ef_curiosity/debug/_ext/1609259422/aws_iot_shadow_parser.o build/pic32mz_ef_curiosity/debug/_ext/1609259422/aws_iot_shadow_static_memory.o build/pic32mz_ef_curiosity/debug/_ext/1609259422/aws_iot_shadow_subscription.o build/pic32mz_ef_curiosity/debug/_ext/1609259422/aws_shadow.o build/pic32mz_ef_curiosity/debug/_ext/944157806/aws_logging_task_dynamic_buffers.o build/pic32mz_ef_curiosity/debug/_ext/944157806/iot_logging.o build/pic32mz_ef_curiosity/debug/_ext/1634203314/iot_taskpool.o build/pic32mz_ef_curiosity/debug/_ext/1634203314/iot_taskpool_static_memory.o build/pic32mz_ef_curiosity/debug/_ext/1187751234/iot_init.o build/pic32mz_ef_curiosity/debug/_ext/1187751234/iot_static_memory_common.o build/pic32mz_ef_curiosity/debug/_ext/1195847184/aws_mqtt_agent.o build/pic32mz_ef_curiosity/debug/_ext/1195847184/iot_mqtt_api.o build/pic32mz_ef_curiosity/debug/_ext/1195847184/iot_mqtt_network.o build/pic32mz_ef_curiosity/debug/_ext/1195847184/iot_mqtt_operation.o build/pic32mz_ef_curiosity/debug/_ext/1195847184/iot_mqtt_serialize.o build/pic32mz_ef_curiosity/debug/_ext/1195847184/iot_mqtt_static_memory.o build/pic32mz_ef_curiosity/debug/_ext/1195847184/iot_mqtt_subscription.o build/pic32mz_ef_curiosity/debug/_ext/1195847184/iot_mqtt_validate.o build/pic32mz_ef_curiosity/debug/_ext/935336371/iot_serializer_tinycbor_decoder.o build/pic32mz_ef_curiosity/debug/_ext/935336371/iot_serializer_tinycbor_encoder.o build/pic32mz_ef_curiosity/debug/_ext/935561241/aws_iot_serializer_json_decoder.o build/pic32mz_ef_curiosity/debug/_ext/935561241/aws_iot_serializer_json_encoder.o build/pic32mz_ef_curiosity/debug/_ext/1071426622/iot_json_utils.o build/pic32mz_ef_curiosity/debug/_ext/1071426622/iot_serializer_static_memory.o build/pic32mz_ef_curiosity/debug/_ext/1614690836/aws_greengrass_discovery.o build/pic32mz_ef_curiosity/debug/_ext/1614690836/aws_helper_secure_connect.o build/pic32mz_ef_curiosity/debug/_ext/931346797/aws_iot_ota_agent.o build/pic32mz_ef_curiosity/debug/_ext/931346797/aws_ota_cbor.o build/pic32mz_ef_curiosity/debug/_ext/225497654/aws_crypto.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_clock.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_mqueue.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_pthread.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_pthread_barrier.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_pthread_cond.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_pthread_mutex.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_sched.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_semaphore.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_timer.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_unistd.o build/pic32mz_ef_curiosity/debug/_ext/726005599/FreeRTOS_POSIX_utils.o build/pic32mz_ef_curiosity/debug/_ext/1136354841/BufferAllocation_2.o build/pic32mz_ef_curiosity/debug/_ext/1136354841/NetworkInterface_eth.o build/pic32mz_ef_curiosity/debug/_ext/1136354841/NetworkInterface_wifi.o build/pic32mz_ef_curiosity/debug/_ext/906970559/FreeRTOS_ARP.o build/pic32mz_ef_curiosity/debug/_ext/906970559/FreeRTOS_DHCP.o build/pic32mz_ef_curiosity/debug/_ext/906970559/FreeRTOS_DNS.o build/pic32mz_ef_curiosity/debug/_ext/906970559/FreeRTOS_IP.o build/pic32mz_ef_curiosity/debug/_ext/906970559/FreeRTOS_Sockets.o build/pic32mz_ef_curiosity/debug/_ext/906970559/FreeRTOS_Stream_Buffer.o build/pic32mz_ef_curiosity/debug/_ext/906970559/FreeRTOS_TCP_IP.o build/pic32mz_ef_curiosity/debug/_ext/906970559/FreeRTOS_TCP_WIN.o build/pic32mz_ef_curiosity/debug/_ext/906970559/FreeRTOS_UDP_IP.o build/pic32mz_ef_curiosity/debug/_ext/287464496/aws_tls.o build/pic32mz_ef_curiosity/debug/_ext/2084899046/aws_system_init.o build/pic32mz_ef_curiosity/debug/_ext/618337246/aws_nvm.o build/pic32mz_ef_curiosity/debug/_ext/618337246/aws_ota_pal.o build/pic32mz_ef_curiosity/debug/_ext/209347831/aws_pkcs11_pal.o build/pic32mz_ef_curiosity/debug/_ext/209347831/pkcs11_nvm.o build/pic32mz_ef_curiosity/debug/_ext/1988813459/aws_wifi.o build/pic32mz_ef_curiosity/debug/_ext/1988813459/aws_wifi_assert.o build/pic32mz_ef_curiosity/debug/_ext/1383348094/bsp.o build/pic32mz_ef_curiosity/debug/_ext/998828720/drv_ethmac.o build/pic32mz_ef_curiosity/debug/_ext/998828720/drv_ethmac_lib.o build/pic32mz_ef_curiosity/debug/_ext/2119984770/drv_ethphy.o build/pic32mz_ef_curiosity/debug/_ext/2119984770/drv_extphy_smsc8720.o build/pic32mz_ef_curiosity/debug/_ext/2119984770/drv_extphy_smsc8740.o build/pic32mz_ef_curiosity/debug/_ext/1809021424/drv_flash_static.o build/pic32mz_ef_curiosity/debug/_ext/774990394/drv_miim.o build/pic32mz_ef_curiosity/debug/_ext/632105273/drv_spi_api.o build/pic32mz_ef_curiosity/debug/_ext/632105273/drv_spi_master_dma_tasks.o build/pic32mz_ef_curiosity/debug/_ext/632105273/drv_spi_master_rm_tasks.o build/pic32mz_ef_curiosity/debug/_ext/632105273/drv_spi_tasks.o build/pic32mz_ef_curiosity/debug/_ext/698144356/drv_spi.o build/pic32mz_ef_curiosity/debug/_ext/698144356/drv_spi_api.o build/pic32mz_ef_curiosity/debug/_ext/1212172180/drv_spi_sys_queue_fifo.o build/pic32mz_ef_curiosity/debug/_ext/314543735/drv_tmr.o build/pic32mz_ef_curiosity/debug/_ext/61259445/drv_usart.o build/pic32mz_ef_curiosity/debug/_ext/61259445/drv_usart_buffer_queue.o build/pic32mz_ef_curiosity/debug/_ext/61259445/drv_usart_buffer_queue_dma.o build/pic32mz_ef_curiosity/debug/_ext/61259445/drv_usart_byte_model.o build/pic32mz_ef_curiosity/debug/_ext/61259445/drv_usart_dma.o build/pic32mz_ef_curiosity/debug/_ext/61259445/drv_usart_read_write.o build/pic32mz_ef_curiosity/debug/_ext/1240479525/wdrv_wilc1000_console.o build/pic32mz_ef_curiosity/debug/_ext/958796085/wdrv_wilc1000_eint.o build/pic32mz_ef_curiosity/debug/_ext/958796085/wdrv_wilc1000_gpio.o build/pic32mz_ef_curiosity/debug/_ext/1631650608/wdrv_wilc1000_spi.o build/pic32mz_ef_curiosity/debug/_ext/353893321/wdrv_wilc1000_timer.o build/pic32mz_ef_curiosity/debug/_ext/154368849/wdrv_wilc1000_osal.o build/pic32mz_ef_curiosity/debug/_ext/2022111335/wdrv_wilc1000_cli.o build/pic32mz_ef_curiosity/debug/_ext/2022111335/wdrv_wilc1000_config.o build/pic32mz_ef_curiosity/debug/_ext/2022111335/wdrv_wilc1000_connmgr.o build/pic32mz_ef_curiosity/debug/_ext/2022111335/wdrv_wilc1000_events.o build/pic32mz_ef_curiosity/debug/_ext/2022111335/wdrv_wilc1000_iwpriv.o build/pic32mz_ef_curiosity/debug/_ext/2022111335/wdrv_wilc1000_main.o build/pic32mz_ef_curiosity/debug/_ext/2022111335/wdrv_wilc1000_scan_helper.o build/pic32mz_ef_curiosity/debug/_ext/1093701865/nm_common.o build/pic32mz_ef_curiosity/debug/_ext/599657926/m2m_hif.o build/pic32mz_ef_curiosity/debug/_ext/599657926/m2m_periph.o build/pic32mz_ef_curiosity/debug/_ext/599657926/m2m_wifi.o build/pic32mz_ef_curiosity/debug/_ext/599657926/nmasic.o build/pic32mz_ef_curiosity/debug/_ext/599657926/nmbus.o build/pic32mz_ef_curiosity/debug/_ext/599657926/nmdrv.o build/pic32mz_ef_curiosity/debug/_ext/599657926/nmspi.o build/pic32mz_ef_curiosity/debug/_ext/1455238795/spi_flash.o build/pic32mz_ef_curiosity/debug/_ext/15923815/wdrvext_wilc1000.o build/pic32mz_ef_curiosity/debug/_ext/15923815/wilc1000_fw_update.o build/pic32mz_ef_curiosity/debug/_ext/15923815/wilc1000_task.o build/pic32mz_ef_curiosity/debug/_ext/1943553354/osal.o build/pic32mz_ef_curiosity/debug/_ext/1943553354/osal_freertos.o build/pic32mz_ef_curiosity/debug/_ext/1796087213/plib_tmr_pic32.o build/pic32mz_ef_curiosity/debug/_ext/1644803049/sys_clk_pic32mz.o build/pic32mz_ef_curiosity/debug/_ext/1948562286/sys_command.o build/pic32mz_ef_curiosity/debug/_ext/474984974/sys_buffer.o build/pic32mz_ef_curiosity/debug/_ext/474984974/sys_queue.o build/pic32mz_ef_curiosity/debug/_ext/1889692830/sys_console.o build/pic32mz_ef_curiosity/debug/_ext/1889692830/sys_console_uart.o build/pic32mz_ef_curiosity/debug/_ext/1578923034/sys_debug.o build/pic32mz_ef_curiosity/debug/_ext/606531472/sys_devcon.o build/pic32mz_ef_curiosity/debug/_ext/606531472/sys_devcon_cache_pic32mz.o build/pic32mz_ef_curiosity/debug/_ext/606531472/sys_devcon_pic32mz.o build/pic32mz_ef_curiosity/debug/_ext/1743266625/sys_dma.o build/pic32mz_ef_curiosity/debug/_ext/1554539466/sys_int_pic32.o build/pic32mz_ef_curiosity/debug/_ext/1384817063/sys_ports.o build/pic32mz_ef_curiosity/debug/_ext/1384817063/sys_ports_static.o build/pic32mz_ef_curiosity/debug/_ext/593870618/sys_random.o build/pic32mz_ef_curiosity/debug/_ext/494002922/sys_reset.o build/pic32mz_ef_curiosity/debug/_ext/412409760/sys_tmr.o build/pic32mz_ef_curiosity/debug/_ext/2011626635/tcpip_heap_alloc.o build/pic32mz_ef_curiosity/debug/_ext/2011626635/tcpip_heap_external.o build/pic32mz_ef_curiosity/debug/_ext/2011626635/tcpip_helpers.o build/pic32mz_ef_curiosity/debug/_ext/2011626635/tcpip_packet.o build/pic32mz_ef_curiosity/debug/_ext/1919979847/click_oled_c.o build/pic32mz_ef_curiosity/debug/_ext/2039619224/click_rotary.o build/pic32mz_ef_curiosity/debug/_ext/1357044883/click_weather.o build/pic32mz_ef_curiosity/debug/_ext/1951706168/module_common.o build/pic32mz_ef_curiosity/debug/_ext/586174018/module_display.o build/pic32mz_ef_curiosity/debug/_ext/586174018/module_display_resources.o build/pic32mz_ef_curiosity/debug/_ext/586174018/module_hvac.o build/pic32mz_ef_curiosity/debug/_ext/586174018/module_sensor.o build/pic32mz_ef_curiosity/debug/_ext/586174018/module_thermostat.o    ../../harmony/v2.05/bin/framework/peripheral/PIC32MZ2048EFH100_peripherals.a      -DXPRJ_pic32mz_ef_curiosity=pic32mz_ef_curiosity  -no-legacy-libc     -mreserve=data@0x0:0x37F   -Wl,--defsym=__MPLAB_BUILD=1,--script="../common/application_code/microchip_code/app_mz.ld",--defsym=__MPLAB_DEBUG=1,--defsym=__DEBUG=1,-D=__DEBUG_D,--defsym=_min_heap_size=170000,--defsym=_min_stack_size=10000,--gc-sections,--no-code-in-dinit,--no-dinit-in-serial-mem,-Map="dist/pic32mz_ef_curiosity/debug/mplab.debug.map",--memorysummary,dist/pic32mz_ef_curiosity/debug/memoryfile.xml
nbproject/Makefile-pic32mz_ef_curiosity.mk:3483: recipe for target 'dist/pic32mz_ef_curiosity/debug/mplab.debug.elf' failed
make[2]: Leaving directory '/home/mojo/aws-mikroe-smarthome-pic32mz/smarthome-kit/microchip/curiosity_pic32mzef/mplab'
nbproject/Makefile-pic32mz_ef_curiosity.mk:105: recipe for target '.build-conf' failed
make[1]: Leaving directory '/home/mojo/aws-mikroe-smarthome-pic32mz/smarthome-kit/microchip/curiosity_pic32mzef/mplab'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
build/pic32mz_ef_curiosity/debug/_ext/822444079/main.o: In function `vApplicationIPNetworkEventHook':
/home/mojo/aws-mikroe-smarthome-pic32mz/smarthome-kit/microchip/curiosity_pic32mzef/common/application_code/main.c:188: undefined reference to `vStartRemoteHVACDemo'
collect2: error: ld returned 255 exit status
make[2]: *** [dist/pic32mz_ef_curiosity/debug/mplab.debug.elf] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
rpcme commented 5 years ago

I am not sure how that could happen, it seems like the linker path got messed up. Could you build clean again and then attach the log as file? I will get MPLAB X installed on my personal linux workstation over the next couple days and try to repro. I know this is OK on Windows and MacOS, but I will try to repro myself on Linux.

MoJo2600 commented 5 years ago

I could fix this error by adding the folder to the project. I will put my changes inside an pull request so you can have a look.

I now have other issues, where the programmed board does connect to the wifi network, but does not connect to the MQTT broker. Sometimes it just hangs, Sometimes it does show values on the display. But i will try to figure out if it has to do with my network connection.

Patriku commented 5 years ago

Hi @rpcme & @MoJo2600. I'm running on Ubuntu and I had the same issues as noted above. Now I also have the issue where the programmed board connect's to the wifi network but not to the MQTT broker, It just hangs.

@MoJo2600 Were you able to get it working? For me it seems to be an an error that occurs inside the 'mbedtls_ssl_handshake' within the TLS_Connect function.

Any suggestions?

Br Patrik.

rpcme commented 5 years ago

I got the toolchain installed on my personal linux machine this morning and confirmed this is broken for linux somehow. I will be working through it this morning.

rpcme commented 5 years ago

Okay, I see what happened now. I thought I was working on a branch but I made a bad mistake in changing future stuff on master.

I will keep this open until I fix everything correctly, which should be this week. For now, please do the following:

  1. Close project in MPLAB X.
  2. Clone clean
  3. Run the command cd aws-mikroe-smarthome-pic32mz
  4. Run the command git checkout 93e821c838d7c792d3cd57935cf65b95d2623a45
  5. Run the command cd amazon-freertos
  6. Run the command git checkout v1.4.9
  7. Reopen project in MPLAB X. This should open and compile with no errors.

Again, I apologize for not noticing this issue earlier. Thank you for your understanding.

MoJo2600 commented 5 years ago

Good news! I will try this when i find time for it and report if i succeed