Other Parts Discussed in Thread: Z-STACK, , CC2531
Tool/software: WEBENCH® Design Tools
Hi I have some problems trying to get CC2531-EMK USB dongle to function as ZLL remote.
Currently only Z-Stack_Lighting_1_0_2.exe is available for download, if someone could be nice to upload Z-Stack_Lighting_1_0_1.exe I would be very greatful, it will solve all my patching problems right away.
Since version 1.0.2 is slightly different from 1.0.1.
I found:
"The CC2531EMK USB dongle was included in older ZLL kits before the ZLLRC was available."
processors.wiki.ti.com/.../ZStack-Lighting_Kit_CC2531EMK
and the patch to make Z-Stack Lightning 1.0.1 compatible with CC2531-EMK:
processors.wiki.ti.com/.../File:Z-Stack-Lighting-add-on-lighting-kit.zip
Of course ZStack-Lighting-1.0.1-Kit-v4.patch fails patching Z-Stack_Lighting_1_0_2 at multiple places, I have tried to fix that, because the file structure of SampleApp is different.
Most of the files I have successfully patched, the one I'm facing big issues is:
C:\Texas Instruments\Z-Stack Lighting 1.0.2\Projects\zstack\ZLL\SampleApp\CC253x\SampleRemote.ewp
I had to manually apply changes from the patch to adjust them to that file.
After patching the SampleRemote.ewp I can see in IAR Embedded Workbench:
"SampleRemote - USB - EndDevice - SBL".
I have chosen the "CC2531F256" Target device. (Btw I have changed the number of virtual registers to 8 and needed the patch to chipcon_cstartup.s51).
In "C/C++ Compiler" -> "Preprocessor" I have added include directiories:
$PROJ_DIR$\..\..\..\..\..\Components\hal\target\CC2530USB
$PROJ_DIR$\..\..\..\..\..\Components\hal\target\CC2530USB\usb
$PROJ_DIR$\..\..\..\..\..\Components\hal\target\CC2530USB\usb\class_cdc
$PROJ_DIR$\..\..\..\..\..\Components\hal\target\CC2530USB\usb\library
$PROJ_DIR$\..\..\..\..\..\Components\hal\target\CC2530USB\usb\library\cc2531
But I keep getting:
Changed settings forces a full rebuild...
Building configuration: SampleRemote - USB - EndDevice - SBL
Updating build tree...
Build error: Multiple tools write to the same file.
File: C:\Texas Instruments\Z-Stack Lighting 1.0.2\Projects\zstack\ZLL\SampleApp\CC253x\EndDeviceUSB-SBL\Obj\hal_adc.r51
Tool 1: C/C++ Compiler, when processing C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\hal\target\CC2530ARC\hal_adc.c
Tool 2: C/C++ Compiler, when processing C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\hal\target\CC2530EB\hal_adc.c
0 file(s) deleted.
How do i choose just one target from HAL->Target directory ? I think this is my problem.
Here :
This guy had a problem with changing targets but never added how he did it, despite Igor Sherer didnt go into details how do you change the HAL target.
I have looked into all of the settings, all of the submenus, all of the .h .c files and I believe it's a decision that IAR WB makes to choose a HAL target according to some setting in the project file (.ewp/.eww/.ewd?) + .h file definitions.
Please guide me how to change the HAL Target, also if you have Z-Stack_Lighting_1_0_1.exe I beg you share it with me.
I'm very satisfied from Texas Instruments but I hate it that they don't keep older versions of tools/software available, this is insane.
The end purpose of my project is inspired by e2e.ti.com/.../252635 giving me hope that my CC2531-EMK will help me factory reset thru ZLL my Philips Hue bulbs.
Thank you in advance.