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

ModusToolbox™ General Forum Discussions

MaMi_1205306
Level 7
Level 7
500 replies posted 50 solutions authored 25 likes received

Dear Sirs and Madams,

 

We installed ModusToolbox 3.0(MTB 3.0) and created a PSoC4 Empty project, but the Cy_Sislib_Delay API is Undefined and get a build error.

 

An error occurs even with the following simple procedure:

(1) Install ModusToolbox 3.0

(2) Select New Application in Quick Panel

(3) Select CY8CKIT-145-40XX in PSoC4 BSPs

(4) Select Empty PSoC4 App of Getting Started, don't change name, then create.

(5) Write "Cy_Syslib_delay(500);" in main.c

(6) Build Application in Quick Panel

(7) A build error occurs as below:

MaMi_1205306_0-1674004386039.png

We cannot avoid this "undefined reference to `Cy_Syslib_Delay'" problem.

What could be the problem?

 

Regards,

0 Likes
1 Solution
yangyong
Level 4
Level 4
100 sign-ins 5 likes given 5 solutions authored

You wrote the API function name incorrectly,It should be Cy_SysLib_Delay。

View solution in original post

2 Replies
yangyong
Level 4
Level 4
100 sign-ins 5 likes given 5 solutions authored

You wrote the API function name incorrectly,It should be Cy_SysLib_Delay。

MaMi_1205306
Level 7
Level 7
500 replies posted 50 solutions authored 25 likes received

I understood that the API was misspelled.

It would be nice if ModusToolbox also had an API auto-recognition function like PSoC Creator.

thank you.