Undefined reference (BLDC Sensorless FOC Project)

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

cross mob
APe_3909046
Level 1
Level 1
5 replies posted First reply posted First question asked

Hey, im trying to port the BLDC Sensorless FOC project from the 037 kit from psoc 4 to psoc6.

I've already modified the rest of the project but im having problems with the motor_ctrl.c

There are these functions:

Protector_Init(u16SampleFreq);

MotorCtrl_InitPar(u16SampleFreq);

FieldWeaken_Init(u16SampleFreq);       

MotorStart_Init(&MotorCtrl_stcStartup);

CV_LimitInit(&CV_LimitPars); 

pastedImage_0.png

I've been cheking the header files and they look correct.

I could attach the project if needed.

0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hello Perez,

I had to modify your project to finally reach at the error you are facing. The error you are seeing is due to the absence of LibFOC.a file in your source files. You have to add the same in build settings too(Without lib prefix and .a suffix).

pastedImage_0.png

pastedImage_1.png

Best Regards,
Vasanth

View solution in original post

10 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hello Perez,

Could you please attach the project so that we can have a look?

Best Regards,
Vasanth

0 Likes
lock attach
Attachments are accessible only for community members.

Yes of course.

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hello Perez,

I am having difficulties opening the project. Could you please an archive of your project from creator and attach it ? Please open the project in creator and in File -> Create workspace bundle and attach  the project.

Best Regards,
Vasanth

0 Likes
lock attach
Attachments are accessible only for community members.

I followed your steps, here it is.

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hello Perez,

This time I ended up with routing errors in the design. Could you please confirm you have attached the right project. If you given the right project could you please let me know the PSoC Creator version you are using ?

Best Regards,

Vasanth

0 Likes

PSoC Creator 4.2.

We could make a hangouts / skype call if needed.

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hello Perez,

Let me know the build number too. Mine is 641.

pastedImage_0.png

I guess you have given the project after doing some modification. Did you check opening the version you have sent to us ?

Best Regards,
Vasanth

pastedImage_0.png

Yes, 641

0 Likes

These are the dependencies:

pastedImage_0.png

And the component versions:

pastedImage_1.png

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hello Perez,

I had to modify your project to finally reach at the error you are facing. The error you are seeing is due to the absence of LibFOC.a file in your source files. You have to add the same in build settings too(Without lib prefix and .a suffix).

pastedImage_0.png

pastedImage_1.png

Best Regards,
Vasanth