tinycrypt error during matter build for k32w0x1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

tinycrypt error during matter build for k32w0x1

1,058 Views
JK_Cha
Contributor IV

Hi Champ of K32W0-Matter

I found an error regarding tinycrypt option when building Matter SDK.

 

======================================

$ gn gen out/debug --args="k32w0_sdk_root=\"${NXP_K32W0_SDK_ROOT}\" chip_with_OM15082=1
chip_with_ot_cli=0 is_debug=false chip_crypto=\"tinycrypt\" chip_with_se05x=0
chip_pw_tokenizer_logging=true
mbedtls_repo=\"//third_party/connectedhomeip/third_party/nxp/libs/mbedtls\""
device: K32W061
board: k32w061dk6
ntag: 0
increased TX power: 0
FRO32k: 0
low power: 0
ERROR at //third_party/connectedhomeip/src/crypto/BUILD.gn:32:1: Assertion failed.
assert(
^-----
Please select a valid crypto implementation: mbedtls, openssl, boringssl, platform
See //third_party/connectedhomeip/src/crypto/BUILD.gn:33:5:
chip_crypto == "mbedtls" || chip_crypto == "openssl" ||
^------------------------------------------------------
This is where it was set.
See //third_party/connectedhomeip/src/lib/BUILD.gn:23:5: which caused the file to be included.
"${chip_root}/src/crypto",

==============================================

I met this issue even I followed the same setup which was introduced from Matter Guide. 

Could you please let me know how to solve tinycrypt related issue?

Thanks.

Regards, 

Jacky

 

 

 

Labels (1)
Tags (1)
0 Kudos
Reply
4 Replies

1,019 Views
JK_Cha
Contributor IV

 Hi Eduaro

I used v1.0-branch-nxp version of the matter project. 

(git checkout v1.0-branch-nxp )

And Ubunutu 20.04 LTS, K32W0x SDK is 2.6.8 build from SDK builder for Linux version.

I followed the same version mentioned from matter quick start guide.

Thanks.

Regard, 

Jacky

 

0 Kudos
Reply

835 Views
mihai_ignat
NXP Employee
NXP Employee

Hello, @JK_Cha .

I agree with @EduardoZamora 's comment, Matter development is moving at a fast pace and unfortunately the document you used is not up to date, so the best path would be to keep up with the READMEs from the application folder.

To address the specific issue you found, it seems that the v1.0 branch was updated after the QSG document was released and the command needs to be updated to:

gn gen out/debug --args="k32w0_sdk_root=\"${NXP_K32W0_SDK_ROOT}\" chip_with_OM15082=1 chip_with_ot_cli=0 is_debug=false chip_crypto=\"platform\" chip_with_se05x=0 chip_pw_tokenizer_logging=true chip_crypto_flavour=\"tinycrypt\""

Looking into the lighting app readme, it seems that the SDK required for this is version 2.6.9, which can be found on the MCUXpresso SDK builder website.

Please test and provide feedback if this fixes your issue.

BR,

Mihai

0 Kudos
Reply

995 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

I really appreciate this information.

Please, consider using the latest stable Matter release from the matter repository. There you should find the requirements, setup and building steps for the corresponding demo application.

Specific steps for each example should be included in matter/examples/"example"/nxp/k32w/k32w0.

Regards,
Eduardo.

1,026 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @JK_Cha,

Hope you are doing well.

Could you please help us with the Matter release/version you are using?

Also, what version of Ubuntu and K32W0 SDK are you using? This is to confirm that your setup matches with the one that is stated in the Matter repository.

Which Matter example are you trying to build?

Any additional information is appreciated.

Regards,
Eduardo.

0 Kudos
Reply