-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modified ZAP file build error #24591
Comments
The output above looks like you generated the lighting-app bits from old XML and are now trying to compile them against data model headers documented from new XML... At some point the command in the XML got renamed from AnnounceOtaProvider to AnnounceOTAProvider |
Thanks @bzbarsky-apple . I was generating zap files on host machine and transfering it to raspi for compilation. Genereating them on raspi has fixed the issue. |
@mertmzk Sounds like the host machine has an old SDK version... |
@bzbarsky-apple thanks, I am getting other error now. I have got 2 endpoint in device model and compiled the libraries based on zap generated files, but when try to toggle it using chip-tool getting this error:
toggling endpoint 1 is working fine. What is the step that I am missing? |
@mertmzk What does the generated And just to check a common edge case: you're sure the |
@bzbarsky-apple Attaching the file. The endpoint is defined there as well. yes I am pretty sure it is accessing the right server, also monitored the command is received on server side. |
@mertmzk That all looks correct. The only thing I see remaining is that the header that is attached is not the header that is actually being included during the build.... |
@bzbarsky-apple I am calling them from python generated libs as follow: Do you think any modification needed on this
|
@mertmzk I have no idea how the Python bits work, or how they were compiled in your case.... @andy31415 or @tehampson might be able to help you with the Python part. |
@mertmzk also to make sure If you use pre-generated directory that may be fine, however without that, the generation step feels wrong (unless it is 1.0, in which case you need to codegen) Could you list branch and commands used? |
This would explain a "header attached is not the one actually included in the build" |
Maybe check your out/build directory if some I do not quite understand however if that should conflict ... if you codegen from the same zap file, one would expect the same result. |
@andy31415 I am following the steps here: https://community.arm.com/arm-community-blogs/b/internet-of-things-blog/posts/build-a-matter-home-automation-service-using-raspberry-pi-arm-virtual-hardware-and-python I checkout to the v1.0.0.2 and only updating the zap file in ligting_app before building the device model. I don't think I also tried to generate the zap files and build it, but only endpoint 1 is functional not endpoint 2. |
@andy31415 @bzbarsky-apple if I replace the existing zap files with script-generated zap files the build is failing with this error:
|
That seems to be using an invalid combination of zap and source code. Likely some type safety error between int and other types. Indeed, v1.0.0.2 build would not use compile time codegen. You would have to use the zap as in the zap repo in third_party submodules. |
If you replace an example app zapfile, I believe running |
@andy31415 Yes this is what I have been doing using below command but when compiling it is giving conversion error. ./scripts/tools/zap/generate.py examples/lighting-app/lighting-common/lighting-app.zap -z src/app/zap-templates/zcl/zcl.json -o zzz_generated/lighting-app/zap-generated/ Would you be able to try it on your side and suggest what might be wrong, attaching the zap file: |
Which ZAP version are you using? Tip ZAP does not work with 1.0.0.2; the format of the data table in endpoint_config.h has changed since then. You should use whatever ZAP version was current at that point.... |
@bzbarsky-apple I am using the latest zap. Which version of the SDK compatible with latest ZAP? |
The relevant change on the SDK side was The relevant change on the ZAP side was So if your SDK is anything that contains More generally, for any given SDK commit, I would determine ZAP as follows:
|
@bzbarsky-apple thanks. I have checkout the lates on both. The SDK has got
Can you please suggest me a tested version, ideally option 1 where zap is submodule. |
@bzbarsky-apple nevermind that error was related to enabling unnecessary cluster. Disabling it fixed the issue. |
Hi,
I wanted to add different endpoints to the lighting example and here the steps I followed and it is giving error when try to build it:
1- Open a existing lighting zap template using Electron and added two additional datapoints
2- Generated zap files using the script ./scripts/tools/zap/generate.py and added them into the path for build
3-
cd connectedhomeip
./scripts/checkout_submodules.py --shallow --platform linux
./scripts/build_python_device.sh --chip_detail_logging true
When I try to build the libraries for python getting this error: Does anyone have any suggestion how to fix this?
The text was updated successfully, but these errors were encountered: