I'm using the JN516x_EK004 kit. I have installed BeyondStudio with the following SDKs JN-SW-4168 and 4170.
All plugins for related SDKs are installed in accordance to the BeyonStudio installation guide(JN-AN-3098).
I have created a workspace and unzipped the JN-AN-1220 appnote into the workspace as described in section 5.7 in the documentation of that appnote.
Inside that workspace I have the folder
NXP\bstudio_nxp\workspace\\JN-AN-1220-Zigbee-3-0-Sensors-v1002\
I followed the steps described in section 5.7.2.2 of the appnote document to import the appnote into BeyondStudio, but all the sub-folders are loaded into BeyoundStudio but no source code. The folders is showing an Exclamation mark on them.
I have tried importing the zipped appnote but same result.
Any idea why I'm not able to properly load the appnote into BeyondStudio?
I'm using BeyondStudio build 1308
Solved! Go to Solution.
Thanks for the reply. I was able to load the source file with the refresh.
However, I got a compile error when trying to compile either one of the demo apps.
I edited the following 2 Makefile options
JENNIC_CHIP?=5169 and JENNIC_CHIP_FAMILY?=516x
Then tried to build the apps, I got a " no rule to make target" error
Any idea?
Thanks for the reply. I was able to load the source file with the refresh.
However, I got a compile error when trying to compile either one of the demo apps.
I edited the following 2 Makefile options
JENNIC_CHIP?=5169 and JENNIC_CHIP_FAMILY?=516x
Then tried to build the apps, I got a " no rule to make target" error
Any idea?
I think you're missing "JN" in both options
JENNIC_CHIP ?= JN5169
JENNIC_CHIP_FAMILY ?= JN516x
Just to check, is the path still at C:\NXP\bstudio_nxp\workspace\JN-AN-1220-Zigbee-3-0-Sensors-v1002 ?
It's searches by relative path if I'm not mistaken.
I uninstall BeyondStudio and the SDKs and reinstalled everything from scratch by following the JN-AN-3098 User's guide.
I was then able to import the JN-AN-1220 source code into BeyondStudio.
Then when I tried to compile either one of the 3 apps I still got the same "No rule to make target" at the end of the build.
Also, I'm seeing all these "unresolved inclusions" in the editor for SDK (JN-SW-4170) headers, although the SDK is included in the build environment.
Here is the full build log:
11:45:03 **** Incremental Build of configuration LightTemperatureOccupancySensor for project JN-AN-1220-Zigbee-3-0-Sensors ****
make JENNIC_CHIP=JN5169 JENNIC_CHIP_FAMILY=JN516x SENSOR=LightTemperatureOccupancySensor KEEPALIVETIME=255 DR=DR1175 all
JENNIC_MAC is Mini MAC shim
Building trace version ...
rm -f bdb_DeviceCommissioning.o
rm -f bdb_fb_initiator.o
rm -f bdb_fb_common.o
rm -f bdb_ns.o
rm -f portasm.o
rm -f port.o
rm -f appZpsExtendedDebug.o
rm -f appZpsBeaconHandler.o
rm -f appZdpExtraction.o
rm -f ZTimer.o
rm -f ZQueue.o
rm -f bdb_state_machine.o
rm -f bdb_start.o
rm -f bdb_link_keys.o
rm -f bdb_fr.o
rm -f zcl_transmit.o
rm -f zcl_timer.o
rm -f zcl_search.o
rm -f zcl_reportStructure.o
rm -f zcl_reportStringHandling.o
rm -f zcl_reportScheduler.o
rm -f zcl_reportMaths.o
rm -f zcl_reportManager.o
rm -f zcl_readReportingConfigurationResponseHandle.o
rm -f zcl_readReportingConfigurationCommandSend.o
rm -f zcl_readReportingConfigurationCommandHandle.o
rm -f zcl_readAttributesResponseHandle.o
rm -f zcl_readAttributesRequestSend.o
rm -f zcl_readAttributesRequestHandle.o
rm -f zcl_library_options.o
rm -f zcl_heap.o
rm -f zcl_event.o
rm -f zcl_discoverCommandsResponseHandle.o
rm -f zcl_discoverCommandsRequestSend.o
rm -f zcl_discoverCommandsRequestHandle.o
rm -f zcl_discoverAttributesResponseHandle.o
rm -f zcl_discoverAttributesRequestSend.o
rm -f zcl_discoverAttributesRequestHandle.o
rm -f zcl_discoverAttributesExtendedResponseHandle.o
rm -f zcl_discoverAttributesExtendedRequestSend.o
rm -f zcl_discoverAttributesExtendedRequestHandle.o
rm -f zcl_defaultResponse.o
rm -f zcl_configureReportingResponseHandle.o
rm -f zcl_configureReportingCommandSend.o
rm -f zcl_configureReportingCommandHandle.o
rm -f zcl_common.o
rm -f zcl_command.o
rm -f zcl_clusterCommand.o
rm -f zcl_buffer.o
rm -f zcl_attribute.o
rm -f zcl_WriteAttributesResponseHandle.o
rm -f zcl_WriteAttributesRequestSend.o
rm -f zcl_WriteAttributesRequestHandle.o
rm -f zcl_PDUbufferReadWriteString.o
rm -f zcl_PDUbufferReadWrite.o
rm -f zcl_CustomCommandSend.o
rm -f zcl_CustomCommandReceive.o
rm -f zcl.o
rm -f dlist.o
rm -f on_off_sensor.o
rm -f on_off_plug.o
rm -f on_off_light_switch.o
rm -f on_off_light.o
rm -f on_off_ballast.o
rm -f occupancy_sensor.o
rm -f non_colour_scene_controller.o
rm -f non_colour_controller.o
rm -f light_sensor.o
rm -f light_level_sensor.o
rm -f extended_colour_light.o
rm -f dimmer_switch.o
rm -f dimmable_plug.o
rm -f dimmable_light.o
rm -f dimmable_ballast.o
rm -f control_bridge.o
rm -f commission_endpoint.o
rm -f colour_temperature_light.o
rm -f colour_scene_controller.o
rm -f colour_dimmer_switch.o
rm -f colour_dimmable_light.o
rm -f colour_controller.o
rm -f ColourControlConversions.o
rm -f ColourControlCommandHandler.o
rm -f ColourControlClientCommands.o
rm -f ColourControl.o
rm -f BallastConfiguration.o
rm -f TemperatureMeasurement.o
rm -f RelativeHumidityMeasurement.o
rm -f PressureMeasurement.o
rm -f OccupancySensing.o
rm -f IlluminanceMeasurement.o
rm -f IlluminanceLevelSensing.o
rm -f FlowMeasurement.o
rm -f ElectricalMeasurement.o
rm -f simple_sensor.o
rm -f remote_control.o
rm -f on_off_output.o
rm -f mains_power_outlet.o
rm -f base_device.o
rm -f Time.o
rm -f TC.o
rm -f ScenesTableManager.o
rm -f ScenesServerCommands.o
rm -f ScenesCommandHandler.o
rm -f ScenesClusterManagement.o
rm -f ScenesClientCommands.o
rm -f Scenes.o
rm -f PowerProfileServerCommands.o
rm -f PowerProfileCommandHandler.o
rm -f PowerProfileClientCommands.o
rm -f PowerProfile.o
rm -f PowerConfiguration.o
rm -f PollControlServerCommands.o
rm -f PollControlCommandHandler.o
rm -f PollControlClientCommands.o
rm -f PollControl.o
rm -f OnOffCommands.o
rm -f OnOffCommandHandler.o
rm -f OnOff.o
rm -f OOSC.o
rm -f MultistateOutputBasic.o
rm -f MultistateInputBasic.o
rm -f LevelControlCommandHandler.o
rm -f LevelControlClientCommands.o
rm -f LevelControl.o
rm -f IdentifyServerCommands.o
rm -f IdentifyCommandHandler.o
rm -f IdentifyClientCommands.o
rm -f Identify.o
rm -f GroupsTableManager.o
rm -f GroupsServerCommands.o
rm -f GroupsCommandHandler.o
rm -f GroupsClientCommands.o
rm -f Groups.o
rm -f Diagnostics.o
rm -f DeviceTemperatureConfiguration.o
rm -f BinaryOutputBasic.o
rm -f BinaryInputBasic.o
rm -f BasicCommandHandler.o
rm -f BasicClientCommands.o
rm -f Basic.o
rm -f AnalogOutputBasic.o
rm -f AnalogInputBasic.o
rm -f AlarmsTableManager.o
rm -f AlarmsServerCommands.o
rm -f AlarmsCommandHandler.o
rm -f AlarmsClientCommands.o
rm -f Alarms.o
rm -f app_ntag.o
rm -f app_blink_led.o
rm -f app_zcl_tick_handler.o
rm -f app_PIR_OpenCollector_events.o
rm -f app_power_on_counter.o
rm -f app_event_handler.o
rm -f app_nwk_event_handler.o
rm -f app_sleep_handler.o
rm -f app_sensor_state_machine.o
rm -f app_sensor_buttons.o
rm -f app_zcl_sensor_task.o
rm -f app_zlo_sensor_node.o
rm -f App_LightTemperatureOccupancySensor.o
rm -f app_start_sensor.o
rm -f app_main.o
rm -f app_reporting.o
rm -f app_pdm.o
rm -f zps_gen.o
rm -f pdum_apdu.o
rm -f pdum_gen.o
rm -f port_JN516x.o
rm -f portasm_JN516x.o
rm -f irq_JN516x.o
Assembling ../../LightTemperatureOccupancySensor/Source/irq_JN516x.S ...
/c/NXP/bstudio_nxp/sdk/Tools/ba-elf-ba2-r36379/bin/ba-elf-gcc -c -o ../../LightTemperatureOccupancySensor/Build/irq_JN516x.o -DSLEEP_ENABLE -DDR1175 -DLightTemperatureOccupancySensor -DBUTTON_MAP_DR1175 -DEZ_MODE_INITIATOR -DEZ_ENABLE_GROUP -DAPP_NTAG -DDBG_ENABLE -DDEBUG_SENSOR_NODE -DDEBUG_APP_NTAG -DLightTemperatureOccupancySensor -DPDM_USER_SUPPLIED_ID -DPIR_TYPE_OPEN_COLLECTOR -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_ZED -DBDB_SUPPORT_NWK_STEERING -DBDB_SUPPORT_FIND_AND_BIND_INITIATOR -DBDB_SUPPORT_OOBC -I../../LightTemperatureOccupancySensor/Source -I../../LightTemperatureOccupancySensor/Source/.. -I../../Common/Source -I../../LightTemperatureOccupancySensor/Source/PIR -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/HardwareApi/Include -I../../NTAG/Include -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/ZPSMAC_Mini/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/ZPSNWK_ZED/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/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/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/FindAndBind -I../../../../sdk/JN-SW-4170/Components/BDB/Source/OutOfBand ../../LightTemperatureOccupancySensor/Source/irq_JN516x.S -MD -MF ../../LightTemperatureOccupancySensor/Build/irq_JN516x.d -MP
make: *** No rule to make target `../../LightTemperatureOccupancySensor/Build/portasm_JN516x.o', needed by `../../LightTemperatureOccupancySensor/Build/LightTemperatureOccupancySensor_JN5169_DR1175.elf'. Stop.
11:47:25 Build Finished (took 2m:21s.833ms)
Just to check, is your SDK installer "JN-SW-4170 Zigbee 3.0 v1518.exe" ?
No I was using, "JN-SW-4170 Zigbee 3.0 v1396"
I upgraded the SDK to "JN-SW-4170 Zigbee 3.0 v1518" as per your reply and the issue is resolved.
Thank you for your help.
Can you add a picture showing the exclamation mark ? Everything you described sounds fine.
Can you try to right click the Project Explorer > Blue Folder icon (Project / JN-AN-1220...) and Refresh ?