Hello. I’m looking to troubleshoot
For this kind of problem, ChatGPT can be good advice ![]()
You’re missing build tools on your system to compile the code:
sudo apt update
sudo apt install build-essential
Once you’ve done that, check that cc is available:
cc --
After update + build-essential here is what I get:
cc -I. -Wall -O2 -I../Source/ -DDBG_ENABLE -DVERSION="\"56124\"" -c ../Source/uart.c
cc -I. -Wall -O2 -I../Source/ -DDBG_ENABLE -DVERSION="\"56124\"" -c ../Source/JN51xx_BootLoader.c
../Source/JN51xx_BootLoader.c: In function ‘BL_DownloadExtensionToRamBeforeErase’:
../Source/JN51xx_BootLoader.c:1612:98: warning: passing argument 4 of ‘iBL_WriteRAM’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1612 | 00400 + n, u8ChunkSize, FlashProgrammerExtension_JN5168_bin + n) == -1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../Source/JN51xx_BootLoader.c:1219:86: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘const unsigned char *’
1219 | int iUartFd, uint32_t u32Address, uint8_t u8Length, uint8_t *pu8Buffer)
| ~^
cc -I. -Wall -O2 -I../Source/ -DDBG_ENABLE -DVERSION="\"56124\"" -c ../Source/Firmware.c
cc -I. -Wall -O2 -I../Source/ -DDBG_ENABLE -DVERSION="\"56124\"" -c ../Source/main.c
../Source/main.c: In function ‘main’:
../Source/main.c:115:9: warning: variable ‘iVerify’ set but not used [-Wunused-but-set-variable]
115 | int iVerify = 0;
| ^~~~~~~
cc uart.o JN51xx_BootLoader.o Firmware.o main.o -o JennicModuleProgrammer
That looks better but I don’t know how to interpret the result…
Any ideas?
Thanks
I simply copied and pasted your message into ChatGPT:
You can continue the tutorial, everything went well ![]()
Thank you; I’m not used to
Another request: I can’t find my dongle in the integrations list. Which one would be the closest to the ZiGate?
Thanks
Zigate is supported experimentally by zigbee2mqtt (ZiGate adapters | Zigbee2MQTT)
You will need to manually edit the file /var/lib/gladysassistant/zigbee2mqtt/z2m/configuration.yaml to add
serial:
adapter: zigate
then restart the container gladys-z2m-zigbee2mqtt
Thanks, I finally decided to go with the SONOFF dongle for simplicity.
