BeyondStudio how to build from JN-AN-1171

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BeyondStudio how to build from JN-AN-1171

Jump to solution
683 Views
Larz
Contributor III

Hello,

I have a JN5169 to develop a lighting project.

On my PC I installed BeyondStudio and added the JN-SW-4170 package.

In the JN-AN-1171-ZigBee-LightLink-Demo I made some changes to the source file:  DriverBulb_DR1175.c. Hope to connect with de Hue app.

 

My question is how can I build a new binary for "Light_DimmableLight".

Is there a tutorial or manual somewhere?

Something that shows which files I need and how I can build everything together?

 

Greetz,

Larz

0 Kudos
1 Solution
483 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Would you consider using the default Certification Key that is supplied in the application note so steps from section 8.1 would not be required?

Regards,
Eduardo.

View solution in original post

0 Kudos
10 Replies
510 Views
Larz
Contributor III

@EduardoZamora 

Thank you for your reply. 

I've managed to install the ZBPro Configuration Editor. I followed THESE instructions of your post from last year.

 

But now I have another error: Error 1

Compiling ../../DimmableLight/Source/App_DimmableLight.c ...
/c/NXP/bstudio_nxp/sdk/Tools/ba-elf-ba2-r36379/bin/ba-elf-gcc -c -o ../../DimmableLight/Build/App_DimmableLight.o -DSINGLE_CHANNEL=0 -DBUILD_OTA -DCLD_OTA_MANF_ID_VALUE=0x1037 -DOTA_INTERNAL_STORAGE -DBUTTON_MAP_DR1175 -DMK_USE_POSITIVE_PWM=TRUE -DRTOS -DDR1175 -DAPP_TOUCHLINK_ENABLED -DDBG_ENABLE -DDimmableLight -DGP_COMBO_BASIC_DEVICE -DGP_CERITIFICATION_TEST -DCLD_GREENPOWER -DPDM_USER_SUPPLIED_ID -DDEBUG_EXCEPTIONS -DBUTTON_MAP_DR1175 -DDR1175 -DEMBEDDED -DUSER_VSR_HANDLER -DDIMMABLELIGHT -DMONO_WITH_LEVEL -DJN516x=5160 -DJN5169=5169 -DJENNIC_CHIP_NAME=_JN5169 -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 -DRXPOWERADJUST_SUPPORT -DJENNIC_CHIP=JN5169 -DJENNIC_CHIP_JN5169 -DJENNIC_CHIP_FAMILY=JN516x -DJENNIC_CHIP_FAMILY_JN516x -DJENNIC_STACK_ZCL -DJENNIC_MAC_MiniMacShim -Wall -Wunreachable-code -DEMBEDDED -I../../../../sdk/JN-SW-4170/Platform/Common/Include -DJENNIC_PCB=DEVKIT4 -DJENNIC_PCB_DEVKIT4 -I../../../../sdk/JN-SW-4170/Platform/DK4/Include -I../../../../sdk/JN-SW-4170/Components/Common/Include -DPDM_USER_SUPPLIED_ID -DPDM_NO_RTOS -DPDM_EEPROM -DDBG_ENABLE -DZPS_APL_OPT_SINGLE_INSTANCE -DOTA_NO_CERTIFICATE -DPLME_SAP -DZBPRO_DEVICE_TYPE_ZCR -DBDB_SUPPORT_NWK_STEERING -DBDB_SUPPORT_TOUCHLINK -DBDB_SUPPORT_FIND_AND_BIND_TARGET -I../../Common_Light/Source -I../../Common_Light/Source/.. -I../../DimmableLight/Source -I../../../../sdk/JN-SW-4170/Components/Common/Include -I../../../../sdk/JN-SW-4170/Components/ZigbeeCommon/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Include -I../../../../sdk/JN-SW-4170/Components/ZCIF/Include -I../../../../sdk/JN-SW-4170/Components/Xcv/Include/ -I../../../../sdk/JN-SW-4170/Components/Recal/Include/ -I../../../../sdk/JN-SW-4170/Components/MicroSpecific/Include -I../../../../sdk/JN-SW-4170/Components/HardwareAPI/Include -I../../Common_Light/Source/DriverBulb -I../../../../sdk/JN-SW-4170/Components/AppApi/Include -I../../../../sdk/JN-SW-4170/Components/MAC/Include -I../../../../sdk/JN-SW-4170/Components/MiniMac/Include -I../../../../sdk/JN-SW-4170/Components/MMAC/Include -I../../../../sdk/JN-SW-4170/Components/HardwareAPI/Include -I../../../../sdk/JN-SW-4170/Components/Aes/Include -I../../../../sdk/JN-SW-4170/Components/DBG/Include -I../../../../sdk/JN-SW-4170/Components/Mac/Include -I../../../../sdk/JN-SW-4170/Components/MicroSpecific/Include -I../../../../sdk/JN-SW-4170/Components/MiniMAC/Include -I../../../../sdk/JN-SW-4170/Components/MMAC/Include -I../../../../sdk/JN-SW-4170/Components/TimerServer/Include -I../../../../sdk/JN-SW-4170/Components/Random/Include -I../../../../sdk/JN-SW-4170/Components/ZigbeeCommon/Include -I../../../../sdk/JN-SW-4170/Components/JPT/Include -I../../../../sdk/JN-SW-4170/Components/ZPSMAC_Mini_SOC/Include -I../../../../sdk/JN-SW-4170/Components/PWRM/Include -I../../../../sdk/JN-SW-4170/Components/ZPSTSV/Include -I../../../../sdk/JN-SW-4170/Components/AES_SW/Include -I../../../../sdk/JN-SW-4170/Components/PDUM/Include -I../../../../sdk/JN-SW-4170/Components/ZPSAPL/Include -I../../../../sdk/JN-SW-4170/Components/Random/Include -I../../../../sdk/JN-SW-4170/Components/PDM_EEPROM_NO_RTOS/Include -I../../../../sdk/JN-SW-4170/Components/DBG/Include -I../../../../sdk/JN-SW-4170/Components/ZPSGP/Include -I../../../../sdk/JN-SW-4170/Components/ZPSIPAN/Include -I../../../../sdk/JN-SW-4170/Components/ZPSNWK/Include -I../../../../sdk/JN-SW-4170/Components/PDM/Include -I../../../../sdk/JN-SW-4170/Components/ZPSMAC/Include -I../../../../sdk/JN-SW-4170/Components/ZPSNWK/Include -I../../../../sdk/JN-SW-4170/Components/ZigbeeCommon/Include -I../../../../sdk/JN-SW-4170/Components/ZCIF/Source -I../../../../sdk/JN-SW-4170/Components/ZCIF/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/General/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/General/Source -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/MeasurementAndSensing/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/Lighting/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/HVAC/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/Closures/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/SecurityAndSafety/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/SmartEnergy/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/OTA/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/Commissioning/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/ApplianceManagement/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/GreenPower/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Devices/ZHA/Generic/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Devices/ZLO/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Devices/ZGP/Include -I../../../../sdk/JN-SW-4170/Components/BDB/Include -I../../../../sdk/JN-SW-4170/Components/BDB/Source/Common -I../../../../sdk/JN-SW-4170/Components/BDB/Source/NwkSteering -I../../../../sdk/JN-SW-4170/Components/BDB/Source/TouchLink -I../../../../sdk/JN-SW-4170/Components/BDB/Source/FindAndBind ../../DimmableLight/Source/App_DimmableLight.c -MD -MF ../../DimmableLight/Build/App_DimmableLight.d -MP
../../DimmableLight/Source/App_DimmableLight.c:100:33: error: invalid suffix "F" on integer constant
../../DimmableLight/Source/App_DimmableLight.c:100:36: error: expected '}' before numeric constant
../../DimmableLight/Source/App_DimmableLight.c:100:66: error: invalid suffix "B" on integer constant
../../DimmableLight/Source/App_DimmableLight.c:100:72: error: invalid suffix "F" on integer constant
make: *** [../../DimmableLight/Build/App_DimmableLight.o] Error 1

And I saw a warning:

Compiling ../../Common_Light/Source/app_zcl_light_task.c ...
/c/NXP/bstudio_nxp/sdk/Tools/ba-elf-ba2-r36379/bin/ba-elf-gcc -c -o ../../DimmableLight/Build/app_zcl_light_task.o -DSINGLE_CHANNEL=0 -DBUILD_OTA -DCLD_OTA_MANF_ID_VALUE=0x1037 -DOTA_INTERNAL_STORAGE -DBUTTON_MAP_DR1175 -DMK_USE_POSITIVE_PWM=TRUE -DRTOS -DDR1175 -DAPP_TOUCHLINK_ENABLED -DDBG_ENABLE -DDimmableLight -DGP_COMBO_BASIC_DEVICE -DGP_CERITIFICATION_TEST -DCLD_GREENPOWER -DPDM_USER_SUPPLIED_ID -DDEBUG_EXCEPTIONS -DBUTTON_MAP_DR1175 -DDR1175 -DEMBEDDED -DUSER_VSR_HANDLER -DDIMMABLELIGHT -DMONO_WITH_LEVEL -DJN516x=5160 -DJN5169=5169 -DJENNIC_CHIP_NAME=_JN5169 -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 -DRXPOWERADJUST_SUPPORT -DJENNIC_CHIP=JN5169 -DJENNIC_CHIP_JN5169 -DJENNIC_CHIP_FAMILY=JN516x -DJENNIC_CHIP_FAMILY_JN516x -DJENNIC_STACK_ZCL -DJENNIC_MAC_MiniMacShim -Wall -Wunreachable-code -DEMBEDDED -I../../../../sdk/JN-SW-4170/Platform/Common/Include -DJENNIC_PCB=DEVKIT4 -DJENNIC_PCB_DEVKIT4 -I../../../../sdk/JN-SW-4170/Platform/DK4/Include -I../../../../sdk/JN-SW-4170/Components/Common/Include -DPDM_USER_SUPPLIED_ID -DPDM_NO_RTOS -DPDM_EEPROM -DDBG_ENABLE -DZPS_APL_OPT_SINGLE_INSTANCE -DOTA_NO_CERTIFICATE -DPLME_SAP -DZBPRO_DEVICE_TYPE_ZCR -DBDB_SUPPORT_NWK_STEERING -DBDB_SUPPORT_TOUCHLINK -DBDB_SUPPORT_FIND_AND_BIND_TARGET -I../../Common_Light/Source -I../../Common_Light/Source/.. -I../../DimmableLight/Source -I../../../../sdk/JN-SW-4170/Components/Common/Include -I../../../../sdk/JN-SW-4170/Components/ZigbeeCommon/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Include -I../../../../sdk/JN-SW-4170/Components/ZCIF/Include -I../../../../sdk/JN-SW-4170/Components/Xcv/Include/ -I../../../../sdk/JN-SW-4170/Components/Recal/Include/ -I../../../../sdk/JN-SW-4170/Components/MicroSpecific/Include -I../../../../sdk/JN-SW-4170/Components/HardwareAPI/Include -I../../Common_Light/Source/DriverBulb -I../../../../sdk/JN-SW-4170/Components/AppApi/Include -I../../../../sdk/JN-SW-4170/Components/MAC/Include -I../../../../sdk/JN-SW-4170/Components/MiniMac/Include -I../../../../sdk/JN-SW-4170/Components/MMAC/Include -I../../../../sdk/JN-SW-4170/Components/HardwareAPI/Include -I../../../../sdk/JN-SW-4170/Components/Aes/Include -I../../../../sdk/JN-SW-4170/Components/DBG/Include -I../../../../sdk/JN-SW-4170/Components/Mac/Include -I../../../../sdk/JN-SW-4170/Components/MicroSpecific/Include -I../../../../sdk/JN-SW-4170/Components/MiniMAC/Include -I../../../../sdk/JN-SW-4170/Components/MMAC/Include -I../../../../sdk/JN-SW-4170/Components/TimerServer/Include -I../../../../sdk/JN-SW-4170/Components/Random/Include -I../../../../sdk/JN-SW-4170/Components/ZigbeeCommon/Include -I../../../../sdk/JN-SW-4170/Components/JPT/Include -I../../../../sdk/JN-SW-4170/Components/ZPSMAC_Mini_SOC/Include -I../../../../sdk/JN-SW-4170/Components/PWRM/Include -I../../../../sdk/JN-SW-4170/Components/ZPSTSV/Include -I../../../../sdk/JN-SW-4170/Components/AES_SW/Include -I../../../../sdk/JN-SW-4170/Components/PDUM/Include -I../../../../sdk/JN-SW-4170/Components/ZPSAPL/Include -I../../../../sdk/JN-SW-4170/Components/Random/Include -I../../../../sdk/JN-SW-4170/Components/PDM_EEPROM_NO_RTOS/Include -I../../../../sdk/JN-SW-4170/Components/DBG/Include -I../../../../sdk/JN-SW-4170/Components/ZPSGP/Include -I../../../../sdk/JN-SW-4170/Components/ZPSIPAN/Include -I../../../../sdk/JN-SW-4170/Components/ZPSNWK/Include -I../../../../sdk/JN-SW-4170/Components/PDM/Include -I../../../../sdk/JN-SW-4170/Components/ZPSMAC/Include -I../../../../sdk/JN-SW-4170/Components/ZPSNWK/Include -I../../../../sdk/JN-SW-4170/Components/ZigbeeCommon/Include -I../../../../sdk/JN-SW-4170/Components/ZCIF/Source -I../../../../sdk/JN-SW-4170/Components/ZCIF/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/General/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/General/Source -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/MeasurementAndSensing/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/Lighting/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/HVAC/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/Closures/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/SecurityAndSafety/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/SmartEnergy/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/OTA/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/Commissioning/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/ApplianceManagement/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Clusters/GreenPower/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Devices/ZHA/Generic/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Devices/ZLO/Include -I../../../../sdk/JN-SW-4170/Components/ZCL/Devices/ZGP/Include -I../../../../sdk/JN-SW-4170/Components/BDB/Include -I../../../../sdk/JN-SW-4170/Components/BDB/Source/Common -I../../../../sdk/JN-SW-4170/Components/BDB/Source/NwkSteering -I../../../../sdk/JN-SW-4170/Components/BDB/Source/TouchLink -I../../../../sdk/JN-SW-4170/Components/BDB/Source/FindAndBind ../../Common_Light/Source/app_zcl_light_task.c -MD -MF ../../DimmableLight/Build/app_zcl_light_task.d -MP
../../Common_Light/Source/app_zcl_light_task.c: In function 'APP_ZCL_cbEndpointCallback':
../../Common_Light/Source/app_zcl_light_task.c:668:17: warning: implicit declaration of function 'vRestoreDefaultRecord' [-Wimplicit-function-declaration]

 

What can I do about this?

0 Kudos
627 Views
Larz
Contributor III

@EduardoZamora Thank you for your reply. I've ordered the JN5189 and will develop another project with it.

Now I followed the instructions according JN-AN-1218-ZigBee-3-0-Light-Bulbs. I use JN-SW-4170 Build 1840. 

But when I try to build I get the error as shown in the build log (attached).

 

From Line 612 to 620 there are some unused variables.

And the final error 1 is on linking and the end of the log.

 

What causes the error and how to solve it?

 

0 Kudos
551 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Could you please confirm that you have followed the BeyondStudio for NXP Installation and User Guide? This User Guide explains how to create/import a project, and how to develop and debug your application.

Also, some helpful resources can be found in JN516x/7x Zigbee 3.0 Software, Documentation and Support Resources.

Regards,
Eduardo.

0 Kudos
523 Views
Larz
Contributor III

@EduardoZamora 

The problem was that the Eclipse wesbite could not be found. So I had to manualy download and install them according to THESE instructions of your post from last year. Still the "Jennic Rtos Configuration Editor version 1.2.3" cannot be installed. Is that a problem?

Larz_0-1710330515124.png

 

And I have another issue. When I import JN-AN-1218-Zigbee-3-0-Light-Bulb and build the Dimmable Light WITHOUT any adjustments, it runs fine and build a new bin.

Exept when I make the change in the Master key, descripted in JN-AN-1218-Zigbee-3-0-Light-Bulb.pdf Section 8.1. (uncomment #define TL_SUPPORTED_KEYS ( TL_MASTER_KEY_MASK ) in zcl.options.h, uncomment #define BDB_APPLICATION_DEFINED_TL_MASTER_KEY in bdb.options.h, and change the master key in App.Dimmablelight.d

Then I get the issues as mention in the attachment Build Log.txt. Lots of warnings and finaly the error 1.

Does it takes more adjustments in the files than mentioned in JN-AN-1218-Zigbee-3-0-Light-Bulb.pdf??

 

 

0 Kudos
495 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Eclipse cloud has changed the structure of multiple dependencies packages in their repository, making older plugin versions no longer available for Beyond Studio IDE.

Could you please clarify the reason why your application would require this key configuration?

Regards,
Eduardo.

0 Kudos
491 Views
Larz
Contributor III

@EduardoZamora Thank you for your reply.

I want to create A light in my garden wich I can controle with the Philips hue app.

 

Best regards,

Larz

0 Kudos
484 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Would you consider using the default Certification Key that is supplied in the application note so steps from section 8.1 would not be required?

Regards,
Eduardo.

0 Kudos
476 Views
Larz
Contributor III

Goodday @EduardoZamora 

Thank you for your reply,

 

Will the default Certification Key get the JN5169 in the Philips Hue network?

Because I have the default binary (DimmableLight_GpCombo_JN5179_DR1175) installed, but the Philips Hue app does not "find" the JN5169.

 

Best regards,

Larz

0 Kudos
655 Views
Larz
Contributor III

When I was looking for answers on the forum, I saw many people use the JN-AN-1218 zigbee Light Bulb package.

But I have the same Question:

How to adjust the files for Philips Hue and build it to a bin?

0 Kudos
645 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

hello @Larz,

Hope you are doing well.

Please, consider that JN5189/88T is preferred for any new Zigbee®, Thread design.

For information about the source files and code, please refer to JN-AN-1218 Zigbee 3 Light Bulb > Doc folder > JN-AN-1218-ZigBee-3-0-Light-Bulbs, Section 8 Developing with the Application Note.

EduardoZamora_0-1709934747748.png

And if you are adding custom functionality to the applications for your own use, you can refer to Section 8.8 Rebuilding the Applications for more information on how to rebuild the supplied applications.

Regards,
Eduardo.

0 Kudos