Bienvenue sur le forum de la ZiGate !

Ici, nous échangeons sur les produits ZiGate (matériellement) et les firmware.

Pour que vous puissiez gagner du temps, je vous conseille de visiter, dans un premier temps, les forums et documentations des plugins et box domotique que vous avez choisi :

Jeedom :

Forum : https://community.jeedom.com/
Plugin ZiGate : https://github.com/Jeedom-Zigate/jeedom-plugin-zigate
Plugin Abeille : https://github.com/KiwiHC16/Abeille + http://kiwihc16.free.fr/

Domoticz :

Forum Francophonehttps://easydomoticz.com/forum/viewforum.php?f=28
Forum Anglophonehttps://www.domoticz.com/forum/viewforum.php?f=68
Développeur: @pipiche38 disponible sur keybase.io en chat

EEdomus :

Forum : https://forum.eedomus.com/

Home-assistant :

Plugin : https://github.com/doudz/homeassistant-zigate
Zigpy : https://www.home-assistant.io/integrations/zha/

Fil d’Ariane du forum – Vous êtes ici :Forum de la ZiGateZiGate USB-TTL: Firmwarev3.1aCompiler le firmware
Veuillez pour créer des messages et des sujets de discussion.

Compiler le firmware

Bonjour,

j'aimerais compiler le firmware (v3.1a) à partir des sources et j'ai quelques questions :

  • j'ai installé BeyondStudio, je suppose que c'est avec cet IDE que je dois ouvrir et compiler le code source ?
  • je n'arrive pas à ouvrir les sources avec BeyondStudio, ni aucun projet d'ailleurs. Il me manque quelque chose ?
  • j'ai potassé un peu les docs NXP, ça m'a l'air coton. Si vous avez des conseils, je suis preneur !

Merci d'avance pour votre aide.

Philippe

 

 

Tu devraits trouver les informatiosn ici: https://github.com/fairecasoimeme/ZiGate/issues/105

 

Imabot a réagi à ce message.
Imabot

Réponse rapide, précise. Impressionnant ! Merci.

Aïe, ça compile pas. J'ai un doute, la cible c'est un JN5168 (comme sur le guide) ou un JN5169 ?

Compiling /c/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c ...
/c/NXP/bstudio_nxp/sdk/Tools/ba-elf-ba2-r36379/bin/ba-elf-gcc -c -o app_Znc_cmds.o -DUART_BAUD_RATE=115200 -DCOORDINATOR -DCRC_XOR -DAPP_AHI_CONTROL -DJN516x=5160 -DJN5168=5168 -DJENNIC_CHIP_NAME=_JN5168 -DJENNIC_CHIP_FAMILY_NAME=_JN516x -march=ba2 -mcpu=jn51xx -mredzone-size=4 -mbranch-cost=3 -fomit-frame-pointer -Os -fshort-enums -Wall -Wpacked -Wcast-align -fdata-sections -ffunction-sections -flto -DWATCHDOG_ENABLED -DJENNIC_HW_BBC_RXINCCA=1 -DJENNIC_HW_BBC_DMA=1 -DJENNIC_HW_BBC_ISA=0 -DJENNIC_SW_EXTERNAL_FLASH=0 -DJN516X_DMA_UART_BACKWARDS_COMPATIBLE_API=1 -DUART_BACKWARDS_COMPATIBLE_API=1 -DJENNIC_CHIP=JN5168 -DJENNIC_CHIP_JN5168 -DJENNIC_CHIP_FAMILY=JN516x -DJENNIC_CHIP_FAMILY_JN516x -DJENNIC_STACK_ZCL -DJENNIC_MAC_MiniMacShim -Wall -Wunreachable-code -DEMBEDDED -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Platform/Common/Include -DJENNIC_PCB=DEVKIT4 -DJENNIC_PCB_DEVKIT4 -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Platform/DK4/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/Common/Include -DPDM_USER_SUPPLIED_ID -DPDM_NO_RTOS -DPDM_EEPROM -DZPS_APL_OPT_SINGLE_INSTANCE -DOTA_NO_CERTIFICATE -DPLME_SAP -DZBPRO_DEVICE_TYPE_ZCR -DBDB_SUPPORT_NWK_STEERING -DBDB_SUPPORT_NWK_FORMATION -DBDB_SUPPORT_OOBC -I/c/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge -I/c/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/.. -I/c/NXP/bstudio_nxp/workspace/ZiGate/Source/Common -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZigbeeCommon/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/Random/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/Aes/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/HardwareAPI/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/BDB/Source/OutOfBand -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/AppApi/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/MAC/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/MiniMac/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/MMAC/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/HardwareAPI/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/Aes/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/DBG/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/Mac/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/MicroSpecific/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/MiniMAC/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/MMAC/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/TimerServer/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/Random/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZigbeeCommon/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZPSMAC_Mini_SOC/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/PWRM/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZPSTSV/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/AES_SW/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/PDUM/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZPSAPL/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/Random/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/PDM_EEPROM_NO_RTOS/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZPSNWK/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/PDM/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/DBG/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZPSMAC/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZPSNWK/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZigbeeCommon/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCIF/Source -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCIF/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/General/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/General/Source -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/MeasurementAndSensing/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/Lighting/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/HVAC/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/Closures/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/SecurityAndSafety/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/SmartEnergy/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/OTA/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/Commissioning/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/ApplianceManagement/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Clusters/GreenPower/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Devices/ZHA/Generic/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Devices/ZLO/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Devices/ZHA/HVAC/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Devices/ZHA/Closures/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Devices/ZHA/SecurityAndSafety/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Devices/ZHA/SmartEnergy/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/ZCL/Devices/ZHA/ApplianceManagement/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/BDB/Include -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/BDB/Source/Common -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/BDB/Source/NwkSteering -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/BDB/Source/NwkFormation -I/c/NXP/bstudio_nxp/sdk/JN-SW-4170/Components/BDB/Source/OutOfBand /c/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c -MD -MF app_Znc_cmds.d -MP
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c: In function 'APP_vProcessIncomingSerialCommands':
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:412:28: error: 'tsZLO_ControlBridgeDevice' has no member named 'sTimeServerCluster'
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:418:40: error: 'tsZLO_ControlBridgeDevice' has no member named 'sTimeServerCluster'
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2015:27: error: 'E_CLD_WINDOWCOVERING_CMD_UP_OPEN' undeclared (first use in this function)
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2015:27: note: each undeclared identifier is reported only once for each function it appears in
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2016:27: error: 'E_CLD_WINDOWCOVERING_CMD_DOWN_CLOSE' undeclared (first use in this function)
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2017:27: error: 'E_CLD_WINDOWCOVERING_CMD_STOP' undeclared (first use in this function)
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2019:25: warning: implicit declaration of function 'eCLD_WindowCoveringCommandOpenCloseStopRequestSend' [-Wimplicit-function-declaration]
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2027:27: error: 'E_CLD_WINDOWCOVERING_CMD_GO_TO_LIFT_VALUE' undeclared (first use in this function)
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2028:27: error: 'E_CLD_WINDOWCOVERING_CMD_GO_TO_TILT_VALUE' undeclared (first use in this function)
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2030:25: error: unknown type name 'tsCLD_WindowCovering_GoToValueRequestPayload'
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2031:49: error: request for member 'u16Value' in something not a structure or union
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2032:25: warning: implicit declaration of function 'eCLD_WindowCoveringCommandGotoValueRequestSend' [-Wimplicit-function-declaration]
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2041:27: error: 'E_CLD_WINDOWCOVERING_CMD_GO_TO_LIFT_PERCENTAGE' undeclared (first use in this function)
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2042:27: error: 'E_CLD_WINDOWCOVERING_CMD_GO_TO_TILT_PERCENTAGE' undeclared (first use in this function)
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2044:25: error: unknown type name 'tsCLD_WindowCovering_GoToPercentageRequestPayload'
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2045:54: error: request for member 'u8Percentage' in something not a structure or union
c:/NXP/bstudio_nxp/workspace/ZiGate/Source/ZigbeeNodeControlBridge/app_Znc_cmds.c:2046:25: warning: implicit declaration of function 'eCLD_WindowCoveringCommandGotoPercentageRequestSend' [-Wimplicit-function-declaration]
make: *** [app_Znc_cmds.o] Error 1

La première erreur, c'est parce qu'il ne trouve pas cette constante : E_CLD_WINDOWCOVERING_CMD_DOWN_CLOSE

C'est bon, j'avais téléchargé le JN-SW-4170 du site NXP et non celui du dossier ZiGate. Je crois que j'ai un autre souci :

Error loading Python DLL 'C:/Users/philippe/AppData/Local/Temp\_MEI83642\python36.dll'.
LoadLibrary: Paramètre incorrect.

Est-ce que vous pourriez juste me confirmer que le fichier compilé est bien ZigbeeNodeControlBridge_JN5169_COORDINATOR_115200.bin ?

Translate »