cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Wiki : Matter develop and prototype - 1.2.2.4 Matter code generation error

AlexShin
Associate

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

AlexShin_0-1733730103808.png

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.

AlexShin_1-1733730287606.png

 

2 REPLIES 2
EPASZ.1
ST Employee

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

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.

AlexShin_0-1733789467068.png

: ./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.