-
Couldn't load subscription status.
- Fork 189
'MXCHIP AZ3166 mxchip_azure_iot.bin does not exist' #357
-
Hi,
I have been trying to install MXCHIP AZ3166. I followed the instruction on https://github.com/azure-rtos/getting-started/tree/master/MXChip/AZ3166 and https://learn.microsoft.com/en-us/azure/iot-develop/quickstart-devkit-mxchip-az3166-iot-hub. First I tried to install through IoT hub method. Cloned the repository and followed step1,2,3 but after I run 'getting-started\MXChip\AZ3166\tools\rebuild.bat' file and go on to step 4 to find this 'getting-started\MXChip\AZ3166\build\app\mxchip_azure_iot.bin' file to flash. It does not exist in that location or in other words, it does not get created.
So i run the process all over again. Same problem but when I check CMake version it says ''cmake' is not recognized as an internal or external command'. Even though, it is included in clone. Plus, I installed Cmake separately as well.
Kindly let me know how to fix this issue.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 2 replies
-
Hello,
Cmake.exe isnt available on your path, so the source in unable to build and you should be seeing an error on the console.
You can either:
- Add cmake.exe to your system or user path manually
- Reinstall cmake, and choosing one of the "Add CMake to system PATH" options, and then restart your console.
image
Beta Was this translation helpful? Give feedback.
All reactions
-
So I tried this and It worked and I was able to flash it to iot device root folder. I set Baud rate to 115,200 and corrected USB port in Termite after checking with device manager. Termite gives this error when I press reset after connecting device and completing setting step in Termite:
Initializing WiFi
ERROR: wifi_ssid is empty
ERROR: wifi_init (0x00000043)
ERROR: Failed to initialize the network (0x00000043)
I am putting the following info in 'azure_config.h* file:
WIFI_SSID : "#r******"
WIFI_PASSWORD: "**********"
WIFI_MODE: "WPA2_PSK"
IOT_HUB_HOSTNAME: "r******.azure-devices.net"
IOT_HUB_DEVICE_ID: "j*****"
IOT_DEVICE_SAS_KEY: "r*****"
I did not put DPS information because I want to test just IoT hub connectivity. Am I putting the above information in the file in the correct form?
Because Termite does initiate WIFI and gives the error mentioned. Let me know how it can be fixed.
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions
-
I would say that either the wrong azure_config.h was edited (make sure it's the one in the MXCHIP/AZ3166/app dir), or you need to recompile the binary again to pull in the changes.
At this time, the WIFI_SSID in the mxchip bin file is empty.
Beta Was this translation helpful? Give feedback.