2024-12-08 11:47 PM
Dears.
I am following the guide for the matter part of the stm32 wiki.
I am requesting help because an error occurred in the 1.2.2.4 Matter code generation chapter.
https://wiki.st.com/stm32mcu/wiki/Connectivity:Matter_develop_and_prototype#Matter_code_generation
I was able to successfully convert the .zap file to create a .matter file, but I failed to create the two files that contain the callback definitions.
The error message is as follows, and I ran it on Windows.
I look forward to your kind help.
Solved! Go to Solution.
2024-12-09 04:15 PM
EPASZ.1, Thanks for your quick reply.
I used the latest version of ZAP (v2024.04.25).
I modified codegen.py as below and successfully converted the file.
: ./scripts/codegen.py - 125line - add : encoding='utf-8'
I don't know if this is the right thing to do, but since the file conversion was what I wanted, I'm going to try the next step.
Thanks.
2024-12-09 06:08 AM
Hello,
which ZAP version are you using? Release v2024.04.25 · project-chip/zap · GitHub has been tested and should work. The note in Wiki says to use the latest, but this is a bit inaccurate as there might be some incompatibility in the generated files between versions. We have already suggested an update to the Wiki.
Try using the above version (and start from the beginning of the process).
Best regards,
Erik
2024-12-09 04:15 PM
EPASZ.1, Thanks for your quick reply.
I used the latest version of ZAP (v2024.04.25).
I modified codegen.py as below and successfully converted the file.
: ./scripts/codegen.py - 125line - add : encoding='utf-8'
I don't know if this is the right thing to do, but since the file conversion was what I wanted, I'm going to try the next step.
Thanks.