Not able to generate Hex file in PSoC Creator

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
niharika
Employee
Employee
10 replies posted 10 sign-ins 5 replies posted

I used PSoC Creator4.4 to build a project named Chip Whisperer, and a build error occurred. not able to resolve it. attached is the image of the error am i am getting and project file.

image.pngimage (1).pngHow to solve this problem? Thank you!

0 Likes
1 Solution
AlenAn14
Moderator
Moderator
Moderator
500 replies posted 100 solutions authored 250 replies posted

Hi @niharika ,

The structure 'cryptoConfig' of type 'cy_stc_crypto_config_t' has not been defined anywhere in the program.
It is used in the function call

Cy_Crypto_Init(&cryptoConfig, &cryptoScratch);

in the file 'main_cm0p.c' as shown below.

AlenAn14_0-1639728705394.png

Please define/declare this structure in the main file shown in above image to clear this error.

Regards
Alen

View solution in original post

4 Replies
AlenAn14
Moderator
Moderator
Moderator
500 replies posted 100 solutions authored 250 replies posted

Hi @niharika ,

The structure 'cryptoConfig' of type 'cy_stc_crypto_config_t' has not been defined anywhere in the program.
It is used in the function call

Cy_Crypto_Init(&cryptoConfig, &cryptoScratch);

in the file 'main_cm0p.c' as shown below.

AlenAn14_0-1639728705394.png

Please define/declare this structure in the main file shown in above image to clear this error.

Regards
Alen

niharika
Employee
Employee
10 replies posted 10 sign-ins 5 replies posted

Thank you so much! it worked

 

0 Likes
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello @niharika 

You can also refer to the code snippet present in the PDL API Reference Guide for the Cy_Crypto_Init() function that mentions how to demonstrate how to declare the structure.

Best Regards
Ekta

niharika
Employee
Employee
10 replies posted 10 sign-ins 5 replies posted

Thank you so much!! it worked

 

0 Likes